Opened 3 weeks ago
Closed 3 weeks ago
#24020 closed enhancement (fixed)
gdb-18.1
| Reported by: | Bruce Dubbs | Owned by: | Bruce Dubbs |
|---|---|---|---|
| Priority: | normal | Milestone: | 13.2 |
| Component: | BOOK | Version: | git |
| Severity: | normal | Keywords: | |
| Cc: |
Description
New major version.
Change History (3)
comment:1 by , 3 weeks ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 3 weeks ago
comment:3 by , 3 weeks ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed at commit 59f8fb50a1.
Note:
See TracTickets
for help on using tickets.

Changes in GDB 18
E.g., depending on compiler and build system used by your project, previously GDB could show a mix of slash styles, like for example: C:/proj/src\main.c GDB will now consistently show forward slashes: C:/proj/src/main.c This impacts all interpreters, including the CLI, the TUI, the GDB/MI interface, and the Debug Adapter Protocol, and affects everywhere GDB shows a filename/dirname: source filenames, executable filename, shared libraries, the cd/pwd commands, etc.GNU/Linux/MicroBlaze (gdbserver) microblazeel-*linux*
AArch64 MinGW aarch64-*-mingw*
GNU/Linux/S390 32-bit s390-*-*
tsave
maintenance info program-spaces
info inferiors
New command class for help
info locals
target ctf
single-inf-arg in qSupported The new single-inf-arg feature within the qSupported packet allows GDB to inform the stub that it would like to send the inferior arguments as a single string within the vRun packet. The stub can reply with the single-inf-arg feature to indicate that it is able to accept arguments as a single string. set args run start starti These commands now all allow for entering inferior arguments that contain a newline character. The newline must be contained within a single or double quoted argument. * New remote packets qExecAndArgs This packet returns the executable filename and argument string with which the server was started. If no such information was given to the server then this is reflected in the reply. * Python API ** New class gdb.Style for representing styles, a collection of foreground and background gdb.Color objects, and an intensity. ** New constants gdb.INTENSITY_NORMAL, gdb.INTENSITY_BOLD, and gdb.INTENSITY_DIM for use with gdb.Style when representing intensities. ** New gdb.StyleParameterSet for creating custom style settings. Use gdb.StyleParameterSet(NAME) to create 'set style NAME ...' and 'show style NAME ...' parameters. ** The gdb.write() function now takes an additional, optional, 'style' argument, which can be used to style the output. ** New gdb.Corefile class which represents a loaded core file. This has an attribute Corefile.filename, the file name of the loaded core file, and a method Corefile.is_valid(), which returns False when a Corefile object becomes invalid (e.g. when the core file is unloaded). There is also Corefile.mapped_files() which returns a list of CorefileMappedFile objects, representing files that were mapped into the core file when it was created. ** New gdb.CorefileMappedFile type representing a file that was mapped when the core file was created. Has read-only attributes filename (string), build_id (string), is_main_executable (boolean), and regions (list of CorefileMappedFileRegion objects). ** New gdb.CorefileMappedFileRegion type, which represents a mapped region of a file (see gdb.CorefileMappedFile above). Has read-only attributes start, end, and file_offset. ** New Inferior.corefile attribute. This read only attribute contains the gdb.Corefile object if a core file is loaded into the inferior, otherwise, this contains None. ** New event registry gdb.events.selected_context that emits a SelectedContextEvent event whenever the user changes the inferior context. The context consists of which inferior, thread, and frame are currently selected. The event object has 'inferior', 'thread' and 'frame' attributes containing gdb.Inferior, gdb.InferiorThread, and gdb.Frame objects respectively. ** New method gdb.Symtab.source_lines(start, end, unstyled). This returns a tuple of strings, each string represents a single source line for the file associated with the symtab. The 'start' and 'end' are line numbers, and allow for only some lines to be returned, these default to the first and last lines in the file respectively. If 'unstyled' is true then the returned lines will have no styling applied, otherwise, styling will be applied if the appropriate user setting is enabled, and GDB knows how to style this source file. ** The Architecture.disassemble method accepts a new 'styling' argument, which defaults to False. When set to True the 'asm' strings in the disassembler output can contain ANSI escape sequences to indicate styling. ** New gdb.Block.ranges attribute. This read only attribute contains a tuple of pairs each representing a single range. Contiguous blocks have only one range. ** New event registry gdb.events.corefile_changed, which emits a CorefileChangedEvent whenever the core file associated with an inferior changes. The event has an 'inferior' attribute which is the gdb.Inferior in which the core file has changed.