Commit graph

29 commits

Author SHA1 Message Date
maya
bd0cd6a937 gdb: update to 8.0
GDB 8.0 brings the following fixes and improvements, including:

  * C++: Support for rvalue references

  * Python scripting enhancements:
    ** New functions to start, stop and access a running btrace recording.
    ** Rvalue reference support in gdb.Type.

  * GDB commands interpreter:
    ** User commands now accept an unlimited number of arguments.
    ** The "eval" command now expands user-defined arguments.

  * DWARF version 5 support
    (note that its .debug_names index is not supported yet).

  * GDB/MI enhancements:
    ** New -file-list-shared-libraries command to list the shared
       libraries in the program.
    ** New -target-flash-erase command, to erase flash memory.

  * Support for native FreeBSD/mips (mips*-*-freebsd)

  * Support for the following targets:
    ** Synopsys ARC (arc*-*-elf32)
    ** FreeBSD/mips (mips*-*-freebsd)

  * Miscellaneous enhancements:
    ** Command-line redirection now supported on MS-Windows hosts.
    ** Support for thread names on MS-Windows.
    ** Support for the PKU register on GNU/Linux.
    ** Support for Target descriptions on sparc32 and sparc64.
    ** New GDB/CLI command to erase flash memory
    ** rdrand and rdseed instructions record/replay support.

Support for the following features have been removed:

  * Support for Java programs compiled with gcj

  * Support for the following configurations:
    ** FreeBSD/alpha (alpha*-*-freebsd*)
    ** GNU/kFreeBSD/alpha (alpha*-*-kfreebsd*-gnu)

For a complete list and more details on each item, please see the
gdb/NEWS file.
2017-06-05 11:38:51 +00:00
kamil
d98e57b1e8 Prepare gdb/amd64bsd-nat.c for Debug Registers (watchpoints) on NetBSD
Define DBREG_DRX when it's undefined to:
    #define        DBREG_DRX(d,x)  ((d)->dr[(x)])

This has been copied from FreeBSD:
/usr/include/x86/reg.h:#define	DBREG_DRX(d,x)	((d)->dr[(x)])

No functional change for existing operating systems.

Sponsored by <The NetBSD Foundation>
2017-02-18 17:43:37 +00:00
fhajny
83da5e858c Conclude the previous fix by not installing bfd.info either. Makes
package co-exist finally with devel/binutils. Bump PKGREVISION.
2016-04-14 08:40:44 +00:00
fhajny
b87e5e0ba0 Do not install libbfd and libopcodes. The objects are used in the
build, but not linked at runtime. Fixes PLIST conflict with
devel/binutils and subsequently makes pbulk on (at least) SunOS
happy. This follows what e.g. ports and homebrew already do.
Remove a leftover patch file while at it.
Bump PKGREVISION.
In-freeze, OK by wiz.
2016-04-06 09:34:20 +00:00
ryoon
90e4f06e60 Update to 7.11
Changelog:
*** Changes in GDB 7.11

* GDB now supports debugging kernel-based threads on FreeBSD.

* Per-inferior thread numbers

  Thread numbers are now per inferior instead of global.  If you're
  debugging multiple inferiors, GDB displays thread IDs using a
  qualified INF_NUM.THR_NUM form.  For example:

     (gdb) info threads
       Id   Target Id         Frame
       1.1  Thread 0x7ffff7fc2740 (LWP 8155) (running)
       1.2  Thread 0x7ffff7fc1700 (LWP 8168) (running)
     * 2.1  Thread 0x7ffff7fc2740 (LWP 8157) (running)
       2.2  Thread 0x7ffff7fc1700 (LWP 8190) (running)

  As consequence, thread numbers as visible in the $_thread
  convenience variable and in Python's InferiorThread.num attribute
  are no longer unique between inferiors.

  GDB now maintains a second thread ID per thread, referred to as the
  global thread ID, which is the new equivalent of thread numbers in
  previous releases.  See also $_gthread below.

  For backwards compatibility, MI's thread IDs always refer to global
  IDs.

* Commands that accept thread IDs now accept the qualified
  INF_NUM.THR_NUM form as well.  For example:

     (gdb) thread 2.1
     [Switching to thread 2.1 (Thread 0x7ffff7fc2740 (LWP 8157))] (running)
     (gdb)

