notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Port details
gdb GNU Project Debugger
11.1 devel on this many watch lists=10 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 10.2Version of this port present on the latest quarterly branch.
Maintainer: pizzamig@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2010-11-16 20:41:14
Last Update: 2021-09-20 20:46:02
Commit Hash: 242d369
People watching this port, also watch:: git, sudo, pkg, bash, curl
License: GPLv3
Description:
SVNWeb : git : Homepage
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
Dependency lines:
  • gdb>0:devel/gdb
To install the port: cd /usr/ports/devel/gdb/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/gdb
  • pkg install gdb
PKGNAME: gdb
Package flavors (<flavor>: <package>)
  • py38: gdb
NOT_FOR_ARCHS: sparc64
distinfo:
Packages (timestamps in pop-ups are UTC):
gdb
ABIlatestquarterly
FreeBSD:11:aarch648.29.2_1
FreeBSD:11:amd6410.2_110.2_1
FreeBSD:11:armv67.11.19.2_1
FreeBSD:11:i38610.2_110.2_1
FreeBSD:11:mips--
FreeBSD:11:mips64--
FreeBSD:12:aarch648.210.2_1
FreeBSD:12:amd6410.2_110.2_1
FreeBSD:12:armv68.29.2_1
FreeBSD:12:armv78.29.2_1
FreeBSD:12:i38610.2_110.2_1
FreeBSD:12:mips--
FreeBSD:12:mips64--
FreeBSD:12:powerpc64-10.1_1
FreeBSD:13:aarch6410.1_110.2_1
FreeBSD:13:amd6410.2_110.2_1
FreeBSD:13:armv610.1_110.1_1
FreeBSD:13:armv710.1_110.1_1
FreeBSD:13:i38611.110.2_1
FreeBSD:13:mips--
FreeBSD:13:mips64--
FreeBSD:13:powerpc6410.1_110.2_1
FreeBSD:14:aarch6410.2_1-
FreeBSD:14:amd6411.1-
FreeBSD:14:armv610.1_1-
FreeBSD:14:armv710.1_1-
FreeBSD:14:i38611.1-
FreeBSD:14:mips--
FreeBSD:14:mips64--
FreeBSD:14:powerpc6410.1_1-
 
gdb-py27
ABIlatestquarterly
FreeBSD:11:aarch64-9.2_1
FreeBSD:11:amd64--
FreeBSD:11:armv6-9.2_1
FreeBSD:11:i386--
FreeBSD:11:mips--
FreeBSD:11:mips64--
FreeBSD:12:aarch64--
FreeBSD:12:amd64--
FreeBSD:12:armv6-9.2_1
FreeBSD:12:armv7-9.2_1
FreeBSD:12:i386--
FreeBSD:12:mips--
FreeBSD:12:mips64--
FreeBSD:12:powerpc64--
FreeBSD:13:aarch64--
FreeBSD:13:amd64--
FreeBSD:13:armv6--
FreeBSD:13:armv7--
FreeBSD:13:i386--
FreeBSD:13:mips--
FreeBSD:13:mips64--
FreeBSD:13:powerpc64--
FreeBSD:14:aarch64--
FreeBSD:14:amd64--
FreeBSD:14:armv6--
FreeBSD:14:armv7--
FreeBSD:14:i386--
FreeBSD:14:mips--
FreeBSD:14:mips64--
FreeBSD:14:powerpc64--
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. gmake>=4.3 : devel/gmake
  2. makeinfo : print/texinfo
  3. pkgconf>=1.3.0_1 : devel/pkgconf
  4. python3.8 : lang/python38
Runtime dependencies:
  1. python3.8 : lang/python38
Library dependencies:
  1. libgmp.so : math/gmp
  2. libmpfr.so : math/mpfr
  3. libexpat.so : textproc/expat2
  4. libsource-highlight.so : textproc/source-highlight
  5. libintl.so : devel/gettext-runtime
  6. libiconv.so : converters/libiconv
  7. libreadline.so.8 : devel/readline
This port is required by:
for Build

Deleted ports which required this port:

Expand this list of 1 deleted port
  1. devel/nemiver*
  2. Collapse this list of deleted ports.
for Run
  1. devel/anjuta
  2. editors/lazarus
  3. editors/lazarus-devel
  4. editors/lazarus-qt5
  5. editors/lazarus-qt5-devel
  6. security/gef
  7. security/peda
Expand this list (17 items / 10 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list).
  2. sysutils/bstack
  3. sysutils/panicmail
  4. Collapse this list.

Deleted ports which required this port:

Expand this list of 8 deleted ports
  1. devel/gps*
  2. devel/nemiver*
  3. editors/lazarus-lcl-gtk2*
  4. editors/lazarus-lcl-nogui*
  5. editors/lazarus-lcl-qt*
  6. editors/lazarus-lcl-qt5*
  7. editors/lazarus-lcl-units*
  8. editors/lazarus-qt4*
  9. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
Options name:

USES:

FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (12 items)
Collapse this list.
  1. ftp://ftp.fu-berlin.de/unix/gnu/gdb/
  2. ftp://ftp.mirrorservice.org/sites/ftp.gnu.org/gnu/gdb/
  3. ftp://mirrors.rit.edu/gnu/gdb/
  4. http://download.xs4all.nl/gnu/gdb/
  5. http://ftp.halifax.rwth-aachen.de/gnu/gdb/
  6. http://ftp.kddilabs.jp/GNU/gnu/gdb/
  7. http://mirror.navercorp.com/gnu/gdb/
  8. https://ftp.gnu.org/gnu/gdb/
  9. https://ftpmirror.gnu.org/gdb/
  10. https://mirror.netcologne.de/gnu/gdb/
  11. https://mirrors.kernel.org/gnu/gdb/
  12. https://www.nic.funet.fi/pub/gnu/gnu/gdb/
Collapse this list.

Number of commits found: 155 (showing only 100 on this page)

