gdb: Update to version 16.1

Message ID 20250122124315.14489-3-adolf.belka@ipfire.org
State New
Headers
Series gdb: Update to version 16.1 |

Commit Message

Adolf Belka Jan. 22, 2025, 12:43 p.m. UTC
  - Update from version 15.2 to 16.1
- Update of rootfile
- Changelog
    16.1
	* Support for Nios II targets has been removed as this architecture
	  has been EOL'ed by Intel.
	* GDB now supports watchpoints for tagged data pointers (see
	  https://en.wikipedia.org/wiki/Tagged_pointer) on amd64, such as the
	  one used by the Linear Address Masking (LAM) feature provided by
	  Intel.
	* Debugging support for Intel MPX has been removed.  This includes the
	  removal of
	  ** MPX register support
	  ** the commands "show/set mpx bound" (deprecated since GDB 15)
	  ** i386 and amd64 implementation of the hooks report_signal_info and
	     get_siginfo_type.
	* GDB now supports printing of asynchronous events from the Intel Processor
	  Trace during 'record instruction-history', 'record function-call-history'
	  and all stepping commands.  This can be controlled with the new
	  "set record btrace pt event-tracing" command.
	* GDB now supports printing of ptwrite payloads from the Intel Processor
	  Trace during 'record instruction-history', 'record function-call-history'
	  and all stepping commands.  The payload is also accessible in Python as a
	  RecordAuxiliary object.  Printing is customizable via a ptwrite filter
	  function in Python.  By default, the raw ptwrite payload is printed for
	  each ptwrite that is encountered.
	* For breakpoints that are created in the 'pending' state, any
	  'thread' or 'task' keywords are parsed at the time the breakpoint is
	  created, rather than at the time the breakpoint becomes non-pending.
	* Thread-specific breakpoints are only inserted into the program space
	  in which the thread of interest is running.  In most cases program
	  spaces are unique for each inferior, so this means that
	  thread-specific breakpoints will usually only be inserted for the
	  inferior containing the thread of interest.  The breakpoint will
	  be hit no less than before.
	* For ARM targets, the offset of the pc in the jmp_buf has been fixed to match
	  glibc 2.20 and later.  This should only matter when not using libc probes.
	  This may cause breakage when using an incompatible libc, like uclibc or
	  newlib, or an older glibc.
	* MTE (Memory Tagging Extension) debugging is now supported on AArch64 baremetal
	  targets.
	* Remove support (native and remote) for QNX Neutrino (triplet
	  `i[3456]86-*-nto*`).
	* In a record session, when a forward emulation reaches the end of the reverse
	  history, the warning message has been changed to indicate that the end of the
	  history has been reached.  It also specifies that the forward execution can
	  continue, and the recording will also continue.
	* The Ada 'Object_Size attribute is now supported.
	* Support for process record/replay and reverse debugging on loongarch*-linux*
	  targets has been added.
	* New bash script gstack uses GDB to print stack traces of running processes.
	* Python API
		  ** Added gdb.record.clear.  Clears the trace data of the current recording.
		     This forces re-decoding of the trace for successive commands.
		  ** Added the new event source gdb.tui_enabled.
		  ** New module gdb.missing_objfile that facilitates dealing with
		     missing objfiles when opening a core-file.
		  ** New function gdb.missing_objfile.register_handler that can
		     register an instance of a sub-class of
		     gdb.missing_debug.MissingObjfileHandler as a handler for missing
		     objfiles.
		  ** New class gdb.missing_objfile.MissingObjfileHandler which can be
		     sub-classed to create handlers for missing objfiles.
		  ** The 'signed' argument to gdb.Architecture.integer_type() will no
		     longer accept non-bool types.
		  ** The gdb.MICommand.installed property can only be set to True or
		     False.
		  ** The 'qualified' argument to gdb.Breakpoint constructor will no
		     longer accept non-bool types.
		  ** Added the gdb.Symbol.is_artificial attribute.
	* Debugger Adapter Protocol changes
		  ** The "scopes" request will now return a scope holding global
		     variables from the stack frame's compilation unit.
		  ** The "scopes" request will return a "returnValue" scope holding
		     the return value from the latest "stepOut" command, when
		     appropriate.
		  ** The "launch" and "attach" requests were rewritten in accordance
		     with some clarifications to the spec.  Now they can be sent at
		     any time after the "initialized" event, but will not take effect
		     (or send a response) until after the "configurationDone" request
		     has been sent.
		  ** The "variables" request will not return artificial symbols.
	* New commands
		show jit-reader-directory
		  Show the name of the directory that "jit-reader-load" uses for
		  relative file names.
		set style line-number foreground COLOR
		set style line-number background COLOR
		set style line-number intensity VALUE
		  Control the styling of line numbers printed by GDB.
		set style command foreground COLOR
		set style command background COLOR
		set style command intensity VALUE
		  Control the styling of GDB commands when displayed by GDB.
		set style title foreground COLOR
		set style title background COLOR
		set style title intensity VALUE
		  This style now applies to the header line of lists, for example the
		  first line of the output of "info breakpoints".  Previous uses of
		  this style have been replaced with the new "command" style.
		set warn-language-frame-mismatch [on|off]
		show warn-language-frame-mismatch
		  Control the warning that is emitted when specifying a language that
		  does not match the current frame's language.
		maintenance info inline-frames [ADDRESS]
		  New command which displays GDB's inline-frame information for the
		  current address, or for ADDRESS if specified.  The output identifies
		  inlined frames which start at the specified address.
		maintenance info blocks [ADDRESS]
		  New command which displays information about all of the blocks at
		  ADDRESS, or at the current address if ADDRESS is not given.  Blocks
		  are listed starting at the inner global block out to the most inner
		  block.
		info missing-objfile-handlers
		  List all the registered missing-objfile handlers.
		enable missing-objfile-handler LOCUS HANDLER
		disable missing-objfile-handler LOCUS HANDLER
		  Enable or disable a missing-objfile handler with a name matching the
		  regular expression HANDLER, in LOCUS.
		  LOCUS can be 'global' to operate on global missing-objfile handler,
		  'progspace' to operate on handlers within the current program space,
		  or can be a regular expression which is matched against the filename
		  of the primary executable in each program space.
	* Changed commands
		remove-symbol-file
		  This command now supports file-name completion.
		remove-symbol-file -a ADDRESS
		  The ADDRESS expression can now be a full expression consisting of
		  multiple terms, e.g. 'function + 0x1000' (without quotes),
		  previously only a single term could be given.
		target core
		target exec
		target tfile
		target ctf
		compile file
		maint print c-tdesc
		save gdb-index
		  These commands now require their filename argument to be quoted if
		  it contains white space or quote characters.  If the argument
		  contains no such special characters then quoting is not required.
		maintenance print remote-registers
		  Add an "Expedited" column to the output of the command.  It indicates
		  which registers were included in the last stop reply packet received by
		  GDB.
		show configuration
		  Now includes the version of GNU Readline library that GDB is using.
	* New remote packets
		vFile:stat
		  Return information about files on the remote system.  Like
		  vFile:fstat but takes a filename rather than an open file
		  descriptor.
		x addr,length
		  Given ADDR and LENGTH, fetch LENGTH units from the memory at address
		  ADDR and send the fetched data in binary format.  This packet is
		  equivalent to 'm', except that the data in the response are in
		  binary format.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/common/gdb | 13 +++++++------
 lfs/gdb                     |  6 +++---
 2 files changed, 10 insertions(+), 9 deletions(-)
  

Patch

diff --git a/config/rootfiles/common/gdb b/config/rootfiles/common/gdb
index d74a65b71..dc189b90e 100644
--- a/config/rootfiles/common/gdb
+++ b/config/rootfiles/common/gdb
@@ -2,14 +2,11 @@ 
 #usr/bin/gdb
 #usr/bin/gdb-add-index
 #usr/bin/gdbserver
-#usr/bin/run
+#usr/bin/gstack
 #usr/include/gdb
 #usr/include/gdb/jit-reader.h
 #usr/include/sim
 #usr/lib/libinproctrace.so
-#usr/include/sim/callback.h
-#usr/include/sim/sim.h
-#usr/lib/libsim.a
 #usr/share/gdb/python
 #usr/share/gdb/python/gdb
 #usr/share/gdb/python/gdb/FrameDecorator.py
@@ -19,7 +16,7 @@ 
 #usr/share/gdb/python/gdb/command/__init__.py
 #usr/share/gdb/python/gdb/command/explore.py
 #usr/share/gdb/python/gdb/command/frame_filters.py
-#usr/share/gdb/python/gdb/command/missing_debug.py
+#usr/share/gdb/python/gdb/command/missing_files.py
 #usr/share/gdb/python/gdb/command/pretty_printers.py
 #usr/share/gdb/python/gdb/command/prompt.py
 #usr/share/gdb/python/gdb/command/type_printers.py
@@ -33,6 +30,7 @@ 
 #usr/share/gdb/python/gdb/dap/evaluate.py
 #usr/share/gdb/python/gdb/dap/events.py
 #usr/share/gdb/python/gdb/dap/frames.py
+#usr/share/gdb/python/gdb/dap/globalvars.py
 #usr/share/gdb/python/gdb/dap/io.py
 #usr/share/gdb/python/gdb/dap/launch.py
 #usr/share/gdb/python/gdb/dap/locations.py
@@ -56,11 +54,13 @@ 
 #usr/share/gdb/python/gdb/function/caller_is.py
 #usr/share/gdb/python/gdb/function/strfns.py
 #usr/share/gdb/python/gdb/missing_debug.py
+#usr/share/gdb/python/gdb/missing_files.py
+#usr/share/gdb/python/gdb/missing_objfile.py
 #usr/share/gdb/python/gdb/printer
 #usr/share/gdb/python/gdb/printer/__init__.py
-#usr/share/gdb/python/gdb/printer/bound_registers.py
 #usr/share/gdb/python/gdb/printing.py
 #usr/share/gdb/python/gdb/prompt.py
+#usr/share/gdb/python/gdb/ptwrite.py
 #usr/share/gdb/python/gdb/styling.py
 #usr/share/gdb/python/gdb/types.py
 #usr/share/gdb/python/gdb/unwinder.py
@@ -102,4 +102,5 @@ 
 #usr/share/man/man1/gdb-add-index.1
 #usr/share/man/man1/gdb.1
 #usr/share/man/man1/gdbserver.1
+#usr/share/man/man1/gstack.1
 #usr/share/man/man5/gdbinit.5
diff --git a/lfs/gdb b/lfs/gdb
index ab16e3db5..8518ae6af 100644
--- a/lfs/gdb
+++ b/lfs/gdb
@@ -1,7 +1,7 @@ 
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2024  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2025  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -24,7 +24,7 @@ 
 
 include Config
 
-VER        = 15.2
+VER        = 16.1
 
 THISAPP    = gdb-$(VER)
 DL_FILE    = $(THISAPP).tar.xz
@@ -40,7 +40,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_BLAKE2 = 073668c21b41f12bf40160c6d3df808056453cc9df3b5b86374abe38e955d208f86467458b7e64b3c3e93d70b7f87425619778173fdb375256cd85be15419f14
+$(DL_FILE)_BLAKE2 = d1907a4abffda663e3d383959ee18e1ef91fe913c378cf9681bdf5810bf7e7f065236f722564fd77eebf15700751fed1cef58c25cd0c0c44d1d9a416809f6a66
 
 install : $(TARGET)