* In commands that accept a list of thread IDs, you can now refer to
  all threads of an inferior using a star wildcard.  GDB accepts
  "INF_NUM.*", to refer to all threads of inferior INF_NUM, and "*" to
  refer to all threads of the current inferior.  For example, "info
  threads 2.*".

* You can use "info threads -gid" to display the global thread ID of
  all threads.

* The new convenience variable $_gthread holds the global number of
  the current thread.

* The new convenience variable $_inferior holds the number of the
  current inferior.

* GDB now displays the ID and name of the thread that hit a breakpoint
  or received a signal, if your program is multi-threaded.  For
  example:

   Thread 3 "bar" hit Breakpoint 1 at 0x40087a: file program.c, line 20.
   Thread 1 "main" received signal SIGINT, Interrupt.

* Record btrace now supports non-stop mode.

* Support for tracepoints on aarch64-linux was added in GDBserver.

* The 'record instruction-history' command now indicates speculative execution
  when using the Intel Processor Trace recording format.

* GDB now allows users to specify explicit locations, bypassing
  the linespec parser.  This feature is also available to GDB/MI
  clients.

* Multi-architecture debugging is supported on AArch64 GNU/Linux.
  GDB now is able to debug both AArch64 applications and ARM applications
  at the same time.

* Support for fast tracepoints on aarch64-linux was added in GDBserver,
  including JIT compiling fast tracepoint's conditional expression bytecode
  into native code.

* GDB now supports displaced stepping on AArch64 GNU/Linux.

* "info threads", "info inferiors", "info display", "info checkpoints"
  and "maint info program-spaces" now list the corresponding items in
  ascending ID order, for consistency with all other "info" commands.

* In Ada, the overloads selection menu has been enhanced to display the
  parameter types and the return types for the matching overloaded subprograms.

* New commands

maint set target-non-stop (on|off|auto)
maint show target-non-stop
  Control whether GDB targets always operate in non-stop mode even if
  "set non-stop" is "off".  The default is "auto", meaning non-stop
  mode is enabled if supported by the target.

maint set bfd-sharing
maint show bfd-sharing
  Control the reuse of bfd objects.

set debug bfd-cache
show debug bfd-cache
  Control display of debugging info regarding bfd caching.

set debug fbsd-lwp
show debug fbsd-lwp
  Control display of debugging info regarding FreeBSD threads.

set remote multiprocess-extensions-packet
show remote multiprocess-extensions-packet
  Set/show the use of the remote protocol multiprocess extensions.

set remote thread-events
show remote thread-events
  Set/show the use of thread create/exit events.

set ada print-signatures on|off
show ada print-signatures"
  Control whether parameter types and return types are displayed in overloads
  selection menus.  It is activaled (@code{on}) by default.

set max-value-size
show max-value-size
  Controls the maximum size of memory, in bytes, that GDB will
  allocate for value contents.  Prevents incorrect programs from
  causing GDB to allocate overly large buffers.  Default is 64k.

* The "disassemble" command accepts a new modifier: /s.
  It prints mixed source+disassembly like /m with two differences:
  - disassembled instructions are now printed in program order, and
  - and source for all relevant files is now printed.
  The "/m" option is now considered deprecated: its "source-centric"
  output hasn't proved useful in practice.

* The "record instruction-history" command accepts a new modifier: /s.
  It behaves exactly like /m and prints mixed source+disassembly.

* The "set scheduler-locking" command supports a new mode "replay".
  It behaves like "off" in record mode and like "on" in replay mode.

* Support for various ROM monitors has been removed:

  target dbug		dBUG ROM monitor for Motorola ColdFire
  target picobug	Motorola picobug monitor
  target dink32		DINK32 ROM monitor for PowerPC
  target m32r		Renesas M32R/D ROM monitor
  target mon2000	mon2000 ROM monitor
  target ppcbug		PPCBUG ROM monitor for PowerPC

* Support for reading/writing memory and extracting values on architectures
  whose memory is addressable in units of any integral multiple of 8 bits.

* New remote packets

exec stop reason
  Indicates that an exec system call was executed.

exec-events feature in qSupported
  The qSupported packet allows GDB to request support for exec
  events using the new 'gdbfeature' exec-event, and the qSupported
  response can contain the corresponding 'stubfeature'.  Set and
  show commands can be used to display whether these features are enabled.