1 | 2  »  

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
20 Sep 2021 20:46:02
 files touched by this commit commit hash:242d3697fdfac13de43f86843d9412ea1c2bd956  11.1
jhb search for other commits by this committer
devel/gdb: Update to 11.1.

This also pulls in some updates to libcxx-gdbpy to add pretty printers
for std::deque<>, std::stack<>, and std::unordered_map<>

Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D32000
03 Jul 2021 09:54:51
 files touched by this commit commit hash:65af5b9da1535eba81a41c88e386aa1729ceb60c  10.2_1
pizzamig search for other commits by this committer
devel/gdb: Add a hack to fix the kill storm bug

While here, fix the debug install avoid stripping gdb
Bump portrevision

PR:		256838
Reported by:	arrowd@FreeBSD.org
Co-Author:	arrowd@FreeBSD.org
15 May 2021 07:14:04
 files touched by this commit commit hash:9671981826f7ef8b1e7fb0a430ee24d4a1f0acf2  10.2
tobik search for other commits by this committer
*: Remove unnecessary 'port' argument from USES=readline

PR:		248459
Exp-run by:	antoine
09 May 2021 20:53:14
 files touched by this commit commit hash:ef407fdf486e6ff364baded9186db15d7f7d91f2  10.2
pizzamig search for other commits by this committer
devel/gdb: Update to 10.2

While here, fixed the guile patches
06 Apr 2021 14:31:13
 files touched by this commit commit hash:135fdeebb99c3569e42d8162b265e15d29bd937d  10.1_1
mat search for other commits by this committer
all: Remove all other $FreeBSD keywords.
06 Apr 2021 14:31:07
 files touched by this commit commit hash:305f148f482daf30dcf728039d03d019f88344eb  10.1_1
mat search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
08 Jan 2021 20:14:49
Original commit files touched by this commit Revision:560808  10.1_1
jhb search for other commits by this committer
Fix a couple of issues in kgdb.

- Properly unwind across in-kernel exceptions on arm.

- Enumerate processes via the pid hash table for kernels without the
  zombproc list.

PR:		251463 (1)
Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D27849
29 Dec 2020 22:40:49
Original commit files touched by this commit Revision:559628  10.1
pizzamig search for other commits by this committer
Update COMMENT

PR:		250655
Submitted by:	Yasuhiro Kimura <yasu@utahime.org>
28 Dec 2020 23:02:15
Original commit files touched by this commit Revision:559531  10.1
antoine search for other commits by this committer
Drop python 2.7 support from a few ports

With hat:	portmgr
07 Dec 2020 20:39:03
Original commit files touched by this commit Revision:557246  10.1
jhb search for other commits by this committer
Update kernel relocation code in kgdb for GDB 10.

This fixes the build of KGDB on head.

Pointy hat to:	jhb (for only testing kgdb on stable/12)
Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D27499
04 Dec 2020 23:19:27
Original commit files touched by this commit Revision:557028  10.1
pizzamig search for other commits by this committer
devel/gdb: Update to 10.1

Reviewed by:	jhb@
Differential Revision:	https://reviews.freebsd.org/D27040
18 Oct 2020 21:43:25
Original commit files touched by this commit Revision:552706  9.2_2
pizzamig search for other commits by this committer
devel/gdb: Fix python 3.9 support

Add an already upstreamed patch to fix python 3.9 support

Submitted by:	kib (via email)
08 Jun 2020 10:07:30
Original commit files touched by this commit Revision:538208  9.2_1
pizzamig search for other commits by this committer
devel/gdb: remove gnu89 requirement

Bump portrevision

PR:		246689
Reported by:	VVD <vvd@unislabs.com>
05 Jun 2020 17:36:18
Original commit files touched by this commit Revision:538037  9.2
pizzamig search for other commits by this committer
devel/gdb: Update to 9.2

It's a fix release.
While here, remove the obsolete gnu89 standard.

Changes: https://www.gnu.org/software/gdb/download/ANNOUNCEMENT
PR:		246689
Submitted by:	VVD <vvd@unislabs.com>
MFH:		2020Q2
13 Mar 2020 09:12:42
Original commit files touched by this commit Revision:528338  9.1
pizzamig search for other commits by this committer
devel/gdb: fix build with BUILE option enabled

PR:		244760
Reported by:	Ting-Wei Lan <lantw44@gmail.com>
09 Mar 2020 20:58:28
Original commit files touched by this commit Revision:528132  9.1
jhb search for other commits by this committer
Update to GDB 9.1.

GDB 9 rejects attempts to build in the source tree, so this uses
CONFIGURE_OUTSOURCE.

Some patch files were renamed to track moving of files in upstream.

Approved by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D23932
27 Feb 2020 01:01:03
Original commit files touched by this commit Revision:527234  8.3.1_1
jhb search for other commits by this committer
Bring in various kgdb fixes for powerpc.

This merges in several fixes for kgdb on powerpc including fixing
backtraces and cross-debugging support.

Submitted by:	luporl
Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D23844
01 Oct 2019 08:51:40
Original commit files touched by this commit Revision:513464  8.3.1
pizzamig search for other commits by this committer
devel/gdb: update to 8.3.1

Changes: https://www.gnu.org/software/gdb/download/ANNOUNCEMENT

MFH:		2019Q4
26 Jul 2019 20:46:57
Original commit files touched by this commit Revision:507372  8.3_3
gerald search for other commits by this committer
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
27 Jun 2019 09:02:57
Original commit files touched by this commit Revision:505200  8.3_2
danfe search for other commits by this committer
Update Guile to version 2.2.5, modern stable version, and fix dependent
ports to build against it.  Most changes are rather minor and mechanical
except for the devel/gdb (obtained via their bugtracker [1], courtesy of
Doug Evans).  One port (science/meep) I had to mark BROKEN after fixing
it proved to be very tedious and actually unreliable.  It is very old,
there are newer versions available so it should be fixed by updating.

One port (devel/libruin) had revealed a bug in the new Guile code (an
auxiliary script, really) that had to be worked-round; reference to the
problematic upstream commit is provided in the patch.

PR:		229613
Exp-run by:	antoine

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=21104#c8
04 Jun 2019 04:17:27
Original commit files touched by this commit Revision:503436  8.3_1
glebius search for other commits by this committer
Unreverse the thread list for 'info threads' internal command. Now it
will match the natural order of tailq, and thus output of 'ps' macro
from tools/debugscripts/gdbinit.kernel.

Reviewed by:	pizzamig (maintainer), jhb
01 Jun 2019 00:44:08
Original commit files touched by this commit Revision:503200  8.3
jhb search for other commits by this committer
Update port to GDB 8.3.

New features in GDB 8.3 include support for DWARF index caches and
styling (colors) in the CLI and TUI.  Source code styling is also
available via the new SOURCE_HIGHLIGHT option (enabled by default).
GDB 8.3 also adds support for FreeBSD/riscv64.

In addition, kgdb has been updated for changes in 8.3 along with
support for FreeBSD/riscv64 kernels.

The libc++ helpers have been updated to a newer version which adds
support for std::list<> and std::forward_list<>.  The helpers now
also support Python 3.

Finally, a few post-8.3 patches have been backported which add suport
for TLS (Thread Local Storage) variables on FreeBSD amd64, i386,
powerpc, and riscv architectures.  Note that amd64 and i386 do not
support examining TLS variables in core dumps currently.  This support
along with support for additional architectures require kernel changes
and will be added in the future once the kernel has been updated.

Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D20403
10 Apr 2019 06:18:32
Original commit files touched by this commit Revision:498530  8.2.1_3
antoine search for other commits by this committer
Bump a few PORTREVISIONs after r498529

With hat:	portmgr
09 Apr 2019 14:04:50
Original commit files touched by this commit Revision:498476  8.2.1_2
sunpoet search for other commits by this committer
Update devel/readline to 8.0

- Bump PORTREVISION of dependent ports for shlib change

Changes:	https://tiswww.case.edu/php/chet/readline/CHANGES
PR:		236156
Exp-run by:	antoine
18 Feb 2019 08:41:14
Original commit files touched by this commit Revision:493251  8.2.1_1
gahr search for other commits by this committer
devel/gdb: fix package error w/o python introduced in r493008
15 Feb 2019 18:44:48
Original commit files touched by this commit Revision:493008  8.2.1_1
jhb search for other commits by this committer
Include pretty printers for libc++ when Python is enabled.

The pretty printers are pulled from github/bsdjhb/libcxx-gdbpy.git.
They are not complete and only support a subset of STL classes.

Bump PORTREVISION.

PR:		235539
Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D19087
07 Feb 2019 16:26:24
Original commit files touched by this commit Revision:492373  8.2.1
pizzamig search for other commits by this committer
devel/gdb: update to 8.2.1

Changes: https://www.gnu.org/software/gdb/news
15 Jan 2019 01:42:19
Original commit files touched by this commit Revision:490337  8.2_3
jhb search for other commits by this committer
Enable separate flavors for different python versions.

Since python is enabled by default, this keeps the version with the
default python version as 'gdb' and adds a package suffix for other
python versions.

Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D18534
12 Dec 2018 17:34:58
Original commit files touched by this commit Revision:487307  8.2_3
jhb search for other commits by this committer
Fix packing list .pyc files when using Python 3.2+.

Reported by:	np
Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D18515
12 Dec 2018 01:35:36
Original commit files touched by this commit Revision:487272  8.2_3
gerald search for other commits by this committer
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
11 Dec 2018 10:10:02
Original commit files touched by this commit Revision:487230  8.2_2
antoine search for other commits by this committer
Spell CHOSEN_COMPILER_TYPE correctly

PR:		199098
With hat:	portmgr
10 Dec 2018 17:23:19
Original commit files touched by this commit Revision:487193  8.2_2
jhb search for other commits by this committer
Various fixes for GDB's data directory.

- Backport a fix from master to fix the setting of the default
  auto-load paths.
- Switch to using the default data directory (PREFIX/share/gdb)
  instead of a version specific directory.  This allows gdb to use
  auto-load scripts installed by other packages to
  PREFIX/share/gdb/auto-load.  A couple of existing packages already
  do this such as libglib and libgobject.
- Add symlinks for gdb.1 and kgdb.1 manpages without version numbers.
  This makes 'man gdb' and 'man kgdb' work on 12.0 which doesn't have
  these manpages in the base system.
- Precompile the installed python scripts and add then to the packing
  list.  This avoids leaving .pyc files around after the package is
  deleted if gdb (or kgdb) is run as root.
- Bump PORTREVISION.

Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D18476
06 Dec 2018 17:56:00
Original commit files touched by this commit Revision:486773  8.2_1
jhb search for other commits by this committer
Speed up devel/gdb startup on FreeBSD

On non-Linux systems that do not have fdwalk(), gdb currently iterates
over all possible file descriptors when checking for open files.
Merge an upstream patch that fixes this by adding a FreeBSD
implementation using kinfo_getfile().

Submitted by:	Brandon Bergren <git@bdragon.rtk0.net> (initial patch)
Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D17426
28 Nov 2018 15:32:45
Original commit files touched by this commit Revision:486096  8.2
pizzamig search for other commits by this committer
devel/gdb: Add NLS option

Add NLS option (default ON, so no portrevision bump is needed)
While I'm here, get rid of FreeBSD 10.x bits
24 Sep 2018 17:23:35
Original commit files touched by this commit Revision:480613  8.2
jhb search for other commits by this committer
Upgrade to 8.2.

- Remove patches for upstream commits in 8.2.
- Add an upstream patch to include NT_PROCSTAT_AUXV, NT_PROCSTAT_PS_STRINGS,
  and NT_PROCSTAT_VMMAP notes in core dumps generated by 'gcore'.