vCtrlC
  Equivalent to interrupting with the ^C character, but works in
  non-stop mode.

thread created stop reason (T05 create:...)
  Indicates that the thread was just created and is stopped at entry.

thread exit stop reply (w exitcode;tid)
  Indicates that the thread has terminated.

QThreadEvents
  Enables/disables thread create and exit event reporting.  For
  example, this is used in non-stop mode when GDB stops a set of
  threads and synchronously waits for the their corresponding stop
  replies.  Without exit events, if one of the threads exits, GDB
  would hang forever not knowing that it should no longer expect a
  stop for that same thread.

N stop reply

  Indicates that there are no resumed threads left in the target (all
  threads are stopped).  The remote stub reports support for this stop
  reply to GDB's qSupported query.

QCatchSyscalls:1 [;SYSNO]...
QCatchSyscalls:0
  Enable ("QCatchSyscalls:1") or disable ("QCatchSyscalls:0")
  catching syscalls from the inferior process.

syscall_entry stop reason
  Indicates that a syscall was just called.

syscall_return stop reason
  Indicates that a syscall just returned.

QCatchSyscalls:1 in qSupported
  The qSupported packet may now include QCatchSyscalls:1 in the reply
  to indicate support for catching syscalls.

* Extended-remote exec events

  ** GDB now has support for exec events on extended-remote Linux targets.
     For such targets with Linux kernels 2.5.46 and later, this enables
     follow-exec-mode and exec catchpoints.

set remote exec-event-feature-packet
show remote exec-event-feature-packet
  Set/show the use of the remote exec event feature.

 * Thread names in remote protocol

   The reply to qXfer:threads:read may now include a name attribute for each
   thread.

* Target remote mode fork and exec events

  ** GDB now has support for fork and exec events on target remote mode
     Linux targets.  For such targets with Linux kernels 2.5.46 and later,
     this enables follow-fork-mode, detach-on-fork, follow-exec-mode, and
     fork and exec catchpoints.

* Remote syscall events

  ** GDB now has support for catch syscall on remote Linux targets,
     currently enabled on x86/x86_64 architectures.

set remote catch-syscall-packet
show remote catch-syscall-packet
  Set/show the use of the remote catch syscall feature.

* MI changes

  ** The -var-set-format command now accepts the zero-hexadecimal
     format.  It outputs data in hexadecimal format with zero-padding on the
     left.

* Python Scripting

  ** gdb.InferiorThread objects have a new attribute "global_num",
     which refers to the thread's global thread ID.  The existing
     "num" attribute now refers to the thread's per-inferior number.
     See "Per-inferior thread numbers" above.
  ** gdb.InferiorThread objects have a new attribute "inferior", which
     is the Inferior object the thread belongs to.
2016-03-05 09:08:46 +00:00
ryoon
e4a0456a18 Update to 7.10.1
Changelog:
December 5th, 2015: GDB 7.10.1 Released!

    The latest version of GDB, version 7.10.1, is available for download.

    This is a minor corrective release over GDB 7.10, fixing the following issues:

        PR remote/18965 (new vforkdone stop reply should indicate parent process ID)
        PR gdb/18957 (build failure in linux-namespaces.c due to setns static declaration)
        PR gdb/19297 (Internal error on "record btrace": Unexpected branch trace format)
        PR c++/16957 (gdb segfaults when loading symbols in C++11-enabled application)
        PR c++/19306 (Incorrect demangling of symbols with ABI tags)
        PR c++/19307 (Demangler bugs found with fuzz-testing)
        PR c++/19308 (Demangle C++ Transactional Memory TS (N4514) symbols)

August 28th, 2015: GDB 7.10 Released!

    The latest version of GDB, version 7.10, is available for download.

    Changes in this release include:

        Improved support for accessing shared libraries directly from the target system when debugging remotely.
        Various Guile and Python scripting improvements.
        Record-replay and reverse debugging on Aarch64 Linux.
        Support for fork events on extended-remote Linux targets (Linux kernels 2.5.60 and later).
        DTrace USDT (Userland Static Defined Tracing) probes support on x86_64 GNU/Linux targets.
        Vector ABI support on S/390 GNU/Linux targets.
        GDB now reads the GDBHISTSIZE environment variable rather than HISTSIZE to determine the size of GDB's command history.
        Support for setting the parity when connecting to the target using a serial interface.
        The number of candidates to be considered during completion can now be limited.
        Support for Sun's version of the "stabs" debug file format has been removed.
        Support for HP/PA running HP-UX (hppa*-*-hpux*) has been removed.
        Support for Itanium running HP-UX (ia64-*-hpux*) has been removed.

    See the NEWS file for a more complete and detailed list of what this release includes.