- Update kgdb for changes in 8.2.
- Add 'USES=gettext-runtime'

Reviewed by:	pizzamig (maintainer)
Differential Revision:	https://reviews.freebsd.org/D17085
11 Aug 2018 13:17:52
Original commit files touched by this commit Revision:476883  8.1.1
pizzamig search for other commits by this committer
devel/gdb: Update to 8.1.1

A bunch of bug fixes and support to Pythong 3.7 fixed

PR:		230494
Reported by:	Yasuhiro KIMURA <yasu@utahime.org>
Sponsored by:	Essen Hackathon
28 Jul 2018 10:18:33
Original commit files touched by this commit Revision:475518  8.1_5
pizzamig search for other commits by this committer
devel/gdb: Fix iconv support

Fix iconv support.
Bump portrevision.

PR:		230036
Reported by:	Gleb Popov <arrowd@FreeBSD.org>
27 Jul 2018 14:05:08
Original commit files touched by this commit Revision:475441  8.1_4
pizzamig search for other commits by this committer
devel/gdb: add support to UTF-8 charset

Introduced a new option, enabled on default, to use libiconv, that
provide wchar_t support and allow to use UTF-8 charset in gdb

PR:		230036
Reported by:	Gleb Popov <arrowd@FreeBSD.org>
25 Jul 2018 17:28:36
Original commit files touched by this commit Revision:475318  8.1_3
jhb search for other commits by this committer
Fixes for kgdb including initial FreeBSD/arm support.

- Improve fallback handling for the read of pcb_size.

  If for some reason kgdb has only the kernel's debug info, a read of
  pcb_size will simply return 0, resulting in an exception when unwinding
  the stack of a thread that was on a CPU at the time the dump was
  created.  In this case, fall back to using sizeof(struct pcb).
- Always supply a value for the PC register on x86.

  A thread's PCB may have been swapped out, and a dummy value ensures that
  we don't get an exception while enumerating threads in a dump.
- Mark all 64-bit address bits as valid for aarch64 kernels.

  ARMv8 supports pointer tagging in which case the upper 8 bits of VAs are
(Only the first 15 lines of the commit message are shown above View all of this commit message)
02 May 2018 13:04:53
Original commit files touched by this commit Revision:468827  8.1_2
pizzamig search for other commits by this committer
devel/gdb: Add mpfr as dependency

Add mpfr as dependency to emulate target floating-point arithmetic during
expression evaluation when the target uses different floating-point
formats than the host

PR:		227798
Reported by:	philippe.michel7@sfr.fr
17 Mar 2018 12:29:45
Original commit files touched by this commit Revision:464813  8.1_1
pizzamig search for other commits by this committer
devel/gdb: fix a typo in the Makefile
16 Mar 2018 14:29:38
Original commit files touched by this commit Revision:464688  8.1_1
pizzamig search for other commits by this committer
devel/gdb: fix build on current

Clang 6 doesn't allow negative numbers to be implicitely converted to
unsigned types.
This patch explicits all casts.
While I'm here, add an option to silent tons of warning messages

PR:		226644
Reported by:	rakuco@
14 Mar 2018 14:33:22
Original commit files touched by this commit Revision:464493  8.1
pizzamig search for other commits by this committer
devel/gdb: Update to version 8.1

The official annoucement is available here:
https://www.gnu.org/software/gdb/download/ANNOUNCEMENT

Moreover:
* support for 'info proc' is added (jhb@)
* update kgdb to use gdb 8.1

Reviewed by:	jhb@
Differential Revision:	https://reviews.freebsd.org/D14148
26 Jan 2018 19:57:24
Original commit files touched by this commit Revision:460050  8.0.1_2
jhb search for other commits by this committer
KGDB fixes for amd64 and aarch64.

- Update the amd64 kernel support to recognize mchk_calltrap as a
  trapframe generator.
- Remove some unneeded headers from fbsd-kld.c.
- Various fixes to get stack traces working for aarch64 kernels:
  - Map the LR register from the PCB to PC instead of LR.
  - Skip the PC register from the PCB as it isn't initialized to anything.
  - Correct the register cache map for the PCB.  The old one had the
    offsets of pcb_sp and pcb_pc reversed.
  - Don't map all of the saved general purpose registers in a
    trapframe to X1 rather than X0 .. X29.
  - Use correct name for el0 trapframe entry points.

Reviewed by:	pizzamig (maintainer)
MFH:		2018Q1
Differential Revision:	https://reviews.freebsd.org/D13977
13 Oct 2017 16:31:55
Original commit files touched by this commit Revision:452019  8.0.1_1
jhb search for other commits by this committer
Merge in updates for mipsn32 and 32-bit arm.

- Brings in upstream commits to fix debugging on mipsn32 (properly parsing
  registers and signal information in core dumps as well as unwinding across
  signal frames)
- Brings in upstream commits for reworked ARM support.  Compared to the
  existing patch-armfbsd, this version includes generic FreeBSD target
  support (auxv, thread names from cores, $_siginfo, syscall names, etc.)
  as well as VFP support and an unwinder for signal frames.

Reviewed by:	pizzamig (maintainer)
MFH:		2017Q4
Differential Revision:	https://reviews.freebsd.org/D12630
10 Oct 2017 21:31:30
Original commit files touched by this commit Revision:451721  8.0.1
linimon search for other commits by this committer
For ports that are explicitly enabled on armv6, also enable them
on armv7.  This has not been tested with an -exp run but should
"do no harm".

PR:		221894 (partial)
29 Sep 2017 14:49:59
Original commit files touched by this commit Revision:450895  8.0.1
pizzamig search for other commits by this committer
devel/gdb: Update to gdb 8.0.1

Resolve tons of warnings.
Fix the type of literal string as char const *
Fix Makefile's variables order and adding the license file
Rework patches to make portlint happy

Reviewed by:	jhb
Approved by:	lme (mentor)
Differential Revision:	https://reviews.freebsd.org/D12525
13 Sep 2017 14:27:14
Original commit files touched by this commit Revision:449795  8.0_3
pizzamig search for other commits by this committer
devel/gdb: Fix build on MIPS and powerpc

Fixing build on big-endian 64bit platforms, like MIPS and powerpc

Submitted by:	jhb
Reviewed by:	andreast
Approved by:	olivier (mentor)
Differential Revision:	https://reviews.freebsd.org/D12182
10 Sep 2017 20:55:39
Original commit files touched by this commit Revision:449591  8.0_3
gerald search for other commits by this committer
Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
29 Aug 2017 13:05:21
Original commit files touched by this commit Revision:448911  8.0_2
pizzamig search for other commits by this committer
Change MAINTAINER email to my new FreeBSD email

Approved by:	lme (mentor)
Approved by:	olivier (mentor)
Differential Revision:	https://reviews.freebsd.org/D12150
23 Aug 2017 16:07:43
Original commit files touched by this commit Revision:448627  8.0_2
jhb search for other commits by this committer
Add aarch64 support to GDB.

This includes support for cross-debugging aarch64 process cores and
kernels as well as native support for aarch64 processes.  Hardware
single stepping is supported, but hardware watchpoints are not yet
supported.

Reviewed by:	luca.pizzamiglio@gmail.com (maintainer)
Approved by:	az (implicit)
Differential Revision:	https://reviews.freebsd.org/D12074
04 Aug 2017 20:16:33
Original commit files touched by this commit Revision:447377  8.0_1
jhb search for other commits by this committer
Backport support for fs_base/gs_base and $_siginfo from GDB master.

Bring in two patchsets committed to GDB master along with a few other commits
those patchsets depend on.
- Add support for examining $_siginfo.  When a thread has valid signal
  information, report the current information in a $_siginfo variable.
  For live processes the values are extracted via the PT_LWPINFO ptrace
  request.  The values are also extracted from process core dumps that
  include NT_LWPINFO notes (currently only present in FreeBSD 12-current).
- Add support for the $fs_base and $gs_base registers on amd64.  This only
  works for live processes via the PT_{GET,SET}{FS,GS}BASE ptrace requests.
  FreeBSD currently does not store these values in core dumps, so they are
  not available from core dumps.

Reviewed by:	luca.pizzamiglio@gmail.com (maintainer)
Approved by:	az, imp
Differential Revision:	https://reviews.freebsd.org/D11813
28 Jul 2017 21:20:48
Original commit files touched by this commit Revision:446852  8.0
jhb search for other commits by this committer
Upgrade to GDB 8.0.

- Commit b5430a3ced fixes parsing of 32-bit MIPS process cores.
- kgdb has been ported to 8.0 including renaming the new OSABI constant,
  using gdb_bfd_openr, new return type of ldirname, and solib_add
  changed.
- GDB 8.0 requires C++11, however the port is marked as requiring C++14
  as a workaround for bugs in clang 10.3.
- patch-armfbsd is updated for the new OSABI constant names (a.out was
  removed in 8.0) and new filename convention (arm-fbsd-*)
- patch-gdb-amd64-bsd-nat.c (renamed from patch-gdbamd64-bsd-nat.c) is
  simplified to just store the r_flags value before collecting registers
  from the register cache rather than a full copy of the entire register
  set.
- patch-gdb-corelow.c has been removed.  It isn't really correct and if
(Only the first 15 lines of the commit message are shown above View all of this commit message)
10 Jul 2017 16:58:12
Original commit files touched by this commit Revision:445441  7.12.1_2
jhb search for other commits by this committer
Permit building GDB with python 3.

The python support in GDB works with either python 2 or python 3.  There
is no reason to restrict it to python 2 only.

PR:		219844
Submitted by:	mi
Approved by:	luca.pizzamiglio@gmail.com (maintainer)
MFH:		2017Q3
27 Jun 2017 13:46:53
Original commit files touched by this commit Revision:444463  7.12.1_2
sunpoet search for other commits by this committer
Update devel/readline to 7.0 patch 3

- Bump PORTREVISION for shlib change

Changes:	https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES
		https://lists.gnu.org/archive/html/bug-bash/2016-09/msg00107.html
		https://lists.gnu.org/archive/html/bug-readline/2017-01/msg00002.html
Differential Revision:	https://reviews.freebsd.org/D11172
PR:		219947
Exp-run by:	antoine
26 Jun 2017 23:44:13
Original commit files touched by this commit Revision:444433  7.12.1_1
linimon search for other commits by this committer
Sort ARCHS.  Pet portlint.

Approved by:	portmgr (tier-2 blanket)
25 Jun 2017 00:29:09
Original commit files touched by this commit Revision:444251  7.12.1_1
linimon search for other commits by this committer
Begin deorbit burn of ia64.  We have not attempted to build packages for
it for many years.

While here, alphabetize ARCHs, pet portlint, and modernize usages.

Approved by:	portmgr (tier-2 blanket)
08 May 2017 19:02:25
Original commit files touched by this commit Revision:440447  7.12.1_1
jhb search for other commits by this committer
Fix several issues with kgdb:

- The kld parsing code in kgdb was using basename() and dirname() which
  ended up being broken by the recent changes to make dirname() modify its
  input buffer.  Modify fbsd-kld.c to use the lbasename() and ldirname()
  wrappers in gdb.
- Add the kgdb.1 manpage from base and install it as 'kgdbNNN.1' which is
  helpful since stock HEAD no longer ships a kgdb manpage.
- Link libkvm into mips binaries so that the vmcore target links.
- Bump PORTREVISION.

PR:		219028
Reviewed by:	luca.pizzamiglio@gmail.com (maintainer)
Approved by:	rene
14 Feb 2017 10:29:38
Original commit files touched by this commit Revision:434072  7.12.1
olivier search for other commits by this committer
Update to 7.12.1
Updating gdb to the last stable version and cleaning it up.