2016-01-19 12:18:24 +00:00
agc
d9e4cfe05d Add SHA512 digests for distfiles for devel category
Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 03:27:11 +00:00
joerg
bb4c38ad02 Add bfd.h dependency for netbsd-core.c. 2015-05-03 19:44:37 +00:00
bsiegert
3e2ee61df1 Move wip/gdb (version 7.9) over the 5.x version that has been here for a
long time and that does not even support amd64. The old gdb version, for
those with a penchant for historic software, can be found as devel/gdb5.
2015-03-15 14:56:46 +00:00
sbd
201c3302d8 Revert following commit (gdb doesn't confict with autoconf):
Module Name:	pkgsrc
   Committed By:	sbd
   Date:		Tue Dec 13 06:58:09 UTC 2011

   Modified Files:
	   pkgsrc/devel/gdb: Makefile distinfo
	   pkgsrc/devel/gdb/patches: patch-gdb_gdbserver_configure.in
   Added Files:
	   pkgsrc/devel/gdb/patches: patch-gdb_gdbserver_config.in
	       patch-gdb_gdbserver_configure

   Log Message:
   This package can't use autoconf as to conflicts with it.


   To generate a diff of this commit:
   cvs rdiff -u -r1.40 -r1.41 pkgsrc/devel/gdb/Makefile
   cvs rdiff -u -r1.18 -r1.19 pkgsrc/devel/gdb/distinfo
   cvs rdiff -u -r0 -r1.1 pkgsrc/devel/gdb/patches/patch-gdb_gdbserver_config.in \
       pkgsrc/devel/gdb/patches/patch-gdb_gdbserver_configure
   cvs rdiff -u -r1.1 -r1.2 \
       pkgsrc/devel/gdb/patches/patch-gdb_gdbserver_configure.in
2011-12-14 02:29:30 +00:00
sbd
6227bf0073 This package can't use autoconf as to conflicts with it. 2011-12-13 06:58:08 +00:00
sbd
b6f12a36d7 Regen distinfo 2011-12-10 06:54:06 +00:00
sbd
e641655573 If <stdlib.h> is needed and its wrapped with HAVE_STDDLIB_H it must be
tested for by autoconf!

<stdlib.h> is needed as it include <alloca.h> which is needed for alloca(3).

Also fix DESTDIR support for gdbserver.
2011-12-05 22:15:05 +00:00
sbd
548e7ab3e6 Revert commit:
Module Name:    pkgsrc
   Committed By:   sbd
   Date:           Mon Dec  5 19:34:41 UTC 2011

   Modified Files:
	   pkgsrc/devel/gdb: distinfo
   Added Files:
	   pkgsrc/devel/gdb/patches: patch-gdb_gdbserver_gdbreplay.c

   Log Message:
   alloca(3) is not avalible with glibc on linux if -fno-builtin is used.

   To generate a diff of this commit:
   cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/gdb/distinfo
   cvs rdiff -u -r0 -r1.1 \
       pkgsrc/devel/gdb/patches/patch-gdb_gdbserver_gdbreplay.c
2011-12-05 22:05:29 +00:00
sbd
d92c3cb720 Fix DESTDIR support for gdbserver 2011-12-05 19:36:18 +00:00
sbd
8bc78405db alloca(3) is not avalible with glibc on linux if -fno-builtin is used. 2011-12-05 19:34:41 +00:00
obache
df201fc443 Add user-destdir installation support. 2011-03-05 09:14:23 +00:00
rillig
aa31f9d9e2 Some changes take a long time. This package had been broken since two
years. The fix was trivially copied from devel/coconut, which had the
same problem concerning an "invalid lvalue in increment".
2008-01-06 19:25:09 +00:00
lkundrak
42095c2842 The hash for the patch-as patch. For some reason it was ommited from the previous commit. 2007-07-11 13:46:38 +00:00
lkundrak
d6d43e23ee Attempt to fix build on >1.6 2007-07-11 13:12:01 +00:00
lkundrak
accd3811e1 Fixes for CVE-2005-1704 and CVE-2005-1705. Bump PKGREVISION. 2007-07-03 12:41:18 +00:00
rillig
edc90a1031 Fixed "test ==". 2006-10-22 07:55:38 +00:00
joerg
a5df8ff36a Fix errno. Add DragonFly support. 2006-02-27 15:45:29 +00:00
wiz
b75bd43daa Fix powerpc compilation problem with gcc-3.4. From Jorge Acereda in
PR 29193.
2005-03-17 14:23:46 +00:00
agc
4a3d2f7ce2 Add RMD160 digests. 2005-02-23 22:24:08 +00:00
seb
ed7bae196b Update to gdb version 5.3.
Extract of changes below.

*** Changes in GDB 5.3:

* GNU/Linux shared library multi-threaded performance improved.

* ``gdbserver'' now supports multi-threaded applications on some targets

* GDB now supports C/C++ preprocessor macros.

* Multi-arched targets.
DEC Alpha (partial)                             alpha*-*-*
DEC VAX (partial)                               vax-*-*
NEC V850                                        v850-*-*
National Semiconductor NS32000 (partial)        ns32k-*-*
Motorola 68000 (partial)                        m68k-*-*
Motorola MCORE                                  mcore-*-*

* New targets.
Fujitsu FRV architecture added by Red Hat       frv*-*-*

* New native configurations
Alpha NetBSD                                    alpha*-*-netbsd*
SH NetBSD                                       sh*-*-netbsdelf*
MIPS NetBSD                                     mips*-*-netbsd*
UltraSPARC NetBSD                               sparc64-*-netbsd*

* OBSOLETE configurations and files
Mitsubishi D30V                                 d30v-*-*
OS/9000                                         i[34]86-*-os9k
IBM AIX PS/2                                    i[3456]86-*-aix
Fujitsu FR30                                    fr30-*-elf*
Motorola Delta 88000 running Sys V              m88k-motorola-sysv  or  delta88
Argonaut Risc Chip (ARC)                        arc-*-*
i386 running Mach 3.0                           i[3456]86-*-mach3*
i386 running Mach                               i[3456]86-*-mach*
i386 running OSF/1                              i[3456]86-*osf1mk*
HP/Apollo 68k Family                            m68*-apollo*-sysv*,
                                                m68*-apollo*-bsd*,
                                                m68*-hp-bsd*, m68*-hp-hpux*
I960 with MON960                                i960-*-coff

* OBSOLETE languages
CHILL, a Pascal like language used by telecommunications companies.

* REMOVED configurations and files

AMD 29k family via UDI                          a29k-amd-udi, udi29k
A29K VxWorks                                    a29k-*-vxworks
AMD 29000 embedded, using EBMON                 a29k-none-none
AMD 29000 embedded with COFF                    a29k-none-coff
AMD 29000 embedded with a.out                   a29k-none-aout

testsuite/gdb.hp/gdb.threads-hp/                directory

* New command "set max-user-call-depth <nnn>"

* Changes in FreeBSD/i386 native debugging.

Support for the "generate-core-file" has been added.

* New commands "dump", "append", and "restore".

* Improved "next/step" support on multi-processor Alpha Tru64.
2003-03-10 23:50:48 +00:00
jschauma
5b2528cab1 Update to 5.2.1; remove ONLY_FOR_PLATFORM: even though gdb is in the NetBSD
base system, people may want to install it from pkgsrc, particularly on
Darwin (?), Linux, SunOS and since there is no problem in having one gdb in
pkgsrc and one in the base-system, no harm is done.

Changes since the last version (4.18) are numerous; highlights include:
* New command "set trust-readonly-sections on[off]".
* New command "generate-core-file" (or "gcore").
* New command line option --pid or -p followed by a process id
* The new `--args' feature can be used to specify command-line arguments
  for the inferior from gdb's command line.
* a new `operate-and-get-next' function bound to `C-o'.
2002-08-07 14:18:26 +00:00
wiz
dfb2d5edc6 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 00:44:09 +00:00
agc
d7d36b3561 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 10:57:56 +00:00