PR:		217090
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)

PR:		216027
  - Recognizing the compiler to adopt options properly
  Reported by:   julian@FreeBSD.org

PR:		216132
  - Fixing the segmentation fault, but arm core dump not yet usable
  Reported by:   Mark Millard
16 Jan 2017 16:47:00
Original commit files touched by this commit Revision:431680  7.12_1
mat search for other commits by this committer
Extract do-patch into a separate script.

PR:		215761
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D9029
13 Jan 2017 06:56:50
Original commit files touched by this commit Revision:431343  7.12_1
olivier search for other commits by this committer
Fix my previous wrong commit by removing duplicate file content.
12 Jan 2017 21:40:06
Original commit files touched by this commit Revision:431323  7.12_1
olivier search for other commits by this committer
Add MIPS support and other fixes

PR:		215938
- Main PR that merge all
Submitted by:   luca.pizzamiglio@gmail.com (maintainer)

PR:		215783
- Add MIPS support
Submitted by:   jhb
Sponsored by:   DARPA / AFRL

PR:		215868
- Fix build on powerpc architecture
Reported by:    Mark Millard

PR:		212607
- Add a workaround to mitigate gdb hangs under some circumstances
with multi-threaded applications
(thanks to misc-freebsd-bugzilla@talk2dom.com)
Reported by:    tijl

PR:		215578
- Fix build by removing option to use system readline
Reported by:    rozhuk.im@gmail.com
09 Jan 2017 13:16:50
Original commit files touched by this commit Revision:430947  7.12
amdmi3 search for other commits by this committer
- Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL

Approved by:	portmgr blanket
19 Dec 2016 12:08:09
Original commit files touched by this commit Revision:428922  7.12
tijl search for other commits by this committer
Fix build with BUNDLED_READLINE option.

Reported by:	gahr
18 Dec 2016 16:08:14
Original commit files touched by this commit Revision:428876  7.12
tijl search for other commits by this committer
Update to 7.12.

PR:		214927
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
23 Jul 2016 13:23:37
Original commit files touched by this commit Revision:418964  7.11.1_3
jhb search for other commits by this committer
A few more recent patches that were merged to upstream GDB:

- Handle version 1a of NT_PRPSINFO notes which include the pr_pid field.
- Replace patch-sigev with upstream version.  Note that upstream GDB
  doesn't define SIGLIBRT on older OS versions, so do that in the port
  Makefile instead.
- Use PT_GET_EVENT_MASK/PT_SET_EVENT_MASK (new in 12).
- Fix a bug where fork and LWP events weren't enabled in new child
  processes when following child processes after a fork.
- Handle "real" vfork done events via PTRACE_VFORK (new in 12).

PR:		211254
Approved by:	luca.pizzamiglio@gmail.com (maintainer)
15 Jul 2016 01:10:15
Original commit files touched by this commit Revision:418566  7.11.1_2
jhb search for other commits by this committer
Import several patches recently merged upstream.

- Fix fork following to honor 'detach-on-fork'
- Fix vfork following to post a fake vfork_done event to fix breakpoints
  in vfork parents (a real vfork_done event is pending but requires kernel
  changes currently in review).
- Fix x86 debug registers to work with multiple threads (PR 157755)
- Add support for 'info auxv' on both live processes and cores.
- Add support for 'catch syscall'.  Note that catching system calls by
  names requires parsing an XML file mapping system call names to
  numbers.  The port now installs the XML syscall files to the data
  directory.  In addition, the EXPAT option is now enabled by default as
  expat is used to parse the XML files.
- Bump PORTREVISION.

PR:		157755, 210874
Approved by:	luca.pizzamiglio@gmail.com (maintainer), bdrewery
24 Jun 2016 18:51:21
Original commit files touched by this commit Revision:417443  7.11.1_1
pawel search for other commits by this committer
Enable PYTHON option by default

PR:		210497
Submitted by:	maintainer
05 Jun 2016 12:04:34
Original commit files touched by this commit Revision:416392  7.11.1
riggs search for other commits by this committer
Update to upstream release 7.11.1

Includes several runtime fixes, e.g. crashes on reverse-stepi
and use-after-free errors, see https://www.gnu.org/software/gdb/news/

PR:		209935
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
MFH:		2016Q2
01 Jun 2016 15:35:42
Original commit files touched by this commit Revision:416247  7.11_2
ed search for other commits by this committer
Make GDB build when basename() is POSIX compliant.

GDB's libiberty.h has a prototype of the basename() function it which
does not match the one that is part of POSIX, declared in libgen.h. This
is normally never visible, as GDB never includes libgen.h. On FreeBSD,
it unfortunately is, as our locally added copy of kgdb includes both.

Fix up libiberty.h to just include libgen.h. I'm currently discussing
with upstream how a clean fix should be done, but I guess that
requires more refactoring to the existing code. We'd better not bother
importing that and stick to this compact workaround.

Reviewed by:	bapt@, mi@, Luca Pizzamiglio
Differential Revision:	https://reviews.freebsd.org/D6630
14 May 2016 07:50:49
Original commit files touched by this commit Revision:415176  7.11_2
riggs search for other commits by this committer
Fix build with libreadline from base system (via BASE_READLINE OPTION)

PR:		209431
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
MFH:		2016Q2 (ports secteam build fix blanket)
27 Apr 2016 16:11:53
Original commit files touched by this commit Revision:414115  7.11_1
jhb search for other commits by this committer
Fix an issue with gdb triggering assertions in kgdb on i386.

The kgdb targets use runtime assertions on native targets to verify
that the helper arrays documenting the layout of things like the PCB
and trapframe structures match.  Ideally these asserts would be
compile time assertions, but they cannot be checked at compile time.
Instead, they are checked at runtime during gdb startup.

However, the layout of the i386 PCB changed when the AVX changes were
merged to i386.  The constants in the i386 target assume the post-AVX
layout, but gdb packages on stable branches might be built against
pre-AVX worlds.  In that case, those gdb binaries will trigger these
assertions on every invocation.

As a workaround, disable the PCB-related assertions on pre-AVX worlds.
If kgdb is run against a pre-AVX kernel it will not be able to parse
the PCB correctly, but userland debugging should work fine.  kgdb
built against a pre-AVX world but run against an AVX kernel should
work fine.

PR:		209061
Reported by:	trasz
Approved by:	luca.pizzamiglio@gmail.com (maintainer), swills
01 Apr 2016 14:00:57
Original commit files touched by this commit Revision:412346  7.11
mat search for other commits by this committer
Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.

With hat:	portmgr
Sponsored by:	Absolight
14 Mar 2016 16:19:35
Original commit files touched by this commit Revision:411099  7.11
tijl search for other commits by this committer
Update devel/gdb to 7.11 which includes new thread support implemented
by jhb.  Special thanks to jhb for the amazing work on gdb!

PR:		207972
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
06 Mar 2016 03:13:16
Original commit files touched by this commit Revision:410229  7.10_5
gonzo search for other commits by this committer
Add support for armv6 native debugging (no crossdebugging yet)

PR:		205468
Approved by:	luca.pizzamiglio@gmail.com (maintainer)
11 Jan 2016 17:36:13
Original commit files touched by this commit Revision:405792  7.10_5
jhb search for other commits by this committer
Various fixes to kgdb.  Port revision bumped since kgdb is enabled by
default.
- kgdb -n now permits any valid string to be used instead of only
  permitting numbers.  In particular, this allows 'kgdb -n last' to be
  used to open the most recent vmcore.
- kgdb will now try to determine the list of kernel modules even if the
  kernel binary does not include debug symbols.  This works fine in kernels
  that have the changes in r290728.
- Mark trapframes as "signal trampoline frames".  GDB assumes that "normal"
  frames will never call into a NULL PC.  Instead, it assumes that calling a
  NULL PC will result in an exception (and thus a signal being posted
  resulting in a signal frame).  A trap for a NULL function pointer would
  thus stop unwinding once it hit the frame with a NULL PC.  Marking the
  trapframes as a signal frame tells GDB it is ok to unwind past a NULL PC.
  One side effect is that frames in the asm handler now display as "signal
  handler called" instead of the raw line in assembly.  Perhaps at some
  point it would be nice to mark these up the way ddb does with the trap
  number, etc. but GDB's stack code doesn't support custom frame printers.

PR:		206044
Reviewed by:	luca.pizzamiglio@gmail.com (maintainer)
Approved by:	koobs
04 Dec 2015 21:52:09
Original commit files touched by this commit Revision:403011  7.10_4
jkim search for other commits by this committer
Partially revert r401242 to fix build with PYTHON option turned on.  Note
it is not possible to use PYTHON_CMD like this because it is resolved too
late and configure script fails like this:

checking whether to use python...
checking for ... missing
configure: error: unable to find python program

MFH:		2015Q4
11 Nov 2015 13:12:03
Original commit files touched by this commit Revision:401242  7.10_4
tijl search for other commits by this committer
- Pass --without-guile to configure when GUILE option is off
- Use CONFIGURE_WITH for other options as well

PR:		204041
11 Nov 2015 12:06:33
Original commit files touched by this commit Revision:401237  7.10_4
tijl search for other commits by this committer
Enable regression tests

PR:		200610
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
05 Nov 2015 18:48:47
Original commit files touched by this commit Revision:400860  7.10_4
tijl search for other commits by this committer
- Fix a potential parallel build issue
- Fix a regression when debugging a threaded process that forks
  (like r399623, but for vfork(2))

PR:		203661
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
19 Oct 2015 19:52:48
Original commit files touched by this commit Revision:399717  7.10_3
tijl search for other commits by this committer
Don't look up thread names when examining core files.  The names are only
available when a process is running.

PR:		201291
Submitted by:	Eric Badger <eric@badgerio.us>
Approved by:	luca.pizzamiglio@gmail.com (maintainer)
19 Oct 2015 18:02:49
Original commit files touched by this commit Revision:399704  7.10_2
jkim search for other commits by this committer
Fix build with KGDB option.
18 Oct 2015 17:31:17
Original commit files touched by this commit Revision:399623  7.10_2
tijl search for other commits by this committer
Fix a regression when debugging a threaded process that forks.

PR:		203661
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
16 Oct 2015 22:43:21
Original commit files touched by this commit Revision:399525  7.10_1
jhb search for other commits by this committer
Enable KGDB by default.

PR:		203782
Approved by:	luca.pizzamiglio@gmail.com (maintainer), koobs
06 Oct 2015 18:52:59
Original commit files touched by this commit Revision:398712  7.10
jhb search for other commits by this committer
Add a new KGDB option to the devel/gdb port.  This adds a forward port
of the kernel-specific bits of kgdb to recent gdb.  It only supports
amd64, i386, powerpc, powerpc64, and sparc64.

PR:		203299
Reviewed by:	bdrewery
Glanced at by:	emaste, jilles, luca.pizzamiglio@gmail.com (maintainer)
Differential Revision:	https://reviews.freebsd.org/D3727
18 Sep 2015 17:27:25
Original commit files touched by this commit Revision:397259  7.10
jhb search for other commits by this committer
Update gdb to 7.10

* Removing patches from the port already committed in upstream
* Adopting the new OPTION dependent targets (like do-install-PYTHON-on:)
* Enable support for 64-bit targets on 32-bit systems (e.g. allow the i386
  gdb to debug an amd64 binary).
* Now supports fork and exec tracing.

PR:		203170
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
Approved by:	tijl
04 Jun 2015 17:08:26
Original commit files touched by this commit Revision:388538  7.9.1
tijl search for other commits by this committer
- Update to 7.9.1
- Fix crash on some core files
- Fix plist

PR:		200001, 200011, 200638
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
29 Apr 2015 13:53:46
Original commit files touched by this commit Revision:384978  7.9
jhb search for other commits by this committer
Update to 7.9.
- Move changes that have been adopted upstream after 7.9 into extra patches
  named after the commit to GDB's master branch.  This includes previous
  patches such as the signal trampoline detection fixes and XSAVE support
  as well as well as new fixes such as fixing 'gcore' to not require procfs.
- The tui-io.c patch previously needed with new readline has been accepted
  upstream.
- The remaining patches have been updated to apply cleanly.
- The threads target has been fixed to actually pass register requests for
  LWP-backed threads down to the ptrace backends without detouring via
  libthread_db which actually fixes AVX with threads.

PR:		199451
Differential Revision:	https://reviews.freebsd.org/D2293
Approved by:	bapt, luca.pizzamiglio@gmail.com (maintainer)
18 Mar 2015 09:36:03
Original commit files touched by this commit Revision:381531  7.8.2_2
robak search for other commits by this committer
devel/gdb: add CPE information

PR:		198175
Submitted by:	Shun <shun.fbsd.pr@dropcut.net>
Approved by:	luca.pizzamiglio@gmail.com (maintainer)
02 Mar 2015 12:46:40
Original commit files touched by this commit Revision:380251  7.8.2_2
ashish search for other commits by this committer
- Install missing files required for GUILE support

PR:		197512
Approved by:	Luca <luca.pizzamiglio at gmail.com> (maintainer)
18 Feb 2015 19:24:16
Original commit files touched by this commit Revision:379311  7.8.2_1
jhb search for other commits by this committer
- Add support for XSAVE on amd64 and i386 using the recently added
  PT_GETXSTATE_INFO and XSTATE core dump sections.
- Use kern.proc.sigtramp on i386 to fix unwinding across signal
  frames.
- Change the amd64 FreeBSD ABI to return an i386 target description
  when debugging a 32-bit process.  This allows XSAVE debugging to
  work for an i386 binary on amd64.
- Rework thread patches to pull all threads-related patches out of
  the main port patches and into a single optional patch.
- Adjust the thread patches so that fbsd-threads.c passes register
  requests for LWPs down to the native target instead of calling
  ptrace directly.  This allows XSAVE to work with threads without
  any other changes.  The x86 nat.c files now pass LWP IDs to
  ptrace register operations (other platforms already did this).
  The supply/collect regset stubs are now only needed to support
  userland threads for libkse.

PR:		197501
Approved by:	maintainer, bdrewery
12 Feb 2015 15:15:04
Original commit files touched by this commit Revision:378879  7.8.2
ashish search for other commits by this committer
- Add OPTION to enable support for GUILE

PR:		197512
Submitted by:	ashish
Approved by:	<luca.pizzamiglio at gmail.com> (maintainer)
23 Jan 2015 19:19:25
Original commit files touched by this commit Revision:377758  7.8.2
tijl search for other commits by this committer
Update devel/gdb to version 7.8.2

PR:		197029
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
16 Dec 2014 08:56:10
Original commit files touched by this commit Revision:374788  7.8.1_1
danfe search for other commits by this committer
- Improve wording and formatting (most notably, missing space before opening
  parenthesis) in some buggy option descriptions
- Standardize Makefile header when appropriate, drop one OPTIONS_DEFAULT=IPV6
24 Nov 2014 09:34:28
Original commit files touched by this commit Revision:373198  7.8.1_1
tijl search for other commits by this committer
Remove obsolete patches.

PR:		195255
Submitted by:	jhb
Approved by:	luca.pizzamiglio@gmail.com (maintainer)
14 Nov 2014 18:00:19
Original commit files touched by this commit Revision:372566  7.8.1
tijl search for other commits by this committer
Update devel/gdb to 7.8.1

PR:		194835
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
27 Oct 2014 10:10:59
Original commit files touched by this commit Revision:371544  7.8_3
bapt search for other commits by this committer
Cleanup plist
20 Oct 2014 16:04:14
Original commit files touched by this commit Revision:371280  7.8_3
mva search for other commits by this committer
- Convert ports of devel/ to USES=python

Approved by:	portmgr (implicit)
07 Oct 2014 10:25:43
Original commit files touched by this commit Revision:370292  7.8_3
tijl search for other commits by this committer
- Fix a buffer overflow when copying a string
- Use sysctl KERN_PROC_SIGTRAMP to retrieve the signal trampoline
  location for the native amd64 ABI.  This fixes unwinding over the
  signal frame after trampoline was moved to the shared page.
  (https://svnweb.freebsd.org/changeset/base/258663)
- Remove some gcc specific warning flags

PR:		194190
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)
21 Aug 2014 18:35:52
Original commit files touched by this commit Revision:365578  7.8_2
tijl search for other commits by this committer
On FreeBSD 9.x i386 systems, debugging applications with threads causes a
crash of gdb.

When the libthr is loaded by gdb, the thread support want to add FreeBSD
specific information to the current thread. Doing this, it cleans the
thread list and re-add the current thread with the updated information
(actually, the LWP id).
This operation call a free of the struct thread_info (clean/init the
thread list) and a malloc of the same struct (add the current thread).
The problem is that a pointer to the struct thread_info is stored in
another struct (about the execution context) and it's not updatable.

On FreeBSD 9.x i386 systems, the malloc return a new pointer; then the
execution context contains a broken pointer.
On all other platform, the malloc return the same pointer and the
execution context stays coherent.

This patch avoids to clean the thread list and to re-add the thread; it
just update thread information of the current thread.

PR:		192890
Submitted by:	luca.pizzamiglio@gmail.com (maintainer)

Number of commits found: 155 (showing only 100 on this page)

1 | 2  »