]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/NEWS
gdb/dwarf2: Add support for DW_LNS_set_epilogue_begin in line-table
[thirdparty/binutils-gdb.git] / gdb / NEWS
CommitLineData
c906108c
SS
1 What has changed in GDB?
2 (Organized release by release)
3
bfc57664
JB
4*** Changes since GDB 14
5
f74dc267
LS
6* Building GDB and GDBserver now requires a C++17 compiler.
7 For example, GCC 9 or later.
8
93845901 9* GDB index now contains information about the main function. This speeds up
8b9c08ed
MBB
10 startup when it is being used for some large binaries.
11
f3a8a979
AB
12* Changed commands
13
14disassemble
15 Attempting to use both the 'r' and 'b' flags with the disassemble
16 command will now give an error. Previously the 'b' flag would
17 always override the 'r' flag.
18
528b729b
GL
19maintenance info line-table
20 Add an EPILOGUE-BEGIN column to the output of the command. It indicates
21 if the line is considered the start of the epilgoue, and thus a point at
22 which the frame can be considered destroyed.
23
8d081332 24* New commands
8f6c452b
AB
25
26info missing-debug-handler
27 List all the registered missing debug handlers.
28
29enable missing-debug-handler LOCUS HANDLER
30disable missing-debug-handler LOCUS HANDLER
31 Enable or disable a missing debug handler with a name matching the
32 regular expression HANDLER, in LOCUS.
33
34 LOCUS can be 'global' to operate on global missing debug handler,
35 'progspace' to operate on handlers within the current program space,
36 or can be a regular expression which is matched against the filename
37 of the primary executable in each program space.
38
8d081332
AB
39maintenance info linux-lwps
40 List all LWPs under control of the linux-nat target.
41
42set remote thread-options-packet
43show remote thread-options-packet
44 Set/show the use of the thread options packet.
45
3bf9e166
AB
46* New features in the GDB remote stub, GDBserver
47
48 ** The --remote-debug and --event-loop-debug command line options
49 have been removed.
50
51 ** The --debug command line option now takes an optional comma
52 separated list of components to emit debug for. The currently
53 supported components are: all, threads, event-loop, and remote.
54 If no components are given then threads is assumed.
55
8fd5a605
AB
56 ** The 'monitor set remote-debug' and 'monitor set event-loop-debug'
57 command have been removed.
58
59 ** The 'monitor set debug 0|1' command has been extended to take a
60 component name, e.g.: 'monitor set debug COMPONENT off|on'.
61 Possible component names are: all, threads, event-loop, and
62 remote.
63
4825fd2d
JV
64* Python API
65
66 ** New function gdb.notify_mi(NAME, DATA), that emits custom
67 GDB/MI async notification.
68
ef8cf909
AB
69 ** New read/write attribute gdb.Value.bytes that contains a bytes
70 object holding the contents of this value.
71
8f6c452b
AB
72 ** New module gdb.missing_debug that facilitates dealing with
73 objfiles that are missing any debug information.
74
75 ** New function gdb.missing_debug.register_handler that can register
76 an instance of a sub-class of gdb.missing_debug.MissingDebugInfo
77 as a handler for objfiles that are missing debug information.
78
79 ** New class gdb.missing_debug.MissingDebugInfo which can be
80 sub-classed to create handlers for objfiles with missing debug
81 information.
82
e187e7c9
TT
83 ** Stop events now have a "details" attribute that holds a
84 dictionary that carries the same information as an MI "*stopped"
85 event.
86
3a12e74e
TT
87 ** New function gdb.interrupt(), that interrupts GDB as if the user
88 typed control-c.
89
9a099bc2
TT
90* Debugger Adapter Protocol changes
91
92 ** GDB now emits the "process" event.
93
1c79c8da
TT
94 ** GDB now supports the "cancel" request.
95
eb6476e2
TT
96 ** The "attach" request now supports specifying the program.
97
dfc4bd46
TT
98 ** New command "set debug dap-log-level" controls DAP logging.
99
100 ** The "set debug dap-log-file" command is now documented. This
101 command was available in GDB 14 but not documented.
102
b11df22a
PA
103* New remote packets
104
105New stop reason: clone
106 Indicates that a clone system call was executed.
107
108QThreadOptions
109 Enable/disable optional event reporting, on a per-thread basis.
110 Currently supported options are GDB_THREAD_OPTION_CLONE, to enable
111 clone event reporting, and GDB_THREAD_OPTION_EXIT to enable thread
112 exit event reporting.
113
114QThreadOptions in qSupported
115 The qSupported packet allows GDB to inform the stub it supports the
116 QThreadOptions packet, and the qSupported response can contain the
117 set of thread options the remote stub supports.
118
bfc57664 119*** Changes in GDB 14
4ff87a30 120
cacc7bd7
LM
121* GDB now supports the AArch64 Scalable Matrix Extension 2 (SME2), which
122 includes a new 512 bit lookup table register named ZT0.
123
6762e153
LM
124* GDB now supports the AArch64 Scalable Matrix Extension (SME), which includes
125 a new matrix register named ZA, a new thread register TPIDR2 and a new vector
126 length register SVG (streaming vector granule). GDB also supports tracking
127 ZA state across signal frames.
128
129 Some features are still under development or are dependent on ABI specs that
130 are still in alpha stage. For example, manual function calls with ZA state
131 don't have any special handling, and tracking of SVG changes based on
132 DWARF information is still not implemented, but there are plans to do so in
133 the future.
134
4ebfd53d
TT
135* GDB now recognizes the NO_COLOR environment variable and disables
136 styling according to the spec. See https://no-color.org/.
137 Styling can be re-enabled with "set style enabled on".
138
acdf6071
LM
139* The AArch64 'org.gnu.gdb.aarch64.pauth' Pointer Authentication feature string
140 has been deprecated in favor of the 'org.gnu.gdb.aarch64.pauth_v2' feature
141 string.
142
303a881f
TT
143* GDB now has some support for integer types larger than 64 bits.
144
2eb26135
AVK
145* Removed targets and native configurations
146
147 GDB no longer supports AIX 4.x, AIX 5.x and AIX 6.x. The minimum supported
148 AIX version is now AIX 7.1.
149
ff52c073
CS
150* Multi-target feature configuration
151
152 GDB now supports the individual configuration of remote targets' feature
153 sets. Based on the current selection of a target, the commands 'set remote
154 <name>-packet (on|off|auto)' and 'show remote <name>-packet' can be used to
155 configure a target's feature packet and to display its configuration,
156 respectively.
157
fe4c3ca0
CS
158 The individual packet sizes can be configured and shown using the commands
159 ** 'set remote memory-read-packet-size (number of bytes|fixed|limit)'
160 ** 'set remote memory-write-packet-size (number of bytes|fixed|limit)'
161 ** 'show remote memory-read-packet-size'
162 ** 'show remote memory-write-packet-size'.
163
164 The configuration of the packet itself, as well as the size of a memory-read
165 or memory-write packet applies to the currently selected target (if
166 available). If no target is selected, it applies to future remote
ff52c073
CS
167 connections. Similarly, the show commands print the configuration of the
168 currently selected target. If no remote target is selected, the default
169 configuration for future connections is shown.
170
de7d7cb5
TT
171* GDB has initial built-in support for the Debugger Adapter Protocol.
172 This support requires that GDB be built with Python scripting
173 enabled.
174
980dbf36
AB
175* For the break command, multiple uses of the 'thread' or 'task'
176 keywords will now give an error instead of just using the thread or
177 task id from the last instance of the keyword. E.g.:
178 break foo thread 1 thread 2
179 will now give an error rather than using 'thread 2'.
180
181* For the watch command, multiple uses of the 'task' keyword will now
182 give an error instead of just using the task id from the last
183 instance of the keyword. E.g.:
184 watch my_var task 1 task 2
185 will now give an error rather than using 'task 2'. The 'thread'
186 keyword already gave an error when used multiple times with the
187 watch command, this remains unchanged.
188
a0c07915
AB
189* The 'set print elements' setting now helps when printing large arrays.
190 If an array would otherwise exceed max-value-size, but 'print elements'
191 is set such that the size of elements to print is less than or equal
192 to 'max-value-size', GDB will now still print the array, however only
193 'max-value-size' worth of data will be added into the value history.
194
0a9ccb9d
AB
195* For both the break and watch commands, it is now invalid to use both
196 the 'thread' and 'task' keywords within the same command. For
197 example the following commnds will now give an error:
198 break foo thread 1 task 1
199 watch var thread 2 task 3
200
901682e4
AB
201* The printf command now accepts a '%V' output format which will
202 format an expression just as the 'print' command would. Print
203 options can be placed withing '[...]' after the '%V' to modify how
204 the value is printed. E.g:
205 printf "%V", some_array
206 printf "%V[-array-indexes on]", some_array
207 will print the array without, or with array indexes included, just
208 as the array would be printed by the 'print' command. This
209 functionality is also available for dprintf when dprintf-style is
210 'gdb'.
211
13f5f57e
AB
212* When the printf command requires a string to be fetched from the
213 inferior, GDB now uses the existing 'max-value-size' setting to the
214 limit the memory allocated within GDB. The default 'max-value-size'
215 is 64k. To print longer strings you should increase
216 'max-value-size'.
217
22f6f797
TT
218* The Ada 2022 Enum_Rep and Enum_Val attributes are now supported.
219
b3a27d2f
TT
220* The Ada 2022 target name symbol ('@') is now supported by the Ada
221 expression parser.
222
3e3a1874 223* The 'list' command now accepts '.' as an argument, which tells GDB to
12f567bc
GL
224 print the location around the point of execution within the current frame.
225 If the inferior hasn't started yet, the command will print around the
226 beginning of the 'main' function.
3e3a1874 227
f52625f1
BL
228* Using the 'list' command with no arguments in a situation where the
229 command would attempt to list past the end of the file now warns the
230 user that the end of file has been reached, refers the user to the
231 newly added '.' argument
232
b080fe54
AB
233* Breakpoints can now be inferior-specific. This is similar to the
234 existing thread-specific breakpoint support. Breakpoint conditions
235 can include the 'inferior' keyword followed by an inferior id (as
236 displayed in the 'info inferiors' output). It is invalid to use the
237 'inferior' keyword with either the 'thread' or 'task' keywords when
238 creating a breakpoint.
239
9a896be3
AB
240* New convenience function "$_shell", to execute a shell command and
241 return the result. This lets you run shell commands in expressions.
242 Some examples:
243
244 (gdb) p $_shell("true")
245 $1 = 0
246 (gdb) p $_shell("false")
247 $2 = 1
248 (gdb) break func if $_shell("some command") == 0
249
740ce350
TJB
250* Configure changes
251
252--additional-debug-dirs=PATHs
253
254 Provide a colon-separated list of additional directories to search for
255 separate debug info. These directories are added to the default value of
256 the 'debug-file-directory' GDB parameter.
257
e24d337e
BL
258* New commands
259
3cdc2d7e
MS
260set debug breakpoint on|off
261 show debug breakpoint
262 Print additional debug messages about breakpoint insertion and removal.
263
e24d337e
BL
264maintenance print record-instruction [ N ]
265 Print the recorded information for a given instruction. If N is not given
266 prints how GDB would undo the last instruction executed. If N is negative,
267 prints how GDB would undo the N-th previous instruction, and if N is
268 positive, it prints how GDB will redo the N-th following instruction.
269
be016879
TV
270maintenance info frame-unwinders
271 List the frame unwinders currently in effect, starting with the highest
272 priority.
273
f0c3dcc1
TT
274maintenance wait-for-index-cache
275 Wait until all pending writes to the index cache have completed.
276
0d5adb56
TV
277set always-read-ctf on|off
278show always-read-ctf
279 When off, CTF is only read if DWARF is not present. When on, CTF is
280 read regardless of whether DWARF is present. Off by default.
281
03d83cd5
RB
282info main
283 Get main symbol to identify entry point into program.
284
0f6a6994
MG
285set tui mouse-events [on|off]
286show tui mouse-events
287 When on (default), mouse clicks control the TUI and can be accessed by
288 Python extensions. When off, mouse clicks are handled by the terminal,
289 enabling terminal-native text selection.
290
37f54063
BL
291* MI changes
292
9a896be3
AB
293** MI version 1 has been removed.
294
37f54063
BL
295** mi now reports 'no-history' as a stop reason when hitting the end of the
296 reverse execution history.
297
2fd9a436
AB
298** When creating a thread-specific breakpoint using the '-p' option,
299 the -break-insert command would report the 'thread' field twice in
300 the reply. The content of both fields was always identical. This
301 has now been fixed; the 'thread' field will be reported just once
302 for thread-specific breakpoints, or not at all for breakpoints
303 without a thread restriction. The same is also true for the 'task'
304 field of an Ada task-specific breakpoint.
305
00cdd79a
AB
306** It is no longer possible to create a thread-specific breakpoint for
307 a thread that doesn't exist using '-break-insert -p ID'. Creating
308 breakpoints for non-existent threads is not allowed when using the
309 CLI, that the MI allowed it was a long standing bug, which has now
310 been fixed.
311
51f8dafb
GR
312** The '--simple-values' argument to the '-stack-list-arguments',
313 '-stack-list-locals', '-stack-list-variables', and '-var-list-children'
314 commands now takes reference types into account: that is, a value is now
315 considered simple if it is neither an array, structure, or union, nor a
316 reference to an array, structure, or union. (Previously all references were
317 considered simple.) Support for this feature can be verified by using the
318 '-list-features' command, which should contain "simple-values-ref-types".
319
b080fe54
AB
320** The -break-insert command now accepts a '-g thread-group-id' option
321 to allow for the creation of inferior-specific breakpoints.
322
323** The bkpt tuple, which appears in breakpoint-created notifications,
324 and in the result of the -break-insert command can now include an
325 optional 'inferior' field for both the main breakpoint, and each
326 location, when the breakpoint is inferior-specific.
327
6bf5f25b
AB
328* Python API
329
28ab5960
SF
330 ** gdb.ThreadExitedEvent added. Emits a ThreadEvent.
331
6bf5f25b
AB
332 ** The gdb.unwinder.Unwinder.name attribute is now read-only.
333
334 ** The name argument passed to gdb.unwinder.Unwinder.__init__ must
335 now be of type 'str' otherwise a TypeError will be raised.
336
337 ** The gdb.unwinder.Unwinder.enabled attribute can now only accept
338 values of type 'bool'. Changing this attribute will now
339 invalidate GDB's frame-cache, which means GDB will need to
340 rebuild its frame-cache when next required - either with, or
341 without the particular unwinder, depending on how 'enabled' was
342 changed.
343
86b35b71
AB
344 ** New methods added to the gdb.PendingFrame class. These methods
345 have the same behaviour as the corresponding methods on
346 gdb.Frame. The new methods are:
347
348 - gdb.PendingFrame.name: Return the name for the frame's
349 function, or None.
350 - gdb.PendingFrame.is_valid: Return True if the pending frame
351 object is valid.
352 - gdb.PendingFrame.pc: Return the $pc register value for this
353 frame.
354 - gdb.PendingFrame.language: Return a string containing the
355 language for this frame, or None.
356 - gdb.PendingFrame.find_sal: Return a gdb.Symtab_and_line
357 object for the current location within the pending frame, or
358 None.
359 - gdb.PendingFrame.block: Return a gdb.Block for the current
360 pending frame, or None.
361 - gdb.PendingFrame.function: Return a gdb.Symbol for the
362 current pending frame, or None.
363
64826d05
AB
364 ** The frame-id passed to gdb.PendingFrame.create_unwind_info can
365 now use either an integer or a gdb.Value object for each of its
366 'sp', 'pc', and 'special' attributes.
367
3712e78c
AB
368 ** A new class gdb.unwinder.FrameId has been added. Instances of
369 this class are constructed with 'sp' (stack-pointer) and 'pc'
370 (program-counter) values, and can be used as the frame-id when
371 calling gdb.PendingFrame.create_unwind_info.
372
0af2f233
AB
373 ** It is now no longer possible to sub-class the
374 gdb.disassembler.DisassemblerResult type.
375
4de4e485
AB
376 ** The Disassembler API from the gdb.disassembler module has been
377 extended to include styling support:
378
379 - The DisassemblerResult class can now be initialized with a list
380 of parts. Each part represents part of the disassembled
381 instruction along with the associated style information. This
382 list of parts can be accessed with the new
383 DisassemblerResult.parts property.
384
385 - New constants gdb.disassembler.STYLE_* representing all the
386 different styles part of an instruction might have.
387
388 - New methods DisassembleInfo.text_part and
389 DisassembleInfo.address_part which are used to create the new
390 styled parts of a disassembled instruction.
391
392 - Changes are backwards compatible, the older API can still be
393 used to disassemble instructions without styling.
394
c97d123d
TT
395 ** New function gdb.execute_mi(COMMAND, [ARG]...), that invokes a
396 GDB/MI command and returns the output as a Python dictionary.
397
560c121c
TT
398 ** New function gdb.block_signals(). This returns a context manager
399 that blocks any signals that GDB needs to handle itself.
400
401 ** New class gdb.Thread. This is a subclass of threading.Thread
402 that calls gdb.block_signals in its "start" method.
403
125862f0
TT
404 ** gdb.parse_and_eval now has a new "global_context" parameter.
405 This can be used to request that the parse only examine global
406 symbols.
407
31531132
TT
408 ** gdb.Inferior now has a new "arguments" attribute. This holds the
409 command-line arguments to the inferior, if known.
410
411 ** gdb.Inferior now has a new "main_name" attribute. This holds the
412 name of the inferior's "main", if known.
413
414 ** gdb.Inferior now has new methods "clear_env", "set_env", and
415 "unset_env". These can be used to modify the inferior's
416 environment before it is started.
417
ed801569
TT
418 ** gdb.Value now has the 'assign' method.
419
59668c9d
TT
420 ** gdb.Value now has the 'to_array' method. This converts an
421 array-like Value to an array.
422
27b2eff1
TT
423 ** gdb.Progspace now has the new method "objfile_for_address". This
424 returns the gdb.Objfile, if any, that covers a given address.
425
b080fe54
AB
426 ** gdb.Breakpoint now has an "inferior" attribute. If the
427 Breakpoint object is inferior specific then this attribute holds
428 the inferior-id (an integer). If the Breakpoint object is not
429 inferior specific, then this field contains None. This field can
430 be written too.
431
59668c9d
TT
432 ** gdb.Type now has the "is_array_like" and "is_string_like"
433 methods. These reflect GDB's internal idea of whether a type
434 might be array- or string-like, even if they do not have the
435 corresponding type code.
436
fb282576
TT
437 ** gdb.ValuePrinter is a new class that can be used as the base
438 class for the result of applying a pretty-printer. As a base
439 class, it signals to gdb that the printer may implement new
440 pretty-printer methods.
441
5ce85461
AB
442 ** New attribute Progspace.symbol_file. This attribute holds the
443 gdb.Objfile that corresponds to Progspace.filename (when
444 Progspace.filename is not None), otherwise, this attribute is
445 itself None.
446
4e02aca0
AB
447 ** New attribute Progspace.executable_filename. This attribute
448 holds a string containing a file name set by the "exec-file" or
449 "file" commands, or None if no executable file is set. This
450 isn't the exact string passed by the user to these commands; the
451 file name will have been partially resolved to an absolute file
452 name.
453
42f297ad
AB
454 ** A new executable_changed event registry is available. This event
455 emits ExecutableChangedEvent objects, which have 'progspace' (a
456 gdb.Progspace) and 'reload' (a Boolean) attributes. This event
457 is emitted when gdb.Progspace.executable_filename changes.
458
59912fb2
AB
459 ** New event registries gdb.events.new_progspace and
460 gdb.events.free_progspace, these emit NewProgspaceEvent and
461 FreeProgspaceEvent event types respectively. Both of these event
462 types have a single 'progspace' attribute, which is the
463 gdb.Progspace that is either being added to GDB, or removed from
464 GDB.
465
ee81567c
TT
466 ** gdb.LazyString now implements the __str__ method.
467
4ead09a2
TT
468 ** New method gdb.Frame.static_link that returns the outer frame
469 of a nested function frame.
470
4ff87a30 471*** Changes in GDB 13
ba09d2a8 472
560f8d05
TT
473* MI version 1 is deprecated, and will be removed in GDB 14.
474
68cffbbd
LM
475* GDB now supports dumping memory tag data for AArch64 MTE. It also supports
476 reading memory tag data for AArch64 MTE from core files generated by
477 the gcore command or the Linux kernel.
478
479 When a process uses memory-mapped pages protected by memory tags (for
480 example, AArch64 MTE), this additional information will be recorded in
481 the core file in the event of a crash or if GDB generates a core file
482 from the current process state. GDB will show this additional information
483 automatically, or through one of the memory-tag subcommands.
484
7ac958f2
PA
485* Scheduler-locking and new threads
486
487 When scheduler-locking is in effect, only the current thread may run
488 when the inferior is resumed. However, previously, new threads
489 created by the resumed thread would still be able to run free. Now,
490 they are held stopped.
491
fbcda577
PA
492* "info breakpoints" now displays enabled breakpoint locations of
493 disabled breakpoints as in the "y-" state. For example:
494
495 (gdb) info breakpoints
496 Num Type Disp Enb Address What
497 1 breakpoint keep n <MULTIPLE>
498 1.1 y- 0x00000000000011b6 in ...
499 1.2 y- 0x00000000000011c2 in ...
500 1.3 n 0x00000000000011ce in ...
501
ed8f05ba
JB
502* Support for Thread Local Storage (TLS) variables on FreeBSD arm and
503 aarch64 architectures.
504
065a00b3
JB
505* GDB now supports hardware watchpoints on FreeBSD/Aarch64.
506
edae3fd6
SM
507* Remove support for building against Python 2, it is now only possible to
508 build GDB against Python 3.
509
49a82d50
TT
510* DBX mode has been removed.
511
cc96ae7f
LS
512* GDB now honours the DWARF prologue_end line-table entry flag the compiler can
513 emit to indicate where a breakpoint should be placed to break in a function
514 past its prologue.
515
89555e4e
MR
516* Completion now also offers "NUMBER" for "set" commands that accept
517 a numeric argument and the "unlimited" keyword. For example:
518
519 (gdb) set width <TAB>
520 NUMBER unlimited
521
522 and consequently:
523
524 (gdb) complete set width
525 set width NUMBER
526 set width unlimited
527
4cbe4ca5
AB
528* Disassembler styling using libopcodes. GDB now supports
529 disassembler styling using libopcodes. This is only available for
530 some targets (currently x86 and RISC-V). For unsupported targets
531 Python Pygments is still used. For supported targets, libopcodes
532 styling is used by default.
533
d08bae3d
TT
534* The Windows native target now supports target async.
535
2cac01e3
FS
536* gdb now supports zstd compressed debug sections (ELFCOMPRESS_ZSTD) for ELF.
537
d4ce49b7
AB
538* The format of 'disassemble /r' and 'record instruction-history /r'
539 has changed. The instruction bytes could now be grouped together,
540 and displayed in the endianness of the instruction. This is the
541 same layout as used by GNU objdump when disassembling.
542
543 There is now 'disassemble /b' and 'record instruction-history /b'
544 which will always display the instructions bytes one at a time in
545 memory order, that is, the byte at the lowest address first.
546
547 For both /r and /b GDB is now better at using whitespace in order to
548 align the disassembled instruction text.
549
92c1d07d
PA
550* The TUI no longer styles the source and assembly code highlighted by
551 the current position indicator by default. You can however
552 re-enable styling using the new "set style tui-current-position"
553 command.
554
cbda14de
AB
555* New convenience variable $_inferior_thread_count contains the number
556 of live threads in the current inferior.
557
78805ff8
PW
558* When a breakpoint with multiple code locations is hit, GDB now prints
559 the code location using the syntax <breakpoint_number>.<location_number>
560 such as in:
561 Thread 1 "zeoes" hit Breakpoint 2.3, some_func () at zeoes.c:8
562
563* When a breakpoint is hit, GDB now sets the convenience variables $_hit_bpnum
564 and $_hit_locno to the hit breakpoint number and code location number.
565 This allows to disable the last hit breakpoint using
566 (gdb) disable $_hit_bpnum
567 or disable only the specific breakpoint code location using
568 (gdb) disable $_hit_bpnum.$_hit_locno
569 These commands can be used inside the command list of a breakpoint to
570 automatically disable the just encountered breakpoint (or the just
571 encountered specific breakpoint code location).
572 When a breakpoint has only one location, $_hit_locno is set to 1 so that
573 (gdb) disable $_hit_bpnum.$_hit_locno
574 and
575 (gdb) disable $_hit_bpnum
576 are both disabling the breakpoint.
577
6109f7a3
LS
578* New commands
579
580maintenance set ignore-prologue-end-flag on|off
581maintenance show ignore-prologue-end-flag
582 This setting, which is off by default, controls whether GDB ignores the
583 PROLOGUE-END flag from the line-table when skipping prologue. This can be
584 used to force GDB to use prologue analyzers if the line-table is constructed
585 from erroneous debug information.
586
153b3c11
EL
587set print nibbles [on|off]
588show print nibbles
589 This controls whether the 'print/t' command will display binary values
590 in groups of four bits, known as "nibbles". The default is 'off'.
591
4cbe4ca5
AB
592maintenance set libopcodes-styling on|off
593maintenance show libopcodes-styling
594 These can be used to force off libopcodes based styling, the Python
595 Pygments styling will then be used instead.
596
597set style disassembler comment
598show style disassembler comment
599set style disassembler immediate
600show style disassembler immediate
601set style disassembler mnemonic
602show style disassembler mnemonic
603set style disassembler register
604show style disassembler register
605set style disassembler address
606show style disassembler address
607set style disassembler symbol
608show style disassembler symbol
609 For targets that support libopcodes based styling, these settings
610 control how various aspects of the disassembler output are styled.
611 The 'disassembler address' and 'disassembler symbol' styles are
612 aliases for the 'address' and 'function' styles respectively.
613
70175292
AB
614maintenance print frame-id [ LEVEL ]
615 Print GDB's internal frame-id for the frame at LEVEL. If LEVEL is
616 not given, then print the frame-id for the currently selected frame.
617
e4014689
AB
618set debug infcall on|off
619show debug infcall
620 Print additional debug messages about inferior function calls.
621
e26d0dab
SM
622set debug solib on|off
623show debug solib
624 Print additional debug messages about shared library handling.
625
92c1d07d
PA
626set style tui-current-position [on|off]
627 Whether to style the source and assembly code highlighted by the
628 TUI's current position indicator. The default is off.
629
76b58849
AB
630set print characters LIMIT
631show print characters
632 This new setting is like 'set print elements', but controls how many
633 characters of a string are printed. This functionality used to be
634 covered by 'set print elements', but it can be controlled separately
635 now. LIMIT can be set to a numerical value to request that particular
636 character count, to 'unlimited' to print all characters of a string,
637 or to 'elements', which is also the default, to follow the setting of
638 'set print elements' as it used to be.
639
640print -characters LIMIT
641 This new option to the 'print' command has the same effect as a temporary
642 use of 'set print characters'.
643
cc96ae7f
LS
644* Changed commands
645
effcf7b1
PW
646document user-defined
647 It is now possible to document user-defined aliases.
648 When a user-defined alias is documented, the help and apropos commands
649 use the provided documentation instead of the documentation of the
650 aliased command.
651 Documenting a user-defined alias is particularly useful when the alias
652 is a set of nested 'with' commands to avoid showing the help of
653 the with command for an alias that will in fact launch the
654 last command given in the nested commands.
655
cc96ae7f
LS
656maintenance info line-table
657 Add a PROLOGUE-END column to the output which indicates that an
658 entry corresponds to an address where a breakpoint should be placed
659 to be at the first instruction past a function's prologue.
660
e26d0dab
SM
661* Removed commands
662
663set debug aix-solib on|off
664show debug aix-solib
665set debug solib-frv on|off
666show debug solib-frv
667 Removed in favor of "set/show debug solib".
668
5d80df4a
AB
669maintenance info program-spaces
670 This command now includes a 'Core File' column which indicates the
671 name of the core file associated with each program space.
672
02e85f7a
TY
673* New targets
674
675GNU/Linux/LoongArch (gdbserver) loongarch*-*-linux*
676
02cd1b4e
JL
677GNU/Linux/CSKY (gdbserver) csky*-*linux*
678
18b4d073
SM
679AMDGPU amdgcn-*-*
680
78805ff8
PW
681* MI changes
682
683 ** The async record stating the stopped reason 'breakpoint-hit' now
684 contains an optional field locno giving the code location number
685 when the breakpoint has multiple code locations.
686
25209e2c
AB
687* Python API
688
691ade38
TT
689 ** GDB will now reformat the doc string for gdb.Command and
690 gdb.Parameter sub-classes to remove unnecessary leading
691 whitespace from each line before using the string as the help
692 output.
693
25209e2c
AB
694 ** New function gdb.format_address(ADDRESS, PROGSPACE, ARCHITECTURE),
695 that formats ADDRESS as 'address <symbol+offset>', where symbol is
696 looked up in PROGSPACE, and ARCHITECTURE is used to format address.
697 This is the same format that GDB uses when printing address, symbol,
698 and offset information from the disassembler.
699
80fa4b2a
TT
700 ** New function gdb.current_language that returns the name of the
701 current language. Unlike gdb.parameter('language'), this will
702 never return 'auto'.
703
704 ** New method gdb.Frame.language that returns the name of the
705 frame's language.
706
15e15b2d
AB
707 ** New Python API for wrapping GDB's disassembler:
708
709 - gdb.disassembler.register_disassembler(DISASSEMBLER, ARCH).
710 DISASSEMBLER is a sub-class of gdb.disassembler.Disassembler.
711 ARCH is either None or a string containing a bfd architecture
712 name. DISASSEMBLER is registered as a disassembler for
713 architecture ARCH, or for all architectures if ARCH is None.
714 The previous disassembler registered for ARCH is returned, this
715 can be None if no previous disassembler was registered.
716
717 - gdb.disassembler.Disassembler is the class from which all
718 disassemblers should inherit. Its constructor takes a string,
719 a name for the disassembler, which is currently only used in
720 some debug output. Sub-classes should override the __call__
721 method to perform disassembly, invoking __call__ on this base
722 class will raise an exception.
723
724 - gdb.disassembler.DisassembleInfo is the class used to describe
725 a single disassembly request from GDB. An instance of this
726 class is passed to the __call__ method of
727 gdb.disassembler.Disassembler and has the following read-only
728 attributes: 'address', and 'architecture', as well as the
729 following method: 'read_memory'.
730
731 - gdb.disassembler.builtin_disassemble(INFO, MEMORY_SOURCE),
732 calls GDB's builtin disassembler on INFO, which is a
733 gdb.disassembler.DisassembleInfo object. MEMORY_SOURCE is
734 optional, its default value is None. If MEMORY_SOURCE is not
735 None then it must be an object that has a 'read_memory' method.
736
737 - gdb.disassembler.DisassemblerResult is a class that can be used
738 to wrap the result of a call to a Disassembler. It has
739 read-only attributes 'length' and 'string'.
740
99298c95
TT
741 ** gdb.Objfile now has an attribute named "is_file". This is True
742 if the objfile comes from a file, and False otherwise.
743
c4a3dbaf
TT
744 ** New function gdb.print_options that returns a dictionary of the
745 prevailing print options, in the form accepted by
746 gdb.Value.format_string.
747
748 ** gdb.Value.format_string now uses the format provided by 'print',
749 if it is called during a 'print' or other similar operation.
750
72be9d6b
TT
751 ** gdb.Value.format_string now accepts the 'summary' keyword. This
752 can be used to request a shorter representation of a value, the
753 way that 'set print frame-arguments scalars' does.
754
e5213e2c
SF
755 ** New Python type gdb.BreakpointLocation.
756 The new attribute 'locations' of gdb.Breakpoint returns a list of
757 gdb.BreakpointLocation objects specifying the locations where the
758 breakpoint is inserted into the debuggee.
759
7abc6ec0
AB
760 ** The gdb.register_window_type method now restricts the set of
761 acceptable window names. The first character of a window's name
762 must start with a character in the set [a-zA-Z], every subsequent
763 character of a window's name must be in the set [-_.a-zA-Z0-9].
764
02e85f7a
TY
765* New features in the GDB remote stub, GDBserver
766
767 ** GDBserver is now supported on LoongArch GNU/Linux.
02cd1b4e
JL
768
769 ** GDBserver is now supported on CSKY GNU/Linux.
02e85f7a 770
e24500cb
TY
771* LoongArch floating-point support
772
773GDB now supports floating-point on LoongArch GNU/Linux.
774
18b4d073
SM
775* AMD GPU ROCm debugging support
776
777GDB now supports debugging programs offloaded to AMD GPUs using the ROCm
778platform.
779
ba09d2a8 780*** Changes in GDB 12
ccd14903 781
cfeab26e
TT
782* DBX mode is deprecated, and will be removed in GDB 13
783
807310c5
AB
784* GDB 12 is the last release of GDB that will support building against
785 Python 2. From GDB 13, it will only be possible to build GDB itself
786 with Python 3 support.
787
bcb9251f
TT
788* The disable-randomization setting now works on Windows.
789
64a97606
KS
790* Improved C++ template support
791
792 GDB now treats functions/types involving C++ templates like it does function
793 overloads. Users may omit parameter lists to set breakpoints on families of
794 template functions, including types/functions composed of multiple template types:
795
796 (gdb) break template_func(template_1, int)
797
798 The above will set breakpoints at every function `template_func' where
799 the first function parameter is any template type named `template_1' and
800 the second function parameter is `int'.
801
802 TAB completion also gains similar improvements.
803
1ead4b8e
JB
804* The FreeBSD native target now supports async mode.
805
261b0748
LM
806* Configure changes
807
808--enable-threading
809
810 Enable or disable multithreaded symbol loading. This is enabled
811 by default, but passing --disable-threading or --enable-threading=no
812 to configure will disable it.
813
814 Disabling this can cause a performance penalty when there are a lot of
815 symbols to load, but is useful for debugging purposes.
816
fde1a9a3
AB
817* New commands
818
6aa4f97c
AB
819maint set backtrace-on-fatal-signal on|off
820maint show backtrace-on-fatal-signal
821 This setting is 'on' by default. When 'on' GDB will print a limited
822 backtrace to stderr in the situation where GDB terminates with a
823 fatal signal. This only supported on some platforms where the
824 backtrace and backtrace_symbols_fd functions are available.
825
fde1a9a3
AB
826set source open on|off
827show source open
828 This setting, which is on by default, controls whether GDB will try
829 to open source code files. Switching this off will stop GDB trying
830 to open and read source code files, which can be useful if the files
831 are located over a slow network connection.
832
acbf4a58
TT
833set varsize-limit
834show varsize-limit
835 These are now deprecated aliases for "set max-value-size" and
836 "show max-value-size".
837
bc75fb44
TT
838task apply [all | TASK-IDS...] [FLAG]... COMMAND
839 Like "thread apply", but applies COMMAND to Ada tasks.
840
8a18382f
TT
841watch [...] task ID
842 Watchpoints can now be restricted to a specific Ada task.
843
91f2597b
AB
844maint set internal-error backtrace on|off
845maint show internal-error backtrace
846maint set internal-warning backtrace on|off
847maint show internal-warning backtrace
848 GDB can now print a backtrace of itself when it encounters either an
849 internal-error, or an internal-warning. This is on by default for
850 internal-error and off by default for internal-warning.
851
6ff96754
TV
852set logging on|off
853 Deprecated and replaced by "set logging enabled on|off".
854
855set logging enabled on|off
856show logging enabled
857 These commands set or show whether logging is enabled or disabled.
858
fa8f0a0f
EL
859exit
860 You can now exit GDB by using the new command "exit", in addition to
861 the existing "quit" command.
862
5b0a3d62
AB
863set debug threads on|off
864show debug threads
865 Print additional debug messages about thread creation and deletion.
866
8864ef42
AB
867set debug linux-nat on|off
868show debug linux-nat
869 These new commands replaced the old 'set debug lin-lwp' and 'show
870 debug lin-lwp' respectively. Turning this setting on prints debug
871 messages relating to GDB's handling of native Linux inferiors.
872
39370778
AB
873maint flush source-cache
874 Flush the contents of the source code cache.
875
643b1268
AB
876maint set gnu-source-highlight enabled on|off
877maint show gnu-source-highlight enabled
878 Whether GDB should use the GNU Source Highlight library for adding
879 styling to source code. When off, the library will not be used, even
880 when available. When GNU Source Highlight isn't used, or can't add
881 styling to a particular source file, then the Python Pygments
882 library will be used instead.
883
61fb7376
TBA
884set suppress-cli-notifications (on|off)
885show suppress-cli-notifications
886 This controls whether printing the notifications is suppressed for CLI.
887 CLI notifications occur when you change the selected context
888 (i.e., the current inferior, thread and/or the frame), or when
889 the program being debugged stops (e.g., because of hitting a
890 breakpoint, completing source-stepping, an interrupt, etc.).
891
e867795e
AB
892set style disassembler enabled on|off
893show style disassembler enabled
894 If GDB is compiled with Python support, and the Python Pygments
895 package is available, then, when this setting is on, disassembler
896 output will have styling applied.
897
315e4ebb
TT
898set ada source-charset
899show ada source-charset
900 Set the character set encoding that is assumed for Ada symbols. Valid
901 values for this follow the values that can be passed to the GNAT
902 compiler via the '-gnati' option. The default is ISO-8859-1.
903
51c2a9e2
AB
904tui layout
905tui focus
906tui refresh
907tui window height
908 These are the new names for the old 'layout', 'focus', 'refresh',
909 and 'winheight' tui commands respectively. The old names still
910 exist as aliases to these new commands.
911
160444ec
AB
912tui window width
913winwidth
914 The new command 'tui window width', and the alias 'winwidth' allow
915 the width of a tui window to be adjusted when windows are laid out
916 in horizontal mode.
917
7421ccda
AB
918set debug tui on|off
919show debug tui
920 Control the display of debug output about GDB's tui.
921
e5b176f2
AB
922* Changed commands
923
56262a93
TT
924print
925 Printing of floating-point values with base-modifying formats like
926 /x has been changed to display the underlying bytes of the value in
927 the desired base. This was GDB's documented behavior, but was never
928 implemented correctly.
929
e5b176f2
AB
930maint packet
931 This command can now print a reply, if the reply includes
932 non-printable characters. Any non-printable characters are printed
933 as escaped hex, e.g. \x?? where '??' is replaces with the value of
934 the non-printable character.
935
003aae07
LS
936clone-inferior
937 The clone-inferior command now ensures that the TTY, CMD and ARGS
938 settings are copied from the original inferior to the new one.
939 All modifications to the environment variables done using the 'set
940 environment' or 'unset environment' commands are also copied to the new
941 inferior.
942
8864ef42
AB
943set debug lin-lwp on|off
944show debug lin-lwp
945 These commands have been removed from GDB. The new command 'set
946 debug linux-nat' and 'show debug linux-nat' should be used
947 instead.
948
f62843d7
AB
949info win
950 This command now includes information about the width of the tui
951 windows in its output.
952
51c2a9e2
AB
953layout
954focus
955refresh
956winheight
957 These commands are now aliases for the 'tui layout', 'tui focus',
958 'tui refresh', and 'tui window height' commands respectively.
959
63fc2437
TT
960* GDB's Ada parser now supports an extension for specifying the exact
961 byte contents of a floating-point literal. This can be useful for
962 setting floating-point registers to a precise value without loss of
963 precision. The syntax is an extension of the based literal syntax.
964 Use, e.g., "16lf#0123abcd#" -- the number of "l"s controls the width
965 of the floating-point type, and the "f" is the marker for floating
966 point.
967
d43bd54d
US
968* MI changes
969
970 ** The '-add-inferior' with no option flags now inherits the
971 connection of the current inferior, this restores the behaviour of
972 GDB as it was prior to GDB 10.
973
6fd90137
AB
974 ** The '-add-inferior' command now accepts a '--no-connection'
975 option, which causes the new inferior to start without a
976 connection.
977
9db0d853
SM
978 ** The default version of the MI interpreter is now 4 (-i=mi4).
979
980 ** The "script" field in breakpoint output (which is syntactically
981 incorrect in MI 3 and below) has changed in MI 4 to become a list.
982 This affects the following commands and events:
983
984 - -break-insert
985 - -break-info
986 - =breakpoint-created
987 - =breakpoint-modified
988
989 The -fix-breakpoint-script-output command can be used to enable
990 this behavior with previous MI versions.
991
d203a064
TY
992* New targets
993
575b4c29
PA
994GNU/Linux/LoongArch loongarch*-*-linux*
995
996* Removed targets
997
998S+core score-*-*
d203a064 999
540bf37b
AB
1000* Python API
1001
1002 ** New function gdb.add_history(), which takes a gdb.Value object
1003 and adds the value it represents to GDB's history list. An
1004 integer, the index of the new item in the history list, is
1005 returned.
1006
30a87e90
AB
1007 ** New function gdb.history_count(), which returns the number of
1008 values in GDB's value history.
1009
b1f0f284
AB
1010 ** New gdb.events.gdb_exiting event. This event is called with a
1011 gdb.GdbExitingEvent object which has the read-only attribute
1012 'exit_code', which contains the value of the GDB exit code. This
1013 event is triggered once GDB decides it is going to exit, but
1014 before GDB starts to clean up its internal state.
1015
8b87fbe6
AB
1016 ** New function gdb.architecture_names(), which returns a list
1017 containing all of the possible Architecture.name() values. Each
1018 entry is a string.
1019
d3771fe2
TT
1020 ** New function gdb.Architecture.integer_type(), which returns an
1021 integer type given a size and a signed-ness.
1022
0e3b7c25 1023 ** New gdb.TargetConnection object type that represents a connection
24b2de7b
AB
1024 (as displayed by the 'info connections' command). A sub-class,
1025 gdb.RemoteTargetConnection, is used to represent 'remote' and
1026 'extended-remote' connections.
0e3b7c25
AB
1027
1028 ** The gdb.Inferior type now has a 'connection' property which is an
1029 instance of gdb.TargetConnection, the connection used by this
1030 inferior. This can be None if the inferior has no connection.
1031
1032 ** New 'gdb.events.connection_removed' event registry, which emits a
1033 'gdb.ConnectionEvent' when a connection is removed from GDB.
1034 This event has a 'connection' property, a gdb.TargetConnection
1035 object for the connection being removed.
1036
1037 ** New gdb.connections() function that returns a list of all
1038 currently active connections.
1039
24b2de7b
AB
1040 ** New gdb.RemoteTargetConnection.send_packet(PACKET) method. This
1041 is equivalent to the existing 'maint packet' CLI command; it
1042 allows a user specified packet to be sent to the remote target.
1043
61671e97
AB
1044 ** New function gdb.host_charset(), returns a string, which is the
1045 name of the current host charset.
1046
b583c328
TT
1047 ** New gdb.set_parameter(NAME, VALUE). This sets the gdb parameter
1048 NAME to VALUE.
1049
1050 ** New gdb.with_parameter(NAME, VALUE). This returns a context
1051 manager that temporarily sets the gdb parameter NAME to VALUE,
1052 then resets it when the context is exited.
1053
0642912e
AB
1054 ** The gdb.Value.format_string method now takes a 'styling'
1055 argument, which is a boolean. When true, the returned string can
1056 include escape sequences to apply styling. The styling will only
1057 be present if styling is otherwise turned on in GDB (see 'help
1058 set styling'). When false, which is the default if the argument
1059 is not given, then no styling is applied to the returned string.
1060
659971cb
AB
1061 ** New read-only attribute gdb.InferiorThread.details, which is
1062 either a string, containing additional, target specific thread
1063 state information, or None, if there is no such additional
1064 information.
1065
ee6a3d9e
AB
1066 ** New read-only attribute gdb.Type.is_scalar, which is True for
1067 scalar types, and False for all other types.
1068
551b380f
AB
1069 ** New read-only attribute gdb.Type.is_signed. This attribute
1070 should only be read when Type.is_scalar is True, and will be True
1071 for signed types, and False for all other types. Attempting to
1072 read this attribute for non-scalar types will raise a ValueError.
1073
740b42ce
AB
1074 ** It is now possible to add GDB/MI commands implemented in Python.
1075
cb22a7c3
SH
1076* New features in the GDB remote stub, GDBserver
1077
1078 ** GDBserver is now supported on OpenRISC GNU/Linux.
1079
1080* New native configurations
1081
1082GNU/Linux/OpenRISC or1k*-*-linux*
1083
ccd14903 1084*** Changes in GDB 11
ed6a896c 1085
ae61ef2c
SV
1086* The 'set disassembler-options' command now supports specifying options
1087 for the ARC target.
1088
ce192338
LM
1089* GDB now supports general memory tagging functionality if the underlying
1090 architecture supports the proper primitives and hooks. Currently this is
1091 enabled only for AArch64 MTE.
1092
1093 This includes:
1094
1095 - Additional information when the inferior crashes with a SIGSEGV caused by
1096 a memory tag violation.
1097
1098 - A new modifier 'm' for the "x" command, which displays allocation tags for a
1099 particular memory range.
1100
1101 - Display of memory tag mismatches by "print", for addresses and
1102 pointers, if memory tagging is supported by the architecture.
1103
0fb8bb02
JB
1104* Building GDB now requires GMP (The GNU Multiple Precision Arithmetic
1105 Library).
1106
6791b117
PA
1107* MI changes
1108
1109 ** '-break-insert --qualified' and '-dprintf-insert --qualified'
1110
1111 The MI -break-insert and -dprintf-insert commands now support a
1112 new "--qualified" option that makes GDB interpret a specified
1113 function name as a complete fully-qualified name. This is the
1114 equivalent of the CLI's "break -qualified" and "dprintf
1115 -qualified".
1116
10e578d7
TBA
1117 ** '-break-insert --force-condition' and '-dprintf-insert --force-condition'
1118
1119 The MI -break-insert and -dprintf-insert commands now support a
1120 '--force-condition' flag to forcibly define a condition even when
1121 the condition is invalid at all locations of the breakpoint. This
1122 is equivalent to the '-force-condition' flag of the CLI's "break"
1123 command.
1124
79aabb73
TBA
1125 ** '-break-condition --force'
1126
1127 The MI -break-condition command now supports a '--force' flag to
1128 forcibly define a condition even when the condition is invalid at
1129 all locations of the selected breakpoint. This is equivalent to
1130 the '-force' flag of the CLI's "cond" command.
1131
1fb1ce02
AB
1132 ** '-file-list-exec-source-files [--group-by-objfile]
1133 [--basename | --dirname]
1134 [--] [REGEXP]'
0e350a05
AB
1135
1136 The existing -file-list-exec-source-files command now takes an
1137 optional REGEXP which is used to filter the source files that are
1138 included in the results.
1139
1140 By default REGEXP is matched against the full filename of the
1141 source file. When one of --basename or --dirname is given then
1142 REGEXP is only matched against the specified part of the full
1143 source filename.
1144
1fb1ce02
AB
1145 When the optional --group-by-objfile flag is used the output
1146 format is changed, the results are now a list of object files
1147 (executable and libraries) with the source files that are
1148 associated with each object file.
1149
0e350a05
AB
1150 The results from -file-list-exec-source-files now include a
1151 'debug-fully-read' field which takes the value 'true' or 'false'.
1152 A 'true' value indicates the source file is from a compilation
1153 unit that has had its debug information fully read in by GDB, a
1154 value of 'false' indicates GDB has only performed a partial scan
1155 of the debug information so far.
1156
d3483b43
JT
1157* GDB now supports core file debugging for x86_64 Cygwin programs.
1158
64aaad63
AB
1159* GDB will now look for the .gdbinit file in a config directory before
1160 looking for ~/.gdbinit. The file is searched for in the following
1161 locations: $XDG_CONFIG_HOME/gdb/gdbinit, $HOME/.config/gdb/gdbinit,
1162 $HOME/.gdbinit. On Apple hosts the search order is instead:
1163 $HOME/Library/Preferences/gdb/gdbinit, $HOME/.gdbinit.
1164
fa123c32
JB
1165* GDB now supports fixed point types which are described in DWARF
1166 as base types with a fixed-point encoding. Additionally, support
1167 for the DW_AT_GNU_numerator and DW_AT_GNU_denominator has also
1168 been added.
1169
1170 For Ada, this allows support for fixed point types without requiring
1171 the use of the GNAT encoding (based on information added to the type's
1172 name following a GNAT-specific format).
1173
92e4e97a
AB
1174* GDB will now load and process commands from ~/.config/gdb/gdbearlyinit
1175 or ~/.gdbearlyinit if these files are present. These files are
1176 processed earlier than any of the other initialization files and
1177 can affect parts of GDB's startup that previously had already been
1178 completed before the initialization files were read, for example
1179 styling of the initial GDB greeting.
1180
1181* GDB now has two new options "--early-init-command" and
1182 "--early-init-eval-command" with corresponding short options "-eix"
1183 and "-eiex" that allow options (that would normally appear in a
1184 gdbearlyinit file) to be passed on the command line.
1185
96f842cb
AB
1186* For RISC-V targets, the target feature "org.gnu.gdb.riscv.vector" is
1187 now understood by GDB, and can be used to describe the vector
1188 registers of a target. The precise requirements of this register
1189 feature are documented in the GDB manual.
1190
ae66a8f1
SP
1191* For ARM targets, the "org.gnu.gdb.arm.m-profile-mve" feature is now
1192 supported by GDB and describes a new VPR register from the ARM MVE
1193 (Helium) extension. See the GDB manual for more information.
1194
90b044ef
PA
1195* TUI improvements
1196
1197 ** TUI windows now support mouse actions. The mouse wheel scrolls
1198 the appropriate window.
1199
1200 ** Key combinations that do not have a specific action on the
1201 focused window are passed to GDB. For example, you now can use
1202 Ctrl-Left/Ctrl-Right to move between words in the command window
1203 regardless of which window is in focus. Previously you would
1204 need to focus on the command window for such key combinations to
1205 work.
1206
8d378f27
SM
1207* New commands
1208
1209set debug event-loop
1210show debug event-loop
1211 Control the display of debug output about GDB's event loop.
1212
ce192338
LM
1213set print memory-tag-violations
1214show print memory-tag-violations
1215 Control whether to display additional information about memory tag violations
1216 when printing pointers and addresses. Architecture support for memory
1217 tagging is required for this option to have an effect.
1218
50a5f187
AB
1219maintenance flush symbol-cache
1220maintenance flush register-cache
1221 These new commands are equivalent to the already existing commands
1222 'maintenance flush-symbol-cache' and 'flushregs' respectively.
1223
ee9812a0
AB
1224maintenance flush dcache
1225 A new command to flush the dcache.
1226
02a79309
AB
1227maintenance info target-sections
1228 Print GDB's internal target sections table.
1229
ff770835
SM
1230maintenance info jit
1231 Print the JIT code objects in the inferior known to GDB.
1232
ce192338
LM
1233memory-tag show-logical-tag POINTER
1234 Print the logical tag for POINTER.
1235memory-tag with-logical-tag POINTER TAG
1236 Print POINTER with logical tag TAG.
1237memory-tag show-allocation-tag ADDRESS
1238 Print the allocation tag for ADDRESS.
1239memory-tag set-allocation-tag ADDRESS LENGTH TAGS
1240 Set the allocation tag for [ADDRESS, ADDRESS + LENGTH) to TAGS.
1241memory-tag check POINTER
1242 Validate that POINTER's logical tag matches the allocation tag.
1243
5809fbf2
TT
1244set startup-quietly on|off
1245show startup-quietly
1246 When 'on', this causes GDB to act as if "-silent" were passed on the
1247 command line. This command needs to be added to an early
1248 initialization file (e.g. ~/.config/gdb/gdbearlyinit) in order to
1249 affect GDB.
1250
fbb46296
LS
1251set print type hex on|off
1252show print type hex
1253 When 'on', the 'ptype' command uses hexadecimal notation to print sizes
1254 and offsets of struct members. When 'off', decimal notation is used.
1255
edeaceda
AB
1256set python ignore-environment on|off
1257show python ignore-environment
1258 When 'on', this causes GDB's builtin Python to ignore any
8eb82ba1 1259 environment variables that would otherwise affect how Python
edeaceda
AB
1260 behaves. This command needs to be added to an early initialization
1261 file (e.g. ~/.config/gdb/gdbearlyinit) in order to affect GDB.
1262
1263set python dont-write-bytecode auto|on|off
1264show python dont-write-bytecode
1265 When 'on', this causes GDB's builtin Python to not write any
1266 byte-code (.pyc files) to disk. This command needs to be added to
1267 an early initialization file (e.g. ~/.config/gdb/gdbearlyinit) in
1268 order to affect GDB. When 'off' byte-code will always be written.
1269 When set to 'auto' (the default) Python will check the
8eb82ba1 1270 PYTHONDONTWRITEBYTECODE environment variable.
edeaceda 1271
733d554a
TBA
1272* Changed commands
1273
1274break [PROBE_MODIFIER] [LOCATION] [thread THREADNUM]
1275 [-force-condition] [if CONDITION]
1276 This command would previously refuse setting a breakpoint if the
1277 CONDITION expression is invalid at a location. It now accepts and
1278 defines the breakpoint if there is at least one location at which
1279 the CONDITION is valid. The locations for which the CONDITION is
1280 invalid, are automatically disabled. If CONDITION is invalid at all
1281 of the locations, setting the breakpoint is still rejected. However,
1282 the '-force-condition' flag can be used in this case for forcing GDB to
1283 define the breakpoint, making all the current locations automatically
1284 disabled. This may be useful if the user knows the condition will
1285 become meaningful at a future location, e.g. due to a shared library
1286 load.
1287
1288condition [-force] N COND
1289 The behavior of this command is changed the same way for the 'break'
1290 command as explained above. The '-force' flag can be used to force
1291 GDB into defining the condition even when COND is invalid for all the
1292 current locations of breakpoint N.
1293
50a5f187
AB
1294flushregs
1295maintenance flush-symbol-cache
1296 These commands are deprecated in favor of the new commands
1297 'maintenance flush register-cache' and 'maintenance flush
1298 symbol-cache' respectively.
1299
9d2d8a16
AB
1300set style version foreground COLOR
1301set style version background COLOR
1302set style version intensity VALUE
1303 Control the styling of GDB's version number text.
1304
2e3773ff
LS
1305inferior [ID]
1306 When the ID parameter is omitted, then this command prints information
1307 about the current inferior. When the ID parameter is present, the
1308 behavior of the command is unchanged and have the inferior ID become
1309 the current inferior.
1310
bf3386f0
AB
1311maintenance info sections
1312 The ALLOBJ keyword has been replaced with an -all-objects command
1313 line flag. It is now possible to filter which sections are printed
1314 even when -all-objects is passed.
1315
fbb46296
LS
1316ptype[/FLAGS] TYPE | EXPRESSION
1317 The 'ptype' command has two new flags. When '/x' is set, hexadecimal
1318 notation is used when printing sizes and offsets of struct members.
1319 When '/d' is set, decimal notation is used when printing sizes and
1320 offsets of struct members. Default behavior is given by 'show print
1321 type hex'.
1322
bd742128
AB
1323info sources
1324 The info sources command output has been restructured. The results
1325 are now based around a list of objfiles (executable and libraries),
1326 and for each objfile the source files that are part of that objfile
1327 are listed.
1328
18b8df43
AM
1329* Removed targets and native configurations
1330
1331ARM Symbian arm*-*-symbianelf*
1332
ce192338
LM
1333* New remote packets
1334
1335qMemTags
1336 Request the remote to send allocation tags for a particular memory range.
1337QMemTags
1338 Request the remote to store the specified allocation tags to the requested
1339 memory range.
1340
97cef6b7
GB
1341* Guile API
1342
1343 ** Improved support for rvalue reference values:
1344 TYPE_CODE_RVALUE_REF is now exported as part of the API and the
1345 value-referenced-value procedure now handles rvalue reference
1346 values.
1347
ee35ce82
GB
1348 ** New procedures for obtaining value variants:
1349 value-reference-value, value-rvalue-reference-value and
1350 value-const-value.
9d4fc61d 1351
ad42014b
GB
1352 ** Temporary breakpoints can now be created with make-breakpoint and
1353 tested for using breakpoint-temporary?.
1354
55789354
TBA
1355* Python API
1356
1357 ** Inferior objects now contain a read-only 'connection_num' attribute that
1358 gives the connection number as seen in 'info connections' and
1359 'info inferiors'.
1360
d52b8007
AB
1361 ** New method gdb.Frame.level() which returns the stack level of the
1362 frame object.
1363
1364 ** New method gdb.PendingFrame.level() which returns the stack level
1365 of the frame object.
1366
6b95f5ad
AB
1367 ** When hitting a catchpoint, the Python API will now emit a
1368 gdb.BreakpointEvent rather than a gdb.StopEvent. The
1369 gdb.Breakpoint attached to the event will have type BP_CATCHPOINT.
1370
90b044ef
PA
1371 ** Python TUI windows can now receive mouse click events. If the
1372 Window object implements the click method, it is called for each
1373 mouse click event in this window.
1374
ed6a896c 1375*** Changes in GDB 10
4decd62b 1376
995d3a19
SV
1377* There are new feature names for ARC targets: "org.gnu.gdb.arc.core"
1378 and "org.gnu.gdb.arc.aux". The old names are still supported but
1379 must be considered obsolete. They will be deprecated after some
1380 grace period.
1381
5b4a1a8d
PW
1382* Help and apropos commands will now show the documentation of a
1383 command only once, even if that command has one or more aliases.
1384 These commands now show the command name, then all of its aliases,
1385 and finally the description of the command.
1386
1387* 'help aliases' now shows only the user defined aliases. GDB predefined
1388 aliases are shown together with their aliased command.
1389
0d79cdc4
AM
1390* GDB now supports debuginfod, an HTTP server for distributing ELF/DWARF
1391 debugging information as well as source code.
1392
1393 When built with debuginfod, GDB can automatically query debuginfod
1394 servers for the separate debug files and source code of the executable
1395 being debugged.
1396
1397 To build GDB with debuginfod, pass --with-debuginfod to configure (this
1398 requires libdebuginfod, the debuginfod client library).
1399
1400 debuginfod is distributed with elfutils, starting with version 0.178.
1401
1402 You can get the latest version from https://sourceware.org/elfutils.
1403
7cf663a9
PA
1404* Multi-target debugging support
1405
1406 GDB now supports debugging multiple target connections
1407 simultaneously. For example, you can now have each inferior
1408 connected to different remote servers running in different machines,
1409 or have one inferior debugging a local native process, an inferior
1410 debugging a core dump, etc.
1411
1412 This support is experimental and comes with some limitations -- you
1413 can only resume multiple targets simultaneously if all targets
1414 support non-stop mode, and all remote stubs or servers must support
1415 the same set of remote protocol features exactly. See also "info
1416 connections" and "add-inferior -no-connection" below, and "maint set
1417 target-non-stop" in the user manual.
1418
bf84f706
MR
1419* New features in the GDB remote stub, GDBserver
1420
ada508b6
SV
1421 ** GDBserver is now supported on ARC GNU/Linux.
1422
bf84f706
MR
1423 ** GDBserver is now supported on RISC-V GNU/Linux.
1424
6a17d503
SM
1425 ** GDBserver no longer supports these host triplets:
1426
1427 i[34567]86-*-lynxos*
1428 powerpc-*-lynxos*
1429 i[34567]86-*-nto*
1430 bfin-*-*linux*
1431 crisv32-*-linux*
1432 cris-*-linux*
1433 m32r*-*-linux*
1434 tilegx-*-linux*
1435 arm*-*-mingw32ce*
1436 i[34567]86-*-mingw32ce*
1437
3f602821
EZ
1438* Debugging MS-Windows processes now sets $_exitsignal when the
1439 inferior is terminated by a signal, instead of setting $_exitcode.
1440
8fb75323
CB
1441* Multithreaded symbol loading has now been enabled by default on systems
1442 that support it (see entry for GDB 9, below), providing faster
1443 performance for programs with many symbols.
1444
7928d571
HD
1445* The $_siginfo convenience variable now also works on Windows targets,
1446 and will display the EXCEPTION_RECORD of the last handled exception.
1447
7c043ba6 1448* TUI windows can now be arranged horizontally.
63e163f2
AB
1449
1450* The command history filename can now be set to the empty string
1451 either using 'set history filename' or by setting 'GDBHISTFILE=' in
1452 the environment. The effect of setting this filename to the empty
1453 string is that GDB will not try to load any previous command
1454 history.
46f9f931
HD
1455
1456* On Windows targets, it is now possible to debug 32-bit programs with a
1457 64-bit GDB.
7c043ba6 1458
e47e48f6
PW
1459* New commands
1460
1461set exec-file-mismatch -- Set exec-file-mismatch handling (ask|warn|off).
1462show exec-file-mismatch -- Show exec-file-mismatch handling (ask|warn|off).
98c59b52
PA
1463 Set or show the option 'exec-file-mismatch'. When GDB attaches to a
1464 running process, this new option indicates whether to detect
1465 a mismatch between the current executable file loaded by GDB and the
1466 executable file used to start the process. If 'ask', the default,
1467 display a warning and ask the user whether to load the process
1468 executable file; if 'warn', just display a warning; if 'off', don't
1469 attempt to detect a mismatch.
e47e48f6 1470
ee325b61
TT
1471tui new-layout NAME WINDOW WEIGHT [WINDOW WEIGHT]...
1472 Define a new TUI layout, specifying its name and the windows that
1473 will be displayed.
1474
caa7fd04
AB
1475maintenance print xml-tdesc [FILE]
1476 Prints the current target description as an XML document. If the
1477 optional FILE is provided (which is an XML target description) then
1478 the target description is read from FILE into GDB, and then
1479 reprinted.
1480
b089853a
KB
1481maintenance print core-file-backed-mappings
1482 Prints file-backed mappings loaded from a core file's note section.
1483 Output is expected to be similar to that of "info proc mappings".
1484
a5c641b5
AB
1485set debug fortran-array-slicing on|off
1486show debug fortran-array-slicing
1487 Print debugging when taking slices of Fortran arrays.
1488
1489set fortran repack-array-slices on|off
1490show fortran repack-array-slices
1491 When taking slices from Fortran arrays and strings, if the slice is
1492 non-contiguous within the original value then, when this option is
1493 on, the new value will be repacked into a single contiguous value.
1494 When this option is off, then the value returned will consist of a
1495 descriptor that describes the slice within the memory of the
1496 original parent value.
1497
5b860c93
PW
1498* Changed commands
1499
1500alias [-a] [--] ALIAS = COMMAND [DEFAULT-ARGS...]
1501 The alias command can now specify default args for an alias.
1502 GDB automatically prepends the alias default args to the argument list
1503 provided explicitly by the user.
1504 For example, to have a backtrace with full details, you can define
1505 an alias 'bt_ALL' as
1506 'alias bt_ALL = backtrace -entry-values both -frame-arg all
1507 -past-main -past-entry -full'.
1508 Alias default arguments can also use a set of nested 'with' commands,
1509 e.g. 'alias pp10 = with print pretty -- with print elem 10 -- print'
1510 defines the alias pp10 that will pretty print a maximum of 10 elements
1511 of the given expression (if the expression is an array).
1512
bf84f706
MR
1513* New targets
1514
1515GNU/Linux/RISC-V (gdbserver) riscv*-*-linux*
39791af2 1516BPF bpf-unknown-none
3dab9e15 1517Z80 z80-unknown-*
bf84f706 1518
01b1af32
TT
1519* Python API
1520
1521 ** gdb.register_window_type can be used to implement new TUI windows
1522 in Python.
1523
1acda803
TT
1524 ** Dynamic types can now be queried. gdb.Type has a new attribute,
1525 "dynamic", and gdb.Type.sizeof can be None for a dynamic type. A
1526 field of a dynamic type may have None for its "bitpos" attribute
1527 as well.
1528
2b2fbab8
TT
1529 ** Commands written in Python can be in the "TUI" help class by
1530 registering with the new constant gdb.COMMAND_TUI.
1531
87dbc774
AB
1532 ** New method gdb.PendingFrame.architecture () to retrieve the
1533 architecture of the pending frame.
1534
0f767f94
AB
1535 ** New gdb.Architecture.registers method that returns a
1536 gdb.RegisterDescriptorIterator object, an iterator that returns
1537 gdb.RegisterDescriptor objects. The new RegisterDescriptor is a
1538 way to query the registers available for an architecture.
1539
64cb3757
AB
1540 ** New gdb.Architecture.register_groups method that returns a
1541 gdb.RegisterGroupIterator object, an iterator that returns
1542 gdb.RegisterGroup objects. The new RegisterGroup is a way to
1543 discover the available register groups.
1544
68cf161c
LC
1545* Guile API
1546
ae5369e7 1547 ** GDB can now be built with GNU Guile 3.0 and 2.2 in addition to 2.0.
68cf161c
LC
1548
1549 ** Procedures 'memory-port-read-buffer-size',
1550 'set-memory-port-read-buffer-size!', 'memory-port-write-buffer-size',
1551 and 'set-memory-port-write-buffer-size!' are deprecated. When
1552 using Guile 2.2 and later, users who need to control the size of
1553 a memory port's internal buffer can use the 'setvbuf' procedure.
1554
4decd62b 1555*** Changes in GDB 9
9335e75a 1556
1a3da2cd
AB
1557* 'thread-exited' event is now available in the annotations interface.
1558
7734102d
EZ
1559* New built-in convenience variables $_gdb_major and $_gdb_minor
1560 provide the GDB version. They are handy for conditionally using
1561 features available only in or since specific GDB versions, in
1562 scripts that should work error-free with many different versions,
1563 such as in system-wide init files.
1564
aed61d02
PW
1565* New built-in convenience functions $_gdb_setting, $_gdb_setting_str,
1566 $_gdb_maint_setting and $_gdb_maint_setting_str provide access to values
1567 of the GDB settings and the GDB maintenance settings. They are handy
1568 for changing the logic of user defined commands depending on the
1569 current GDB settings.
1570
81a24d04
JB
1571* GDB now supports Thread Local Storage (TLS) variables on several
1572 FreeBSD architectures (amd64, i386, powerpc, riscv). Other
1573 architectures require kernel changes. TLS is not yet supported for
1574 amd64 and i386 process core dumps.
1575
3d31bc39
AH
1576* Support for Pointer Authentication (PAC) on AArch64 Linux. Return
1577 addresses that required unmasking are shown in the backtrace with the
1578 postfix [PAC].
d851aa71 1579
eb41253a 1580* Two new convenience functions $_cimag and $_creal that extract the
8bdc1658
AB
1581 imaginary and real parts respectively from complex numbers.
1582
52ce35e2
TT
1583* New built-in convenience variables $_shell_exitcode and $_shell_exitsignal
1584 provide the exitcode or exit status of the shell commands launched by
1585 GDB commands such as "shell", "pipe" and "make".
1586
bf498525
PW
1587* The command define-prefix can now define user defined prefix commands.
1588 User defined commands can now be defined using these user defined prefix
1589 commands.
1590
1591* Command names can now use the . character.
1592
e3ec872f
YS
1593* The RX port now supports XML target descriptions.
1594
4993045d
PW
1595* GDB now shows the Ada task names at more places, e.g. in task switching
1596 messages.
1597
6a062a93
CB
1598* GDB can now be compiled with Python 3 on Windows.
1599
37f6a7f4
TT
1600* New convenience variable $_ada_exception holds the address of the
1601 Ada exception being thrown. This is set by Ada-related catchpoints.
1602
179aed7f
AB
1603* GDB can now place breakpoints on nested functions and subroutines in
1604 Fortran code. The '::' operator can be used between parent and
1605 child scopes when placing breakpoints, for example:
1606
1607 (gdb) break outer_function::inner_function
1608
1609 The 'outer_function::' prefix is only needed if 'inner_function' is
1610 not visible in the current scope.
1611
ed2a2229
CB
1612* In addition to the system-wide gdbinit file, if configured with
1613 --with-system-gdbinit-dir, GDB will now also load files in that directory
1614 as system gdbinit files, unless the -nx or -n flag is provided. Files
1615 with extensions .gdb, .py and .scm are supported as long as GDB was
1616 compiled with support for that language.
1617
e49b22ff
CB
1618* GDB now supports multithreaded symbol loading for higher performance.
1619 This feature is still in testing, so it is disabled by default. You
1620 can turn it on using 'maint set worker-threads unlimited'.
1621
52093e1b
MB
1622* Python API
1623
1624 ** The gdb.Value type has a new method 'format_string' which returns a
1625 string representing the value. The formatting is controlled by the
1626 optional keyword arguments: 'raw', 'pretty_arrays', 'pretty_structs',
1627 'array_indexes', 'symbols', 'unions', 'deref_refs', 'actual_objects',
1628 'static_members', 'max_elements', 'repeat_threshold', and 'format'.
1629
e1f2e1a2
CB
1630 ** gdb.Type has a new property 'objfile' which returns the objfile the
1631 type was defined in.
1632
bc4268a5
PW
1633 ** The frame information printed by the python frame filtering code
1634 is now consistent with what the 'backtrace' command prints when
1635 there are no filters, or when the 'backtrace' '-no-filters' option
1636 is given.
1637
2906593f
CB
1638 ** The new function gdb.lookup_static_symbol can be used to look up
1639 symbols with static linkage.
1640
086baaf1
AB
1641 ** The new function gdb.lookup_static_symbols can be used to look up
1642 all static symbols with static linkage.
1643
c620ed88
CB
1644 ** gdb.Objfile has new methods 'lookup_global_symbol' and
1645 'lookup_static_symbol' to lookup a symbol from this objfile only.
1646
0b27c27d
CB
1647 ** gdb.Block now supports the dictionary syntax for accessing symbols in
1648 this block (e.g. block['local_variable']).
1649
136afab8
PW
1650* New commands
1651
e2c52041
PW
1652| [COMMAND] | SHELL_COMMAND
1653| -d DELIM COMMAND DELIM SHELL_COMMAND
1654pipe [COMMAND] | SHELL_COMMAND
1655pipe -d DELIM COMMAND DELIM SHELL_COMMAND
1656 Executes COMMAND and sends its output to SHELL_COMMAND.
1657 With no COMMAND, repeat the last executed command
1658 and send its output to SHELL_COMMAND.
1659
bf498525
PW
1660define-prefix COMMAND
1661 Define or mark a command as a user-defined prefix command.
1662
fdbc9870
PA
1663with SETTING [VALUE] [-- COMMAND]
1664w SETTING [VALUE] [-- COMMAND]
1665 Temporarily set SETTING, run COMMAND, and restore SETTING.
1666 Usage: with SETTING -- COMMAND
1667 With no COMMAND, repeats the last executed command.
1668 SETTING is any GDB setting you can change with the "set"
1669 subcommands. For example, 'with language c -- print someobj'
1670 temporarily switches to the C language in order to print someobj.
1671 Settings can be combined: 'w lang c -- w print elements unlimited --
1672 usercmd' switches to the C language and runs usercmd with no limit
1673 of array elements to print.
1674
1675maint with SETTING [VALUE] [-- COMMAND]
1676 Like "with", but works with "maintenance set" settings.
1677
136afab8
PW
1678set may-call-functions [on|off]
1679show may-call-functions
1680 This controls whether GDB will attempt to call functions in
1681 the program, such as with expressions in the print command. It
1682 defaults to on. Calling functions in the program being debugged
1683 can have undesired side effects. It is now possible to forbid
1684 such function calls. If function calls are forbidden, GDB will throw
1685 an error when a command (such as print expression) calls a function
1686 in the program.
1687
000439d5
TT
1688set print finish [on|off]
1689show print finish
1690 This controls whether the `finish' command will display the value
1691 that is returned by the current function. When `off', the value is
1692 still entered into the value history, but it is not printed. The
1693 default is `on'.
1694
1bd0c6e4
AB
1695set print max-depth
1696show print max-depth
1697 Allows deeply nested structures to be simplified when printing by
1698 replacing deeply nested parts (beyond the max-depth) with ellipses.
1699 The default max-depth is 20, but this can be set to unlimited to get
1700 the old behavior back.
1701
d8edc8b7
PW
1702set print raw-values [on|off]
1703show print raw-values
1704 By default, GDB applies the enabled pretty printers when printing a
1705 value. This allows to ignore the enabled pretty printers for a series
1706 of commands. The default is 'off'.
1707
b7060614
AH
1708set logging debugredirect [on|off]
1709 By default, GDB debug output will go to both the terminal and the logfile.
1710 Set if you want debug output to go only to the log file.
1711
e664d728
PW
1712set style title foreground COLOR
1713set style title background COLOR
1714set style title intensity VALUE
1715 Control the styling of titles.
1716
1717set style highlight foreground COLOR
1718set style highlight background COLOR
1719set style highlight intensity VALUE
1720 Control the styling of highlightings.
1721
22138db6
TT
1722maint set worker-threads
1723maint show worker-threads
1724 Control the number of worker threads that can be used by GDB. The
e49b22ff 1725 default is 0. "unlimited" lets GDB choose a number that is
22138db6
TT
1726 reasonable. Currently worker threads are only used when demangling
1727 the names of linker symbols.
1728
a2a7af0c
TT
1729set style tui-border foreground COLOR
1730set style tui-border background COLOR
1731 Control the styling of TUI borders.
1732
1733set style tui-active-border foreground COLOR
1734set style tui-active-border background COLOR
1735 Control the styling of the active TUI border.
1736
c6ac8931
PA
1737maint set test-settings KIND
1738maint show test-settings KIND
dca0f6c0
PA
1739 A set of commands used by the testsuite for exercising the settings
1740 infrastructure.
1741
45e42163
TT
1742maint set tui-resize-message [on|off]
1743maint show tui-resize-message
1744 Control whether GDB prints a message each time the terminal is
1745 resized when in TUI mode. This is primarily useful for testing the
1746 TUI.
1747
bc4268a5
PW
1748set print frame-info [short-location|location|location-and-address
1749 |source-and-location|source-line|auto]
1750show print frame-info
1751 This controls what frame information is printed by the commands printing
1752 a frame. This setting will e.g. influence the behaviour of 'backtrace',
1753 'frame', 'stepi'. The python frame filtering also respect this setting.
1754 The 'backtrace' '-frame-info' option can override this global setting.
1755
d1da6b01
TT
1756set tui compact-source
1757show tui compact-source
1758
1759 Enable the "compact" display mode for the TUI source window. The
1760 compact display uses only as much space as is needed for the line
1761 numbers in the current file, and only a single space to separate the
1762 line numbers from the source.
1763
59c35742
AB
1764info modules [-q] [REGEXP]
1765 Return a list of Fortran modules matching REGEXP, or all modules if
1766 no REGEXP is given.
1767
165f8965
AB
1768info module functions [-q] [-m MODULE_REGEXP] [-t TYPE_REGEXP] [REGEXP]
1769 Return a list of functions within all modules, grouped by module.
1770 The list of functions can be restricted with the optional regular
1771 expressions. MODULE_REGEXP matches against the module name,
1772 TYPE_REGEXP matches against the function type signature, and REGEXP
1773 matches against the function name.
1774
1775info module variables [-q] [-m MODULE_REGEXP] [-t TYPE_REGEXP] [REGEXP]
1776 Return a list of variables within all modules, grouped by module.
1777 The list of variables can be restricted with the optional regular
1778 expressions. MODULE_REGEXP matches against the module name,
1779 TYPE_REGEXP matches against the variable type, and REGEXP matches
1780 against the variable name.
1781
6cc8564b
LM
1782set debug remote-packet-max-chars
1783show debug remote-packet-max-chars
1784 Controls the number of characters to output in a remote packet when using
1785 "set debug remote".
1786 The default is 512 bytes.
1787
65c574f6
PA
1788info connections
1789 Lists the target connections currently in use.
1790
e664d728
PW
1791* Changed commands
1792
1793help
1794 The "help" command uses the title style to enhance the
1795 readibility of its output by styling the classes and
1796 command names.
1797
1798apropos [-v] REGEXP
1799 Similarly to "help", the "apropos" command also uses the
1800 title style for the command names. "apropos" accepts now
1801 a flag "-v" (verbose) to show the full documentation
1802 of matching commands and to use the highlight style to mark
1803 the documentation parts matching REGEXP.
1804
1f6f6e21
PW
1805printf
1806eval
1807 The GDB printf and eval commands can now print C-style and Ada-style
1808 string convenience variables without calling functions in the program.
1809 This allows to do formatted printing of strings without having
1810 a running inferior, or when debugging a core dump.
1811
ae60f04e
PW
1812info sources [-dirname | -basename] [--] [REGEXP]
1813 This command has now optional arguments to only print the files
1814 whose names match REGEXP. The arguments -dirname and -basename
1815 allow to restrict matching respectively to the dirname and basename
1816 parts of the files.
1817
e664d728
PW
1818show style
1819 The "show style" and its subcommands are now styling
1820 a style name in their output using its own style, to help
1821 the user visualize the different styles.
1822
bc4268a5
PW
1823set print frame-arguments
1824 The new value 'presence' indicates to only indicate the presence of
1825 arguments using ..., instead of printing argument names and values.
1826
2daf894e
PA
1827set print raw-frame-arguments
1828show print raw-frame-arguments
1829
1830 These commands replace the similarly-named "set/show print raw
1831 frame-arguments" commands (now with a dash instead of a space). The
1832 old commands are now deprecated and may be removed in a future
1833 release.
e664d728 1834
65c574f6
PA
1835add-inferior [-no-connection]
1836 The add-inferior command now supports a "-no-connection" flag that
1837 makes the new inferior start with no target connection associated.
1838 By default, the new inferior inherits the target connection of the
1839 current inferior. See also "info connections".
1840
1841info inferior
1842 This command's output now includes a new "Connection" column
1843 indicating which target connection an inferior is bound to. See
1844 "info connections" above.
1845
3345721a
PA
1846maint test-options require-delimiter
1847maint test-options unknown-is-error
1848maint test-options unknown-is-operand
1849maint show test-options-completion-result
1850 Commands used by the testsuite to validate the command options
1851 framework.
1852
78e8cb91
TT
1853focus, winheight, +, -, >, <
1854 These commands are now case-sensitive.
1855
3345721a
PA
1856* New command options, command completion
1857
1858 GDB now has a standard infrastructure to support dash-style command
1859 options ('-OPT'). One benefit is that commands that use it can
1860 easily support completion of command line arguments. Try "CMD
1861 -[TAB]" or "help CMD" to find options supported by a command. Over
1862 time, we intend to migrate most commands to this infrastructure. A
1863 number of commands got support for new command options in this
1864 release:
1865
1866 ** The "print" and "compile print" commands now support a number of
1867 options that allow overriding relevant global print settings as
1868 set by "set print" subcommands:
1869
1870 -address [on|off]
1871 -array [on|off]
1872 -array-indexes [on|off]
1873 -elements NUMBER|unlimited
1874 -null-stop [on|off]
1875 -object [on|off]
1876 -pretty [on|off]
d8edc8b7 1877 -raw-values [on|off]
3345721a
PA
1878 -repeats NUMBER|unlimited
1879 -static-members [on|off]
1880 -symbol [on|off]
1881 -union [on|off]
1882 -vtbl [on|off]
1883
1884 Note that because the "print"/"compile print" commands accept
1885 arbitrary expressions which may look like options (including
1886 abbreviations), if you specify any command option, then you must
1887 use a double dash ("--") to mark the end of argument processing.
1888
1889 ** The "backtrace" command now supports a number of options that
1890 allow overriding relevant global print settings as set by "set
1891 backtrace" and "set print" subcommands:
1892
1893 -entry-values no|only|preferred|if-needed|both|compact|default
1894 -frame-arguments all|scalars|none
1895 -raw-frame-arguments [on|off]
bc4268a5
PW
1896 -frame-info auto|source-line|location|source-and-location
1897 |location-and-address|short-location
3345721a
PA
1898 -past-main [on|off]
1899 -past-entry [on|off]
1900
1901 In addition, the full/no-filters/hide qualifiers are now also
1902 exposed as command options too:
1903
1904 -full
1905 -no-filters
1906 -hide
1907
1908 ** The "frame apply", "tfaas" and "faas" commands similarly now
1909 support the following options:
1910
1911 -past-main [on|off]
1912 -past-entry [on|off]
1913
ae60f04e
PW
1914 ** The new "info sources" options -dirname and -basename options
1915 are using the standard '-OPT' infrastructure.
1916
3345721a
PA
1917 All options above can also be abbreviated. The argument of boolean
1918 (on/off) options can be 0/1 too, and also the argument is assumed
1919 "on" if omitted. This allows writing compact command invocations,
1920 like for example:
1921
d8edc8b7 1922 (gdb) p -ra -p -o 0 -- *myptr
3345721a
PA
1923
1924 The above is equivalent to:
1925
d8edc8b7 1926 (gdb) print -raw-values -pretty -object off -- *myptr
3345721a 1927
a8eab7c6
AB
1928 ** The "info types" command now supports the '-q' flag to disable
1929 printing of some header information in a similar fashion to "info
1930 variables" and "info functions".
1931
4acfdd20
AB
1932 ** The "info variables", "info functions", and "whereis" commands
1933 now take a '-n' flag that excludes non-debug symbols (symbols
1934 from the symbol table, not from the debug info such as DWARF)
1935 from the results.
1936
3345721a
PA
1937* Completion improvements
1938
1939 ** GDB can now complete the options of the "thread apply all" and
1940 "taas" commands, and their "-ascending" option can now be
1941 abbreviated.
1942
60cfcb20
AB
1943 ** GDB can now complete the options of the "info threads", "info
1944 functions", "info variables", "info locals", and "info args"
1945 commands.
54d66006 1946
3345721a
PA
1947 ** GDB can now complete the options of the "compile file" and
1948 "compile code" commands. The "compile file" command now
1949 completes on filenames.
1950
1951 ** GDB can now complete the backtrace command's
1952 "full/no-filters/hide" qualifiers.
1953
1954* In settings, you can now abbreviate "unlimited".
1955
1956 E.g., "set print elements u" is now equivalent to "set print
1957 elements unlimited".
1958
26648588
JV
1959* New MI commands
1960
1961-complete
1962 This lists all the possible completions for the rest of the line, if it
1963 were to be given as a command itself. This is intended for use by MI
1964 frontends in cases when separate CLI and MI channels cannot be used.
1965
30056ea0
AB
1966-catch-throw, -catch-rethrow, and -catch-catch
1967 These can be used to catch C++ exceptions in a similar fashion to
1968 the CLI commands 'catch throw', 'catch rethrow', and 'catch catch'.
1969
7dc42066
AB
1970-symbol-info-functions, -symbol-info-types, and -symbol-info-variables
1971 These commands are the MI equivalent of the CLI commands 'info
1972 functions', 'info types', and 'info variables' respectively.
1973
db5960b4
AB
1974-symbol-info-modules, this is the MI equivalent of the CLI 'info
1975 modules' command.
1976
293b38d6
AB
1977-symbol-info-module-functions and -symbol-info-module-variables.
1978 These commands are the MI equivalent of the CLI commands 'info
1979 module functions' and 'info module variables'.
1980
aa7ca1bb
AH
1981* Other MI changes
1982
5a3a0d63
JB
1983 ** The default version of the MI interpreter is now 3 (-i=mi3).
1984
1985 ** The output of information about multi-location breakpoints (which is
1986 syntactically incorrect in MI 2) has changed in MI 3. This affects
1987 the following commands and events:
1988
1989 - -break-insert
1990 - -break-info
1991 - =breakpoint-created
1992 - =breakpoint-modified
1993
1994 The -fix-multi-location-breakpoint-output command can be used to enable
1995 this behavior with previous MI versions.
1996
aa7ca1bb
AH
1997 ** Backtraces and frames include a new optional field addr_flags which is
1998 given after the addr field. On AArch64 this contains PAC if the address
1999 has been masked in the frame. On all other targets the field is not
2000 present.
2001
b7060614
AH
2002* Testsuite
2003
2004 The testsuite now creates the files gdb.cmd (containing the arguments
2005 used to launch GDB) and gdb.in (containing all the commands sent to
2006 GDB) in the output directory for each test script. Multiple invocations
2007 are appended with .1, .2, .3 etc.
2008
c6bdbeb7
AH
2009* Building GDB and GDBserver now requires GNU make >= 3.82.
2010
2011 Using another implementation of the make program or an earlier version of
2012 GNU make to build GDB or GDBserver is not supported.
2013
86c6b807
TT
2014* Building GDB now requires GNU readline >= 7.0.
2015
2016 GDB now bundles GNU readline 8.0, but if you choose to use
2017 --with-system-readline, only readline >= 7.0 can be used.
2018
11061048
TT
2019* The TUI SingleKey keymap is now named "SingleKey". This can be used
2020 from .inputrc to bind keys in this keymap. This feature is only
2021 available when gdb is built against GNU readline 8.0 or later.
2022
abf516c6
UW
2023* Removed targets and native configurations
2024
2025 GDB no longer supports debugging the Cell Broadband Engine. This includes
2026 both debugging standalone Cell/B.E. SPU applications and integrated debugging
2027 of Cell/B.E. applications that use both the PPU and SPU architectures.
2028
ddd44b70
DD
2029* New Simulators
2030
2031TI PRU pru-*-elf
2032
dae8b3eb
RO
2033* Removed targets and native configurations
2034
2035Solaris 10 i?86-*-solaris2.10, x86_64-*-solaris2.10,
2036 sparc*-*-solaris2.10
2037
9335e75a 2038*** Changes in GDB 8.3
4e5b2f89 2039
8d619c01
EBM
2040* GDB and GDBserver now support access to additional registers on
2041 PowerPC GNU/Linux targets: PPR, DSCR, TAR, EBB/PMU registers, and
2042 HTM registers.
2043
078a0207
KS
2044* GDB now has experimental support for the compilation and injection of
2045 C++ source code into the inferior. This beta release does not include
2046 support for several language features, such as templates, constructors,
2047 and operators.
2048
2049 This feature requires GCC 7.1 or higher built with libcp1.so
2050 (the C++ plug-in).
2051
c7ab0aef
SDJ
2052* GDB and GDBserver now support IPv6 connections. IPv6 addresses
2053 can be passed using the '[ADDRESS]:PORT' notation, or the regular
2054 'ADDRESS:PORT' method.
2055
7d11235d
SM
2056* DWARF index cache: GDB can now automatically save indices of DWARF
2057 symbols on disk to speed up further loading of the same binaries.
2058
e8bf1ce4
JB
2059* Ada task switching is now supported on aarch64-elf targets when
2060 debugging a program using the Ravenscar Profile. For more information,
2061 see the "Tasking Support when using the Ravenscar Profile" section
2062 in the GDB user manual.
2063
b0f492b9
GB
2064* GDB in batch mode now exits with status 1 if the last command to be
2065 executed failed.
2066
b5ffee31
AB
2067* The RISC-V target now supports target descriptions.
2068
e9076973
JB
2069* System call catchpoints now support system call aliases on FreeBSD.
2070 When the ABI of a system call changes in FreeBSD, this is
2071 implemented by leaving a compatibility system call using the old ABI
2072 at the existing number and allocating a new system call number for
2073 the new ABI. For example, FreeBSD 12 altered the layout of 'struct
2074 kevent' used by the 'kevent' system call. As a result, FreeBSD 12
2075 kernels ship with both 'kevent' and 'freebsd11_kevent' system calls.
2076 The 'freebsd11_kevent' system call is assigned an alias of 'kevent'
2077 so that a system call catchpoint for the 'kevent' system call will
2078 catch invocations of both the 'kevent' and 'freebsd11_kevent'
2079 binaries. This ensures that 'kevent' system calls are caught for
2080 binaries using either the old or new ABIs.
2081
140a4bc0
TT
2082* Terminal styling is now available for the CLI and the TUI. GNU
2083 Source Highlight can additionally be used to provide styling of
2084 source code snippets. See the "set style" commands, below, for more
2085 information.
2086
041be526
SM
2087* Removed support for old demangling styles arm, edg, gnu, hp and
2088 lucid.
2089
a14c4daa
PW
2090* New commands
2091
078a0207
KS
2092set debug compile-cplus-types
2093show debug compile-cplus-types
2094 Control the display of debug output about type conversion in the
82f06518 2095 C++ compile feature. Commands have no effect while compiling
078a0207
KS
2096 for other languages.
2097
3e68067f
SM
2098set debug skip
2099show debug skip
2100 Control whether debug output about files/functions skipping is
2101 displayed.
2102
a14c4daa
PW
2103frame apply [all | COUNT | -COUNT | level LEVEL...] [FLAG]... COMMAND
2104 Apply a command to some frames.
2105 FLAG arguments allow to control what output to produce and how to handle
2106 errors raised when applying COMMAND to a frame.
2107
2108taas COMMAND
2109 Apply a command to all threads (ignoring errors and empty output).
2110 Shortcut for 'thread apply all -s COMMAND'.
2111
2112faas COMMAND
2113 Apply a command to all frames (ignoring errors and empty output).
2114 Shortcut for 'frame apply all -s COMMAND'.
2115
2116tfaas COMMAND
2117 Apply a command to all frames of all threads (ignoring errors and empty
2118 output).
2119 Shortcut for 'thread apply all -s frame apply all -s COMMAND'.
2120
3c3bb058
AB
2121maint set dwarf unwinders (on|off)
2122maint show dwarf unwinders
2123 Control whether DWARF unwinders can be used.
2124
8b113111
JB
2125info proc files
2126 Display a list of open files for a process.
2127
a14c4daa
PW
2128* Changed commands
2129
669e09f6
PW
2130Changes to the "frame", "select-frame", and "info frame" CLI commands.
2131 These commands all now take a frame specification which
2132 is either a frame level, or one of the keywords 'level', 'address',
2133 'function', or 'view' followed by a parameter. Selecting a frame by
2134 address, or viewing a frame outside the current backtrace now
2135 requires the use of a keyword. Selecting a frame by level is
2136 unchanged. The MI comment "-stack-select-frame" is unchanged.
2137
c1168a2f
JD
2138target remote FILENAME
2139target extended-remote FILENAME
2140 If FILENAME is a Unix domain socket, GDB will attempt to connect
2141 to this socket instead of opening FILENAME as a character device.
2142
e0a7911f
PW
2143info args [-q] [-t TYPEREGEXP] [NAMEREGEXP]
2144info functions [-q] [-t TYPEREGEXP] [NAMEREGEXP]
2145info locals [-q] [-t TYPEREGEXP] [NAMEREGEXP]
2146info variables [-q] [-t TYPEREGEXP] [NAMEREGEXP]
2147 These commands can now print only the searched entities
2148 matching the provided regexp(s), giving a condition
2149 on the entity names or entity types. The flag -q disables
2150 printing headers or informations messages.
2151
604c4ca9
PW
2152info functions
2153info types
2154info variables
2155rbreak
2156 These commands now determine the syntax for the shown entities
2157 according to the language chosen by `set language'. In particular,
2158 `set language auto' means to automatically choose the language of
2159 the shown entities.
2160
a14c4daa
PW
2161thread apply [all | COUNT | -COUNT] [FLAG]... COMMAND
2162 The 'thread apply' command accepts new FLAG arguments.
2163 FLAG arguments allow to control what output to produce and how to handle
2164 errors raised when applying COMMAND to a thread.
2165
7806cea7
TT
2166set tui tab-width NCHARS
2167show tui tab-width NCHARS
2168 "set tui tab-width" replaces the "tabset" command, which has been deprecated.
2169
140a4bc0
TT
2170set style enabled [on|off]
2171show style enabled
2172 Enable or disable terminal styling. Styling is enabled by default
7557a514 2173 on most hosts, but disabled by default when in batch mode.
140a4bc0 2174
d085f989
TT
2175set style sources [on|off]
2176show style sources
2177 Enable or disable source code styling. Source code styling is
2178 enabled by default, but only takes effect if styling in general is
2179 enabled, and if GDB was linked with GNU Source Highlight.
2180
140a4bc0
TT
2181set style filename foreground COLOR
2182set style filename background COLOR
2183set style filename intensity VALUE
2184 Control the styling of file names.
2185
2186set style function foreground COLOR
2187set style function background COLOR
2188set style function intensity VALUE
2189 Control the styling of function names.
2190
2191set style variable foreground COLOR
2192set style variable background COLOR
2193set style variable intensity VALUE
2194 Control the styling of variable names.
2195
2196set style address foreground COLOR
2197set style address background COLOR
2198set style address intensity VALUE
2199 Control the styling of addresses.
2200
26fb3983
JV
2201* MI changes
2202
2203 ** The '-data-disassemble' MI command now accepts an '-a' option to
2204 disassemble the whole function surrounding the given program
2205 counter value or function name. Support for this feature can be
2206 verified by using the "-list-features" command, which should
2207 contain "data-disassemble-a-option".
2208
6d52907e
JV
2209 ** Command responses and notifications that include a frame now include
2210 the frame's architecture in a new "arch" attribute.
2211
52a187f8
JW
2212* New native configurations
2213
2214GNU/Linux/RISC-V riscv*-*-linux*
74792ff7 2215FreeBSD/riscv riscv*-*-freebsd*
52a187f8
JW
2216
2217* New targets
2218
2219GNU/Linux/RISC-V riscv*-*-linux*
416a69af
HAQ
2220CSKY ELF csky*-*-elf
2221CSKY GNU/LINUX csky*-*-linux
ed65e20b 2222FreeBSD/riscv riscv*-*-freebsd*
197df35e
JB
2223NXP S12Z s12z-*-elf
2224GNU/Linux/OpenRISC or1k*-*-linux*
52a187f8 2225
742a7df5
EZ
2226* Removed targets
2227
2228GDB no longer supports native debugging on versions of MS-Windows
2229before Windows XP.
2230
a40bf0c2
SM
2231* Python API
2232
2c3fc25d
KB
2233 ** GDB no longer supports Python versions less than 2.6.
2234
a40bf0c2
SM
2235 ** The gdb.Inferior type has a new 'progspace' property, which is the program
2236 space associated to that inferior.
2237
0ae1a321
SM
2238 ** The gdb.Progspace type has a new 'objfiles' method, which returns the list
2239 of objfiles associated to that program space.
2240
51e78fc5
TT
2241 ** gdb.SYMBOL_LOC_COMMON_BLOCK, gdb.SYMBOL_MODULE_DOMAIN, and
2242 gdb.SYMBOL_COMMON_BLOCK_DOMAIN were added to reflect changes to
2243 the gdb core.
2244
2245 ** gdb.SYMBOL_VARIABLES_DOMAIN, gdb.SYMBOL_FUNCTIONS_DOMAIN, and
2246 gdb.SYMBOL_TYPES_DOMAIN are now deprecated. These were never
2247 correct and did not work properly.
2248
af54ade9
KB
2249 ** The gdb.Value type has a new constructor, which is used to construct a
2250 gdb.Value from a Python buffer object and a gdb.Type.
2251
f35d5ade
TT
2252* Configure changes
2253
2254--enable-ubsan
2255
eff98030
TT
2256 Enable or disable the undefined behavior sanitizer. This is
2257 disabled by default, but passing --enable-ubsan=yes or
2258 --enable-ubsan=auto to configure will enable it. Enabling this can
2259 cause a performance penalty. The undefined behavior sanitizer was
2260 first introduced in GCC 4.9.
f35d5ade 2261
4e5b2f89 2262*** Changes in GDB 8.2
cd385f94 2263
471b9d15
MR
2264* The 'set disassembler-options' command now supports specifying options
2265 for the MIPS target.
2266
d4d429d5
PT
2267* The 'symbol-file' command now accepts an '-o' option to add a relative
2268 offset to all sections.
2269
291f9a96
PT
2270* Similarly, the 'add-symbol-file' command also accepts an '-o' option to add
2271 a relative offset to all sections, but it allows to override the load
2272 address of individual sections using '-s'.
2273
ed6dfe51
PT
2274* The 'add-symbol-file' command no longer requires the second argument
2275 (address of the text section).
2276
4b2dfa9d
MR
2277* The endianness used with the 'set endian auto' mode in the absence of
2278 an executable selected for debugging is now the last endianness chosen
2279 either by one of the 'set endian big' and 'set endian little' commands
2280 or by inferring from the last executable used, rather than the startup
2281 default.
2282
eb6af809
TT
2283* The pager now allows a "c" response, meaning to disable the pager
2284 for the rest of the current command.
2285
b744723f
AA
2286* The commands 'info variables/functions/types' now show the source line
2287 numbers of symbol definitions when available.
2288
2d97a5d9
JB
2289* 'info proc' now works on running processes on FreeBSD systems and core
2290 files created on FreeBSD systems.
2291
007e1530
TT
2292* C expressions can now use _Alignof, and C++ expressions can now use
2293 alignof.
2294
1461bdac
AH
2295* Support for SVE on AArch64 Linux. Note that GDB does not detect changes to
2296 the vector length while the process is running.
2297
386a8676
JB
2298* New commands
2299
2300set debug fbsd-nat
2301show debug fbsd-nat
2302 Control display of debugging info regarding the FreeBSD native target.
2303
3fcded8f
JB
2304set|show varsize-limit
2305 This new setting allows the user to control the maximum size of Ada
2306 objects being printed when those objects have a variable type,
2307 instead of that maximum size being hardcoded to 65536 bytes.
2308
4a4495d6
MM
2309set|show record btrace cpu
2310 Controls the processor to be used for enabling errata workarounds for
2311 branch trace decode.
2312
5045b3d7
GB
2313maint check libthread-db
2314 Run integrity checks on the current inferior's thread debugging
2315 library
2316
2317maint set check-libthread-db (on|off)
2318maint show check-libthread-db
2319 Control whether to run integrity checks on inferior specific thread
2320 debugging libraries as they are loaded. The default is not to
2321 perform such checks.
2322
6d7bb824
TT
2323* Python API
2324
2325 ** Type alignment is now exposed via the "align" attribute of a gdb.Type.
2326
a913fffb
TT
2327 ** The commands attached to a breakpoint can be set by assigning to
2328 the breakpoint's "commands" field.
2329
56bcdbea
TT
2330 ** gdb.execute can now execute multi-line gdb commands.
2331
7729052b
TT
2332 ** The new functions gdb.convenience_variable and
2333 gdb.set_convenience_variable can be used to get and set the value
2334 of convenience variables.
2335
984ee559
TT
2336 ** A gdb.Parameter will no longer print the "set" help text on an
2337 ordinary "set"; instead by default a "set" will be silent unless
2338 the get_set_string method returns a non-empty string.
2339
dbbb1059
AB
2340* New targets
2341
2342RiscV ELF riscv*-*-elf
2343
a2a79012
PA
2344* Removed targets and native configurations
2345
2346m88k running OpenBSD m88*-*-openbsd*
8a3de5e1
PA
2347SH-5/SH64 ELF sh64-*-elf*, SH-5/SH64 support in sh*
2348SH-5/SH64 running GNU/Linux SH-5/SH64 support in sh*-*-linux*
2349SH-5/SH64 running OpenBSD SH-5/SH64 support in sh*-*-openbsd*
a2a79012 2350
a3b60e45
JK
2351* Aarch64/Linux hardware watchpoints improvements
2352
2353 Hardware watchpoints on unaligned addresses are now properly
2354 supported when running Linux kernel 4.10 or higher: read and access
2355 watchpoints are no longer spuriously missed, and all watchpoints
2356 lengths between 1 and 8 bytes are supported. On older kernels,
2357 watchpoints set on unaligned addresses are no longer missed, with
2358 the tradeoff that there is a possibility of false hits being
2359 reported.
2360
056dec39 2361* Configure changes
44cee4fd
TT
2362
2363--enable-codesign=CERT
2364 This can be used to invoke "codesign -s CERT" after building gdb.
2365 This option is useful on macOS, where code signing is required for
2366 gdb to work properly.
2367
056dec39
TT
2368--disable-gdbcli has been removed
2369 This is now silently accepted, but does nothing.
2370
cd385f94 2371*** Changes in GDB 8.1
305d16a9 2372
cef0f868
SH
2373* GDB now supports dynamically creating arbitrary register groups specified
2374 in XML target descriptions. This allows for finer grain grouping of
2375 registers on systems with a large amount of registers.
2376
7c161838
SDJ
2377* The 'ptype' command now accepts a '/o' flag, which prints the
2378 offsets and sizes of fields in a struct, like the pahole(1) tool.
2379
97cbe998
SDJ
2380* New "--readnever" command line option instructs GDB to not read each
2381 symbol file's symbolic debug information. This makes startup faster
2382 but at the expense of not being able to perform symbolic debugging.
2383 This option is intended for use cases where symbolic debugging will
2384 not be used, e.g., when you only need to dump the debuggee's core.
2385
2400729e
UW
2386* GDB now uses the GNU MPFR library, if available, to emulate target
2387 floating-point arithmetic during expression evaluation when the target
2388 uses different floating-point formats than the host. At least version
2389 3.1 of GNU MPFR is required.
2390
289e23aa
AA
2391* GDB now supports access to the guarded-storage-control registers and the
2392 software-based guarded-storage broadcast control registers on IBM z14.
2393
0a2dde4a
SDJ
2394* On Unix systems, GDB now supports transmitting environment variables
2395 that are to be set or unset to GDBserver. These variables will
2396 affect the environment to be passed to the remote inferior.
2397
2398 To inform GDB of environment variables that are to be transmitted to
2399 GDBserver, use the "set environment" command. Only user set
2400 environment variables are sent to GDBserver.
2401
2402 To inform GDB of environment variables that are to be unset before
2403 the remote inferior is started by the GDBserver, use the "unset
2404 environment" command.
2405
d044bac8
PA
2406* Completion improvements
2407
2408 ** GDB can now complete function parameters in linespecs and
2409 explicit locations without quoting. When setting breakpoints,
2410 quoting around functions names to help with TAB-completion is
2411 generally no longer necessary. For example, this now completes
2412 correctly:
2413
2414 (gdb) b function(in[TAB]
2415 (gdb) b function(int)
2416
2417 Related, GDB is no longer confused with completing functions in
2418 C++ anonymous namespaces:
2419
2420 (gdb) b (anon[TAB]
2421 (gdb) b (anonymous namespace)::[TAB][TAB]
2422 (anonymous namespace)::a_function()
2423 (anonymous namespace)::b_function()
2424
2425 ** GDB now has much improved linespec and explicit locations TAB
2426 completion support, that better understands what you're
2427 completing and offers better suggestions. For example, GDB no
2428 longer offers data symbols as possible completions when you're
2429 setting a breakpoint.
2430
2431 ** GDB now TAB-completes label symbol names.
2432
2433 ** The "complete" command now mimics TAB completion accurately.
2434
c179febe
SL
2435* New command line options (gcore)
2436
2437-a
2438 Dump all memory mappings.
2439
a20714ff
PA
2440* Breakpoints on C++ functions are now set on all scopes by default
2441
2442 By default, breakpoints on functions/methods are now interpreted as
2443 specifying all functions with the given name ignoring missing
2444 leading scopes (namespaces and classes).
2445
2446 For example, assuming a C++ program with symbols named:
2447
2448 A::B::func()
2449 B::func()
2450
2451 both commands "break func()" and "break B::func()" set a breakpoint
2452 on both symbols.
2453
2454 You can use the new flag "-qualified" to override this. This makes
2455 GDB interpret the specified function name as a complete
2456 fully-qualified name instead. For example, using the same C++
2457 program, the "break -q B::func" command sets a breakpoint on
b89641ba
SM
2458 "B::func", only. A parameter has been added to the Python
2459 gdb.Breakpoint constructor to achieve the same result when creating
2460 a breakpoint from Python.
a20714ff 2461
bd69330d
PA
2462* Breakpoints on functions marked with C++ ABI tags
2463
2464 GDB can now set breakpoints on functions marked with C++ ABI tags
2465 (e.g., [abi:cxx11]). See here for a description of ABI tags:
2466 https://developers.redhat.com/blog/2015/02/05/gcc5-and-the-c11-abi/
2467
2468 Functions with a C++11 abi tag are demangled/displayed like this:
2469
2470 function[abi:cxx11](int)
2471 ^^^^^^^^^^^
2472
2473 You can now set a breakpoint on such functions simply as if they had
2474 no tag, like:
2475
2476 (gdb) b function(int)
2477
2478 Or if you need to disambiguate between tags, like:
2479
2480 (gdb) b function[abi:other_tag](int)
2481
2482 Tab completion was adjusted accordingly as well.
2483
7c96f8c1
TT
2484* Python Scripting
2485
2486 ** New events gdb.new_inferior, gdb.inferior_deleted, and
2487 gdb.new_thread are emitted. See the manual for further
2488 description of these.
2489
4e725347
JB
2490 ** A new function, "gdb.rbreak" has been added to the Python API.
2491 This function allows the setting of a large number of breakpoints
2492 via a regex pattern in Python. See the manual for further details.
d8ae99a7 2493
824cc835
PM
2494 ** Python breakpoints can now accept explicit locations. See the
2495 manual for a further description of this feature.
2496
2497
6d580b63
YQ
2498* New features in the GDB remote stub, GDBserver
2499
bc3b087d
SDJ
2500 ** GDBserver is now able to start inferior processes with a
2501 specified initial working directory.
2502
2503 The user can set the desired working directory to be used from
2504 GDB using the new "set cwd" command.
2505
6d580b63
YQ
2506 ** New "--selftest" command line option runs some GDBserver self
2507 tests. These self tests are disabled in releases.
2508
2509 ** On Unix systems, GDBserver now does globbing expansion and variable
2510 substitution in inferior command line arguments.
2511
2512 This is done by starting inferiors using a shell, like GDB does.
2513 See "set startup-with-shell" in the user manual for how to disable
2514 this from GDB when using "target extended-remote". When using
2515 "target remote", you can disable the startup with shell by using the
2516 new "--no-startup-with-shell" GDBserver command line option.
aefd8b33 2517
0a2dde4a
SDJ
2518 ** On Unix systems, GDBserver now supports receiving environment
2519 variables that are to be set or unset from GDB. These variables
2520 will affect the environment to be passed to the inferior.
2521
e547c119
JB
2522* When catching an Ada exception raised with a message, GDB now prints
2523 the message in the catchpoint hit notification. In GDB/MI mode, that
2524 information is provided as an extra field named "exception-message"
2525 in the *stopped notification.
2526
7403715e
TT
2527* Trait objects can now be inspected When debugging Rust code. This
2528 requires compiler support which will appear in Rust 1.24.
2529
aefd8b33
SDJ
2530* New remote packets
2531
0a2dde4a
SDJ
2532QEnvironmentHexEncoded
2533 Inform GDBserver of an environment variable that is to be passed to
2534 the inferior when starting it.
2535
2536QEnvironmentUnset
2537 Inform GDBserver of an environment variable that is to be unset
2538 before starting the remote inferior.
2539
2540QEnvironmentReset
2541 Inform GDBserver that the environment should be reset (i.e.,
2542 user-set environment variables should be unset).
2543
aefd8b33
SDJ
2544QStartupWithShell
2545 Indicates whether the inferior must be started with a shell or not.
2546
bc3b087d
SDJ
2547QSetWorkingDir
2548 Tell GDBserver that the inferior to be started should use a specific
2549 working directory.
2550
8e2141c6
YQ
2551* The "maintenance print c-tdesc" command now takes an optional
2552 argument which is the file name of XML target description.
2553
1526853e
SM
2554* The "maintenance selftest" command now takes an optional argument to
2555 filter the tests to be run.
2556
d0fe4701
XR
2557* The "enable", and "disable" commands now accept a range of
2558 breakpoint locations, e.g. "enable 1.3-5".
2559
c4dcb155
SM
2560* New commands
2561
d092c5a2
SDJ
2562set|show cwd
2563 Set and show the current working directory for the inferior.
2564
6e41ddec
JK
2565set|show compile-gcc
2566 Set and show compilation command used for compiling and injecting code
2567 with the 'compile' commands.
2568
c4dcb155
SM
2569set debug separate-debug-file
2570show debug separate-debug-file
2571 Control the display of debug output about separate debug file search.
2572
1e52e849
SL
2573set dump-excluded-mappings
2574show dump-excluded-mappings
2575 Control whether mappings marked with the VM_DONTDUMP flag should be
2576 dumped when generating a core file.
2577
1526853e
SM
2578maint info selftests
2579 List the registered selftests.
2580
4e5a4f58
JB
2581starti
2582 Start the debugged program stopping at the first instruction.
2583
b282f0f2
SH
2584set|show debug or1k
2585 Control display of debugging messages related to OpenRISC targets.
2586
883fd55a
KS
2587set|show print type nested-type-limit
2588 Set and show the limit of nesting level for nested types that the
2589 type printer will show.
2590
44d0fb3a
RK
2591* TUI Single-Key mode now supports two new shortcut keys: `i' for stepi and
2592 `o' for nexti.
2593
d69cf9b2
PA
2594* Safer/improved support for debugging with no debug info
2595
2596 GDB no longer assumes functions with no debug information return
2597 'int'.
2598
2599 This means that GDB now refuses to call such functions unless you
2600 tell it the function's type, by either casting the call to the
2601 declared return type, or by casting the function to a function
2602 pointer of the right type, and calling that:
2603
2604 (gdb) p getenv ("PATH")
2605 'getenv' has unknown return type; cast the call to its declared return type
2606 (gdb) p (char *) getenv ("PATH")
2607 $1 = 0x7fffffffe "/usr/local/bin:/"...
2608 (gdb) p ((char * (*) (const char *)) getenv) ("PATH")
2609 $2 = 0x7fffffffe "/usr/local/bin:/"...
2610
2611 Similarly, GDB no longer assumes that global variables with no debug
2612 info have type 'int', and refuses to print the variable's value
2613 unless you tell it the variable's type:
2614
2615 (gdb) p var
2616 'var' has unknown type; cast it to its declared type
2617 (gdb) p (float) var
2618 $3 = 3.14
2619
351787dd
JB
2620* New native configurations
2621
2622FreeBSD/aarch64 aarch64*-*-freebsd*
4f9d9906 2623FreeBSD/arm arm*-*-freebsd*
351787dd 2624
c0f84956
JB
2625* New targets
2626
2627FreeBSD/aarch64 aarch64*-*-freebsd*
7176dfd2 2628FreeBSD/arm arm*-*-freebsd*
b282f0f2 2629OpenRISC ELF or1k*-*-elf
c0f84956 2630
281c4447
RO
2631* Removed targets and native configurations
2632
2633Solaris 2.0-9 i?86-*-solaris2.[0-9], sparc*-*-solaris2.[0-9]
2634
305d16a9 2635*** Changes in GDB 8.0
51547df6
MS
2636
2637* GDB now supports access to the PKU register on GNU/Linux. The register is
2638 added by the Memory Protection Keys for Userspace feature which will be
2639 available in future Intel CPUs.
751b375e 2640
c0f55cc6
AV
2641* GDB now supports C++11 rvalue references.
2642
0a0faf9f
TW
2643* Python Scripting
2644
2645 ** New functions to start, stop and access a running btrace recording.
c0f55cc6 2646 ** Rvalue references are now supported in gdb.Type.
0a0faf9f 2647
20b477a7
LM
2648* GDB now supports recording and replaying rdrand and rdseed Intel 64
2649 instructions.
2650
e6485aaf 2651* Building GDB and GDBserver now requires a C++11 compiler.
d2946923
PA
2652
2653 For example, GCC 4.8 or later.
cf6de44d
PA
2654
2655 It is no longer possible to build GDB or GDBserver with a C
2656 compiler. The --disable-build-with-cxx configure option has been
2657 removed.
2658
f2ff9acd
SM
2659* Building GDB and GDBserver now requires GNU make >= 3.81.
2660
2661 It is no longer supported to build GDB or GDBserver with another
2662 implementation of the make program or an earlier version of GNU make.
2663
8ba42bc5
EZ
2664* Native debugging on MS-Windows supports command-line redirection
2665
2666 Command-line arguments used for starting programs on MS-Windows can
2667 now include redirection symbols supported by native Windows shells,
2668 such as '<', '>', '>>', '2>&1', etc. This affects GDB commands such
2669 as "run", "start", and "set args", as well as the corresponding MI
2670 features.
2671
24cdb46e
РИ
2672* Support for thread names on MS-Windows.
2673
2674 GDB now catches and handles the special exception that programs
2675 running on MS-Windows use to assign names to threads in the
2676 debugger.
2677
9c37b5ae
TT
2678* Support for Java programs compiled with gcj has been removed.
2679
df3ee9ca
PA
2680* User commands now accept an unlimited number of arguments.
2681 Previously, only up to 10 was accepted.
2682
01770bbd
PA
2683* The "eval" command now expands user-defined command arguments.
2684
2685 This makes it easier to process a variable number of arguments:
2686
2687 define mycommand
2688 set $i = 0
2689 while $i < $argc
2690 eval "print $arg%d", $i
2691 set $i = $i + 1
2692 end
2693 end
2694
3f7b46f2
IR
2695* Target descriptions can now describe registers for sparc32 and sparc64.
2696
0ae60b63
JK
2697* GDB now supports DWARF version 5 (debug information format).
2698 Its .debug_names index is not yet supported.
2699
b268007c
JB
2700* New native configurations
2701
2702FreeBSD/mips mips*-*-freebsd
2703
ad0a504f
AK
2704* New targets
2705
2706Synopsys ARC arc*-*-elf32
387360da 2707FreeBSD/mips mips*-*-freebsd
ad0a504f 2708
db6be0d5
SM
2709* Removed targets and native configurations
2710
2711Alpha running FreeBSD alpha*-*-freebsd*
2712Alpha running GNU/kFreeBSD alpha*-*-kfreebsd*-gnu
2713
78cbbba8
LM
2714* New commands
2715
2716flash-erase
2717 Erases all the flash memory regions reported by the target.
2718
db6be0d5
SM
2719maint print arc arc-instruction address
2720 Print internal disassembler information about instruction at a given address.
51457a05 2721
db6be0d5 2722* New options
65b48a81
PB
2723
2724set disassembler-options
2725show disassembler-options
2726 Controls the passing of target specific information to the disassembler.
2727 If it is necessary to specify more than one disassembler option then
2728 multiple options can be placed together into a comma separated list.
2729 The default value is the empty string. Currently, the only supported
2730 targets are ARM, PowerPC and S/390.
2731
db6be0d5 2732* New MI commands
eea78757 2733
db6be0d5
SM
2734-target-flash-erase
2735 Erases all the flash memory regions reported by the target. This is
2736 equivalent to the CLI command flash-erase.
1e1a8bef 2737
db6be0d5
SM
2738-file-list-shared-libraries
2739 List the shared libraries in the program. This is
2740 equivalent to the CLI command "info shared".
1e1a8bef 2741
bea298f9
XR
2742-catch-handlers
2743 Catchpoints stopping the program when Ada exceptions are
2744 handled. This is equivalent to the CLI command "catch handlers".
2745
751b375e 2746*** Changes in GDB 7.12
1233c0ba 2747
69ffd7f2
PA
2748* GDB and GDBserver now build with a C++ compiler by default.
2749
2750 The --enable-build-with-cxx configure option is now enabled by
2751 default. One must now explicitly configure with
2752 --disable-build-with-cxx in order to build with a C compiler. This
2753 option will be removed in a future release.
2754
c0272db5
TW
2755* GDBserver now supports recording btrace without maintaining an active
2756 GDB connection.
2757
bb556f1f
TK
2758* GDB now supports a negative repeat count in the 'x' command to examine
2759 memory backward from the given address. For example:
2760
2761 (gdb) bt
2762 #0 Func1 (n=42, p=0x40061c "hogehoge") at main.cpp:4
2763 #1 0x400580 in main (argc=1, argv=0x7fffffffe5c8) at main.cpp:8
2764 (gdb) x/-5i 0x0000000000400580
2765 0x40056a <main(int, char**)+8>: mov %edi,-0x4(%rbp)
2766 0x40056d <main(int, char**)+11>: mov %rsi,-0x10(%rbp)
2767 0x400571 <main(int, char**)+15>: mov $0x40061c,%esi
2768 0x400576 <main(int, char**)+20>: mov $0x2a,%edi
2769 0x40057b <main(int, char**)+25>:
2770 callq 0x400536 <Func1(int, char const*)>
2771
9920b434
BH
2772* Fortran: Support structures with fields of dynamic types and
2773 arrays of dynamic types.
2774
34c41c68
DE
2775* The symbol dumping maintenance commands have new syntax.
2776maint print symbols [-pc address] [--] [filename]
2777maint print symbols [-objfile objfile] [-source source] [--] [filename]
2778maint print psymbols [-objfile objfile] [-pc address] [--] [filename]
2779maint print psymbols [-objfile objfile] [-source source] [--] [filename]
2780maint print msymbols [-objfile objfile] [--] [filename]
2781
81516450
DE
2782* GDB now supports multibit bitfields and enums in target register
2783 descriptions.
2784
f2f3ccb9
SM
2785* New Python-based convenience function $_as_string(val), which returns
2786 the textual representation of a value. This function is especially
2787 useful to obtain the text label of an enum value.
2788
012b3a21
WT
2789* Intel MPX bound violation handling.
2790
2791 Segmentation faults caused by a Intel MPX boundary violation
2792 now display the kind of violation (upper or lower), the memory
2793 address accessed and the memory bounds, along with the usual
2794 signal received and code location.
2795
2796 For example:
2797
2798 Program received signal SIGSEGV, Segmentation fault
2799 Upper bound violation while accessing address 0x7fffffffc3b3
2800 Bounds: [lower = 0x7fffffffc390, upper = 0x7fffffffc3a3]
2801 0x0000000000400d7c in upper () at i386-mpx-sigsegv.c:68
2802
0bdfa368
TT
2803* Rust language support.
2804 GDB now supports debugging programs written in the Rust programming
2805 language. See https://www.rust-lang.org/ for more information about
2806 Rust.
2807
86f78169
PA
2808* Support for running interpreters on specified input/output devices
2809
2810 GDB now supports a new mechanism that allows frontends to provide
2811 fully featured GDB console views, as a better alternative to
2812 building such views on top of the "-interpreter-exec console"
2813 command. See the new "new-ui" command below. With that command,
2814 frontends can now start GDB in the traditional command-line mode
2815 running in an embedded terminal emulator widget, and create a
2816 separate MI interpreter running on a specified i/o device. In this
2817 way, GDB handles line editing, history, tab completion, etc. in the
2818 console all by itself, and the GUI uses the separate MI interpreter
2819 for its own control and synchronization, invisible to the command
2820 line.
2821
e3487908
GKB
2822* The "catch syscall" command catches groups of related syscalls.
2823
2824 The "catch syscall" command now supports catching a group of related
2825 syscalls using the 'group:' or 'g:' prefix.
2826
d2dffb8d
DE
2827* New commands
2828
2829skip -file file
2830skip -gfile file-glob-pattern
2831skip -function function
2832skip -rfunction regular-expression
2833 A generalized form of the skip command, with new support for
2834 glob-style file names and regular expressions for function names.
2835 Additionally, a file spec and a function spec may now be combined.
2836
f2403c39 2837maint info line-table REGEXP
82f06518 2838 Display the contents of GDB's internal line table data structure.
f2403c39 2839
dcd1f979
TT
2840maint selftest
2841 Run any GDB unit tests that were compiled in.
2842
86f78169
PA
2843new-ui INTERP TTY
2844 Start a new user interface instance running INTERP as interpreter,
2845 using the TTY file for input/output.
2846
93daf339
TT
2847* Python Scripting
2848
2849 ** gdb.Breakpoint objects have a new attribute "pending", which
2850 indicates whether the breakpoint is pending.
8d2a0a14
TT
2851 ** Three new breakpoint-related events have been added:
2852 gdb.breakpoint_created, gdb.breakpoint_modified, and
2853 gdb.breakpoint_deleted.
93daf339 2854
463888ab
РИ
2855signal-event EVENTID
2856 Signal ("set") the given MS-Windows event object. This is used in
2857 conjunction with the Windows JIT debugging (AeDebug) support, where
2858 the OS suspends a crashing process until a debugger can attach to
2859 it. Resuming the crashing process, in order to debug it, is done by
2860 signalling an event.
2861
c37c0ba6
MK
2862* Support for tracepoints and fast tracepoints on s390-linux and s390x-linux
2863 was added in GDBserver, including JIT compiling fast tracepoint's
2864 conditional expression bytecode into native code.
2865
f7c38292
PA
2866* Support for various remote target protocols and ROM monitors has
2867 been removed:
2868
2869 target m32rsdi Remote M32R debugging over SDI
2870 target mips MIPS remote debugging protocol
2871 target pmon PMON ROM monitor
2872 target ddb NEC's DDB variant of PMON for Vr4300
2873 target rockhopper NEC RockHopper variant of PMON
2874 target lsi LSI variant of PMO
2875
22084c42
MK
2876* Support for tracepoints and fast tracepoints on powerpc-linux,
2877 powerpc64-linux, and powerpc64le-linux was added in GDBserver,
2878 including JIT compiling fast tracepoint's conditional expression
2879 bytecode into native code.
2880
38b022b4
SM
2881* MI async record =record-started now includes the method and format used for
2882 recording. For example:
2883
2884 =record-started,thread-group="i1",method="btrace",format="bts"
2885
4034d0ff
AT
2886* MI async record =thread-selected now includes the frame field. For example:
2887
2888 =thread-selected,id="3",frame={level="0",addr="0x00000000004007c0"}
2889
a28d8e50
YTL
2890* New targets
2891
2892Andes NDS32 nds32*-*-elf
2893
1233c0ba 2894*** Changes in GDB 7.11
7c79d316 2895
6e9567fe
JB
2896* GDB now supports debugging kernel-based threads on FreeBSD.
2897
5d5658a1
PA
2898* Per-inferior thread numbers
2899
2900 Thread numbers are now per inferior instead of global. If you're
2901 debugging multiple inferiors, GDB displays thread IDs using a
2902 qualified INF_NUM.THR_NUM form. For example:
2903
2904 (gdb) info threads
2905 Id Target Id Frame
2906 1.1 Thread 0x7ffff7fc2740 (LWP 8155) (running)
2907 1.2 Thread 0x7ffff7fc1700 (LWP 8168) (running)
2908 * 2.1 Thread 0x7ffff7fc2740 (LWP 8157) (running)
2909 2.2 Thread 0x7ffff7fc1700 (LWP 8190) (running)
2910
2911 As consequence, thread numbers as visible in the $_thread
2912 convenience variable and in Python's InferiorThread.num attribute
2913 are no longer unique between inferiors.
2914
2915 GDB now maintains a second thread ID per thread, referred to as the
2916 global thread ID, which is the new equivalent of thread numbers in
663f6d42 2917 previous releases. See also $_gthread below.
5d5658a1
PA
2918
2919 For backwards compatibility, MI's thread IDs always refer to global
2920 IDs.
2921
2922* Commands that accept thread IDs now accept the qualified
2923 INF_NUM.THR_NUM form as well. For example:
2924
2925 (gdb) thread 2.1
2926 [Switching to thread 2.1 (Thread 0x7ffff7fc2740 (LWP 8157))] (running)
2927 (gdb)
2928
71ef29a8
PA
2929* In commands that accept a list of thread IDs, you can now refer to
2930 all threads of an inferior using a star wildcard. GDB accepts
2931 "INF_NUM.*", to refer to all threads of inferior INF_NUM, and "*" to
2932 refer to all threads of the current inferior. For example, "info
2933 threads 2.*".
2934
c84f6bbf
PA
2935* You can use "info threads -gid" to display the global thread ID of
2936 all threads.
2937
663f6d42
PA
2938* The new convenience variable $_gthread holds the global number of
2939 the current thread.
2940
e3940304
PA
2941* The new convenience variable $_inferior holds the number of the
2942 current inferior.
2943
f303dbd6
PA
2944* GDB now displays the ID and name of the thread that hit a breakpoint
2945 or received a signal, if your program is multi-threaded. For
2946 example:
2947
2948 Thread 3 "bar" hit Breakpoint 1 at 0x40087a: file program.c, line 20.
2949 Thread 1 "main" received signal SIGINT, Interrupt.
2950
cbb55fa7
MM
2951* Record btrace now supports non-stop mode.
2952
58d2eda5
PL
2953* Support for tracepoints on aarch64-linux was added in GDBserver.
2954
da8c46d2 2955* The 'record instruction-history' command now indicates speculative execution
bc504a31 2956 when using the Intel Processor Trace recording format.
da8c46d2 2957
629500fa
KS
2958* GDB now allows users to specify explicit locations, bypassing
2959 the linespec parser. This feature is also available to GDB/MI
2960 clients.
2961
02f024f9
YQ
2962* Multi-architecture debugging is supported on AArch64 GNU/Linux.
2963 GDB now is able to debug both AArch64 applications and ARM applications
2964 at the same time.
2965
4d9d419e
PL
2966* Support for fast tracepoints on aarch64-linux was added in GDBserver,
2967 including JIT compiling fast tracepoint's conditional expression bytecode
2968 into native code.
2969
eda14cf2
YQ
2970* GDB now supports displaced stepping on AArch64 GNU/Linux.
2971
be81798b
PA
2972* "info threads", "info inferiors", "info display", "info checkpoints"
2973 and "maint info program-spaces" now list the corresponding items in
2974 ascending ID order, for consistency with all other "info" commands.
2975
3685b09f
PMR
2976* In Ada, the overloads selection menu has been enhanced to display the
2977 parameter types and the return types for the matching overloaded subprograms.
2978
fbea99ea
PA
2979* New commands
2980
2981maint set target-non-stop (on|off|auto)
2982maint show target-non-stop
2983 Control whether GDB targets always operate in non-stop mode even if
2984 "set non-stop" is "off". The default is "auto", meaning non-stop
2985 mode is enabled if supported by the target.
2986
18989b3c
AB
2987maint set bfd-sharing
2988maint show bfd-sharing
2989 Control the reuse of bfd objects.
2990
566f5e3b
AB
2991set debug bfd-cache
2992show debug bfd-cache
2993 Control display of debugging info regarding bfd caching.
2994
6e9567fe
JB
2995set debug fbsd-lwp
2996show debug fbsd-lwp
2997 Control display of debugging info regarding FreeBSD threads.
2998
73b8c1fd
PA
2999set remote multiprocess-extensions-packet
3000show remote multiprocess-extensions-packet
3001 Set/show the use of the remote protocol multiprocess extensions.
3002
65706a29
PA
3003set remote thread-events
3004show remote thread-events
3005 Set/show the use of thread create/exit events.
3006
3685b09f
PMR
3007set ada print-signatures on|off
3008show ada print-signatures"
3009 Control whether parameter types and return types are displayed in overloads
82f06518 3010 selection menus. It is activated (@code{on}) by default.
3685b09f 3011
5fdf6324
AB
3012set max-value-size
3013show max-value-size
3014 Controls the maximum size of memory, in bytes, that GDB will
3015 allocate for value contents. Prevents incorrect programs from
3016 causing GDB to allocate overly large buffers. Default is 64k.
3017
6ff0ba5f
DE
3018* The "disassemble" command accepts a new modifier: /s.
3019 It prints mixed source+disassembly like /m with two differences:
3020 - disassembled instructions are now printed in program order, and
3021 - and source for all relevant files is now printed.
3022 The "/m" option is now considered deprecated: its "source-centric"
3023 output hasn't proved useful in practice.
3024
0c532a29
MM
3025* The "record instruction-history" command accepts a new modifier: /s.
3026 It behaves exactly like /m and prints mixed source+disassembly.
3027
f2665db5
MM
3028* The "set scheduler-locking" command supports a new mode "replay".
3029 It behaves like "off" in record mode and like "on" in replay mode.
3030
40e0b271
PA
3031* Support for various ROM monitors has been removed:
3032
3033 target dbug dBUG ROM monitor for Motorola ColdFire
3034 target picobug Motorola picobug monitor
3035 target dink32 DINK32 ROM monitor for PowerPC
3036 target m32r Renesas M32R/D ROM monitor
3037 target mon2000 mon2000 ROM monitor
3038 target ppcbug PPCBUG ROM monitor for PowerPC
3039
fd2ae5d6 3040* Support for reading/writing memory and extracting values on architectures
d63dd61e 3041 whose memory is addressable in units of any integral multiple of 8 bits.
fd2ae5d6 3042
9f757bf7
XR
3043catch handlers
3044 Allows to break when an Ada exception is handled.
3045
b459a59b
DB
3046* New remote packets
3047
3048exec stop reason
3049 Indicates that an exec system call was executed.
3050
3051exec-events feature in qSupported
3052 The qSupported packet allows GDB to request support for exec
3053 events using the new 'gdbfeature' exec-event, and the qSupported
3054 response can contain the corresponding 'stubfeature'. Set and
3055 show commands can be used to display whether these features are enabled.
3056
de979965
PA
3057vCtrlC
3058 Equivalent to interrupting with the ^C character, but works in
3059 non-stop mode.
3060
65706a29
PA
3061thread created stop reason (T05 create:...)
3062 Indicates that the thread was just created and is stopped at entry.
3063
3064thread exit stop reply (w exitcode;tid)
3065 Indicates that the thread has terminated.
3066
3067QThreadEvents
3068 Enables/disables thread create and exit event reporting. For
3069 example, this is used in non-stop mode when GDB stops a set of
3070 threads and synchronously waits for the their corresponding stop
3071 replies. Without exit events, if one of the threads exits, GDB
3072 would hang forever not knowing that it should no longer expect a
3073 stop for that same thread.
3074
f2faf941 3075N stop reply
f2faf941
PA
3076 Indicates that there are no resumed threads left in the target (all
3077 threads are stopped). The remote stub reports support for this stop
3078 reply to GDB's qSupported query.
3079
aab3c527
JK
3080QCatchSyscalls
3081 Enables/disables catching syscalls from the inferior process.
3082 The remote stub reports support for this packet to GDB's qSupported query.
82075af2
JS
3083
3084syscall_entry stop reason
3085 Indicates that a syscall was just called.
3086
3087syscall_return stop reason
3088 Indicates that a syscall just returned.
3089
b459a59b
DB
3090* Extended-remote exec events
3091
3092 ** GDB now has support for exec events on extended-remote Linux targets.
3093 For such targets with Linux kernels 2.5.46 and later, this enables
3094 follow-exec-mode and exec catchpoints.
3095
3096set remote exec-event-feature-packet
3097show remote exec-event-feature-packet
3098 Set/show the use of the remote exec event feature.
3099
79efa585
SM
3100 * Thread names in remote protocol
3101
3102 The reply to qXfer:threads:read may now include a name attribute for each
3103 thread.
3104
19d9d4ef
DB
3105* Target remote mode fork and exec events
3106
3107 ** GDB now has support for fork and exec events on target remote mode
3108 Linux targets. For such targets with Linux kernels 2.5.46 and later,
3109 this enables follow-fork-mode, detach-on-fork, follow-exec-mode, and
3110 fork and exec catchpoints.
3111
82075af2
JS
3112* Remote syscall events
3113
3114 ** GDB now has support for catch syscall on remote Linux targets,
3115 currently enabled on x86/x86_64 architectures.
3116
3117set remote catch-syscall-packet
3118show remote catch-syscall-packet
3119 Set/show the use of the remote catch syscall feature.
3120
1c35a88f
LM
3121* MI changes
3122
3123 ** The -var-set-format command now accepts the zero-hexadecimal
3124 format. It outputs data in hexadecimal format with zero-padding on the
3125 left.
3126
84654457
PA
3127* Python Scripting
3128
22a02324
PA
3129 ** gdb.InferiorThread objects have a new attribute "global_num",
3130 which refers to the thread's global thread ID. The existing
3131 "num" attribute now refers to the thread's per-inferior number.
3132 See "Per-inferior thread numbers" above.
84654457
PA
3133 ** gdb.InferiorThread objects have a new attribute "inferior", which
3134 is the Inferior object the thread belongs to.
3135
7c79d316 3136*** Changes in GDB 7.10
df8411da 3137
c16a3f52
OJ
3138* Support for process record-replay and reverse debugging on aarch64*-linux*
3139 targets has been added. GDB now supports recording of A64 instruction set
3140 including advance SIMD instructions.
3141
18a94d75
DE
3142* Support for Sun's version of the "stabs" debug file format has been removed.
3143
df8411da
SDJ
3144* GDB now honors the content of the file /proc/PID/coredump_filter
3145 (PID is the process ID) on GNU/Linux systems. This file can be used
3146 to specify the types of memory mappings that will be included in a
3147 corefile. For more information, please refer to the manual page of
3148 "core(5)". GDB also has a new command: "set use-coredump-filter
3149 on|off". It allows to set whether GDB will read the content of the
3150 /proc/PID/coredump_filter file when generating a corefile.
3b2f13ff 3151
d33279b3
AT
3152* The "info os" command on GNU/Linux can now display information on
3153 cpu information :
3154 "info os cpus" Listing of all cpus/cores on the system
3155
236af5e3
YG
3156* GDB has two new commands: "set serial parity odd|even|none" and
3157 "show serial parity". These allows to set or show parity for the
3158 remote serial I/O.
3159
b6577aab
DE
3160* The "info source" command now displays the producer string if it was
3161 present in the debug info. This typically includes the compiler version
3162 and may include things like its command line arguments.
3163
b30a0bc3
JB
3164* The "info dll", an alias of the "info sharedlibrary" command,
3165 is now available on all platforms.
3166
599bd15c
GB
3167* Directory names supplied to the "set sysroot" commands may be
3168 prefixed with "target:" to tell GDB to access shared libraries from
3169 the target system, be it local or remote. This replaces the prefix
3170 "remote:". The default sysroot has been changed from "" to
3171 "target:". "remote:" is automatically converted to "target:" for
3172 backward compatibility.
3173
a9a5a3d1
GB
3174* The system root specified by "set sysroot" will be prepended to the
3175 filename of the main executable (if reported to GDB as absolute by
3176 the operating system) when starting processes remotely, and when
3177 attaching to already-running local or remote processes.
3178
1b6e6f5c
GB
3179* GDB now supports automatic location and retrieval of executable
3180 files from remote targets. Remote debugging can now be initiated
3181 using only a "target remote" or "target extended-remote" command
3182 (no "set sysroot" or "file" commands are required). See "New remote
3183 packets" below.
3184
cf75d6c3
AB
3185* The "dump" command now supports verilog hex format.
3186
417c80f9
AA
3187* GDB now supports the vector ABI on S/390 GNU/Linux targets.
3188
51aad7cc
GB
3189* On GNU/Linux, GDB and gdbserver are now able to access executable
3190 and shared library files without a "set sysroot" command when
3191 attaching to processes running in different mount namespaces from
3192 the debugger. This makes it possible to attach to processes in
3193 containers as simply as "gdb -p PID" or "gdbserver --attach PID".
3194 See "New remote packets" below.
3195
51f0e40d
AB
3196* The "tui reg" command now provides completion for all of the
3197 available register groups, including target specific groups.
3198
b58c513b
PP
3199* The HISTSIZE environment variable is no longer read when determining
3200 the size of GDB's command history. GDB now instead reads the dedicated
bc460514
PP
3201 GDBHISTSIZE environment variable. Setting GDBHISTSIZE to "-1" or to "" now
3202 disables truncation of command history. Non-numeric values of GDBHISTSIZE
3203 are ignored.
b58c513b 3204
37442ce1
DE
3205* Guile Scripting
3206
3207 ** Memory ports can now be unbuffered.
3208
3a8b707a
DE
3209* Python Scripting
3210
3211 ** gdb.Objfile objects have a new attribute "username",
3212 which is the name of the objfile as specified by the user,
3213 without, for example, resolving symlinks.
d11916aa 3214 ** You can now write frame unwinders in Python.
59fb7612
SS
3215 ** gdb.Type objects have a new method "optimized_out",
3216 returning optimized out gdb.Value instance of this type.
4c082a81
SC
3217 ** gdb.Value objects have new methods "reference_value" and
3218 "const_value" which return a reference to the value and a
3219 "const" version of the value respectively.
3a8b707a 3220
f57d2163
DE
3221* New commands
3222
3223maint print symbol-cache
3224 Print the contents of the symbol cache.
3225
3226maint print symbol-cache-statistics
3227 Print statistics of symbol cache usage.
3228
3229maint flush-symbol-cache
3230 Flush the contents of the symbol cache.
3231
f4abbc16
MM
3232record btrace bts
3233record bts
3234 Start branch trace recording using Branch Trace Store (BTS) format.
3235
36de76f9
JK
3236compile print
3237 Evaluate expression by using the compiler and print result.
3238
a4ea0946
AB
3239tui enable
3240tui disable
3241 Explicit commands for enabling and disabling tui mode.
3242
29c1c244
WT
3243show mpx bound
3244set mpx bound on i386 and amd64
bc504a31 3245 Support for bound table investigation on Intel MPX enabled applications.
29c1c244 3246
b20a6524
MM
3247record btrace pt
3248record pt
bc504a31 3249 Start branch trace recording using Intel Processor Trace format.
b20a6524 3250
b0627500
MM
3251maint info btrace
3252 Print information about branch tracing internals.
3253
3254maint btrace packet-history
3255 Print the raw branch tracing data.
3256
3257maint btrace clear-packet-history
3258 Discard the stored raw branch tracing data.
3259
3260maint btrace clear
3261 Discard all branch tracing data. It will be fetched and processed
3262 anew by the next "record" command.
3263
253828f1
JK
3264* New options
3265
b4f54984
DE
3266set debug dwarf-die
3267 Renamed from "set debug dwarf2-die".
3268show debug dwarf-die
3269 Renamed from "show debug dwarf2-die".
3270
3271set debug dwarf-read
3272 Renamed from "set debug dwarf2-read".
3273show debug dwarf-read
3274 Renamed from "show debug dwarf2-read".
3275
3276maint set dwarf always-disassemble
3277 Renamed from "maint set dwarf2 always-disassemble".
3278maint show dwarf always-disassemble
3279 Renamed from "maint show dwarf2 always-disassemble".
3280
3281maint set dwarf max-cache-age
3282 Renamed from "maint set dwarf2 max-cache-age".
3283maint show dwarf max-cache-age
3284 Renamed from "maint show dwarf2 max-cache-age".
3285
27e0867f
DE
3286set debug dwarf-line
3287show debug dwarf-line
3288 Control display of debugging info regarding DWARF line processing.
3289
ef0b411a
GB
3290set max-completions
3291show max-completions
3292 Set the maximum number of candidates to be considered during
3293 completion. The default value is 200. This limit allows GDB
3294 to avoid generating large completion lists, the computation of
3295 which can cause the debugger to become temporarily unresponsive.
3296
fc637f04
PP
3297set history remove-duplicates
3298show history remove-duplicates
3299 Control the removal of duplicate history entries.
3300
f57d2163
DE
3301maint set symbol-cache-size
3302maint show symbol-cache-size
3303 Control the size of the symbol cache.
3304
d33501a5
MM
3305set|show record btrace bts buffer-size
3306 Set and show the size of the ring buffer used for branch tracing in
3307 BTS format.
3308 The obtained size may differ from the requested size. Use "info
3309 record" to see the obtained buffer size.
3310
7a6a1731
GB
3311set debug linux-namespaces
3312show debug linux-namespaces
3313 Control display of debugging info regarding Linux namespaces.
3314
b20a6524
MM
3315set|show record btrace pt buffer-size
3316 Set and show the size of the ring buffer used for branch tracing in
bc504a31 3317 Intel Processor Trace format.
b20a6524
MM
3318 The obtained size may differ from the requested size. Use "info
3319 record" to see the obtained buffer size.
3320
b0627500
MM
3321maint set|show btrace pt skip-pad
3322 Set and show whether PAD packets are skipped when computing the
3323 packet history.
3324
253828f1
JK
3325* The command 'thread apply all' can now support new option '-ascending'
3326 to call its specified command for all threads in ascending order.
3327
9f050062
DE
3328* Python/Guile scripting
3329
3330 ** GDB now supports auto-loading of Python/Guile scripts contained in the
3331 special section named `.debug_gdb_scripts'.
3332
f4abbc16
MM
3333* New remote packets
3334
3335qXfer:btrace-conf:read
3336 Return the branch trace configuration for the current thread.
3337
d33501a5
MM
3338Qbtrace-conf:bts:size
3339 Set the requested ring buffer size for branch tracing in BTS format.
3340
b20a6524 3341Qbtrace:pt
82f06518 3342 Enable Intel Processor Trace-based branch tracing for the current
b20a6524
MM
3343 process. The remote stub reports support for this packet to GDB's
3344 qSupported query.
3345
3346Qbtrace-conf:pt:size
bc504a31 3347 Set the requested ring buffer size for branch tracing in Intel Processor
b20a6524
MM
3348 Trace format.
3349
f7e6eed5
PA
3350swbreak stop reason
3351 Indicates a memory breakpoint instruction was executed, irrespective
3352 of whether it was GDB that planted the breakpoint or the breakpoint
3353 is hardcoded in the program. This is required for correct non-stop
3354 mode operation.
3355
3356hwbreak stop reason
3357 Indicates the target stopped for a hardware breakpoint. This is
3358 required for correct non-stop mode operation.
3359
0a93529c
GB
3360vFile:fstat:
3361 Return information about files on the remote system.
3362
c78fa86a
GB
3363qXfer:exec-file:read
3364 Return the full absolute name of the file that was executed to
3365 create a process running on the remote system.
3366
15a201c8
GB
3367vFile:setfs:
3368 Select the filesystem on which vFile: operations with filename
3369 arguments will operate. This is required for GDB to be able to
3370 access files on remote targets where the remote stub does not
3371 share a common filesystem with the inferior(s).
3372
0d71eef5
DB
3373fork stop reason
3374 Indicates that a fork system call was executed.
3375
3376vfork stop reason
3377 Indicates that a vfork system call was executed.
3378
3379vforkdone stop reason
3380 Indicates that a vfork child of the specified process has executed
3381 an exec or exit, allowing the vfork parent to resume execution.
3382
3383fork-events and vfork-events features in qSupported
3384 The qSupported packet allows GDB to request support for fork and
3385 vfork events using new 'gdbfeatures' fork-events and vfork-events,
3386 and the qSupported response can contain the corresponding
3387 'stubfeatures'. Set and show commands can be used to display
3388 whether these features are enabled.
3389
3390* Extended-remote fork events
3391
3392 ** GDB now has support for fork events on extended-remote Linux
3393 targets. For targets with Linux kernels 2.5.60 and later, this
3394 enables follow-fork-mode and detach-on-fork for both fork and
3395 vfork, as well as fork and vfork catchpoints.
3396
d33501a5
MM
3397* The info record command now shows the recording format and the
3398 branch tracing configuration for the current thread when using
3399 the btrace record target.
3400 For the BTS format, it shows the ring buffer size.
3401
b05e3b0d
JM
3402* GDB now has support for DTrace USDT (Userland Static Defined
3403 Tracing) probes. The supported targets are x86_64-*-linux-gnu.
3404
550bdf96
AA
3405* GDB now supports access to vector registers on S/390 GNU/Linux
3406 targets.
3407
4f45d445
JK
3408* Removed command line options
3409
3410-xdb HP-UX XDB compatibility mode.
3411
0800b440
JK
3412* Removed targets and native configurations
3413
3414HP/PA running HP-UX hppa*-*-hpux*
3415Itanium running HP-UX ia64-*-hpux*
3416
58bfce93
MM
3417* New configure options
3418
3419--with-intel-pt
3420 This configure option allows the user to build GDB with support for
bc504a31 3421 Intel Processor Trace (default: auto). This requires libipt.
58bfce93
MM
3422
3423--with-libipt-prefix=PATH
3424 Specify the path to the version of libipt that GDB should use.
3425 $PATH/include should contain the intel-pt.h header and
3426 $PATH/lib should contain the libipt.so library.
3427
f5f85ab9
JB
3428*** Changes in GDB 7.9.1
3429
3430* Python Scripting
3431
3432 ** Xmethods can now specify a result type.
3433
3b2f13ff 3434*** Changes in GDB 7.9
919b9a93 3435
05db5edd
ST
3436* GDB now supports hardware watchpoints on x86 GNU Hurd.
3437
5f3b99cf 3438* Python Scripting
2b4fd423
DE
3439
3440 ** You can now access frame registers from Python scripts.
3441 ** New attribute 'producer' for gdb.Symtab objects.
d096d8c1
DE
3442 ** gdb.Objfile objects have a new attribute "progspace",
3443 which is the gdb.Progspace object of the containing program space.
a0be3e44 3444 ** gdb.Objfile objects have a new attribute "owner".
7c50a931
DE
3445 ** gdb.Objfile objects have a new attribute "build_id",
3446 which is the build ID generated when the file was built.
86e4ed39 3447 ** gdb.Objfile objects have a new method "add_separate_debug_file".
4ffbba72
DE
3448 ** A new event "gdb.clear_objfiles" has been added, triggered when
3449 selecting a new file to debug.
02be9a71 3450 ** You can now add attributes to gdb.Objfile and gdb.Progspace objects.
6dddd6a5 3451 ** New function gdb.lookup_objfile.
5f3b99cf 3452
8fda9068
YQ
3453 New events which are triggered when GDB modifies the state of the
3454 inferior.
3455
3456 ** gdb.events.inferior_call_pre: Function call is about to be made.
3457 ** gdb.events.inferior_call_post: Function call has just been made.
3458 ** gdb.events.memory_changed: A memory location has been altered.
3459 ** gdb.events.register_changed: A register has been altered.
3460
faa42425
DE
3461* New Python-based convenience functions:
3462
3463 ** $_caller_is(name [, number_of_frames])
3464 ** $_caller_matches(regexp [, number_of_frames])
3465 ** $_any_caller_is(name [, number_of_frames])
3466 ** $_any_caller_matches(regexp [, number_of_frames])
3467
bb2ec1b3
TT
3468* GDB now supports the compilation and injection of source code into
3469 the inferior. GDB will use GCC 5.0 or higher built with libcc1.so
3470 to compile the source code to object code, and if successful, inject
3471 and execute that code within the current context of the inferior.
3472 Currently the C language is supported. The commands used to
3473 interface with this new feature are:
3474
3475 compile code [-raw|-r] [--] [source code]
3476 compile file [-raw|-r] filename
3477
81219e53
DE
3478* New commands
3479
439250fb
DE
3480demangle [-l language] [--] name
3481 Demangle "name" in the specified language, or the current language
3482 if elided. This command is renamed from the "maint demangle" command.
3483 The latter is kept as a no-op to avoid "maint demangle" being interpreted
3484 as "maint demangler-warning".
3485
81219e53
DE
3486queue-signal signal-name-or-number
3487 Queue a signal to be delivered to the thread when it is resumed.
3488
f10c5b19
JK
3489add-auto-load-scripts-directory directory
3490 Add entries to the list of directories from which to load auto-loaded
3491 scripts.
3492
f5b95c01
AA
3493maint print user-registers
3494 List all currently available "user" registers.
3495
bb2ec1b3
TT
3496compile code [-r|-raw] [--] [source code]
3497 Compile, inject, and execute in the inferior the executable object
3498 code produced by compiling the provided source code.
3499
3500compile file [-r|-raw] filename
3501 Compile and inject into the inferior the executable object code
3502 produced by compiling the source code stored in the filename
3503 provided.
3504
70509625
PA
3505* On resume, GDB now always passes the signal the program had stopped
3506 for to the thread the signal was sent to, even if the user changed
3507 threads before resuming. Previously GDB would often (but not
3508 always) deliver the signal to the thread that happens to be current
3509 at resume time.
3510
3511* Conversely, the "signal" command now consistently delivers the
3512 requested signal to the current thread. GDB now asks for
3513 confirmation if the program had stopped for a signal and the user
3514 switched threads meanwhile.
3515
a25a5a45
PA
3516* "breakpoint always-inserted" modes "off" and "auto" merged.
3517
3518 Now, when 'breakpoint always-inserted mode' is set to "off", GDB
3519 won't remove breakpoints from the target until all threads stop,
3520 even in non-stop mode. The "auto" mode has been removed, and "off"
3521 is now the default mode.
3522
cc485e62
DE
3523* New options
3524
3525set debug symbol-lookup
3526show debug symbol-lookup
3527 Control display of debugging info regarding symbol lookup.
3528
2ddf4301
SM
3529* MI changes
3530
3531 ** The -list-thread-groups command outputs an exit-code field for
3532 inferiors that have exited.
3533
bb7e3f4d
YQ
3534* New targets
3535
3536MIPS SDE mips*-sde*-elf*
3537
3831839c
PA
3538* Removed targets
3539
3540Support for these obsolete configurations has been removed.
3541
5ab806de
PA
3542Alpha running OSF/1 (or Tru64) alpha*-*-osf*
3543SGI Irix-5.x mips-*-irix5*
3544SGI Irix-6.x mips-*-irix6*
09dd9a69
PA
3545VAX running (4.2 - 4.3 Reno) BSD vax-*-bsd*
3546VAX running Ultrix vax-*-ultrix*
3831839c 3547
6bf6fd09
JB
3548* The "dll-symbols" command, and its two aliases ("add-shared-symbol-files"
3549 and "assf"), have been removed. Use the "sharedlibrary" command, or
3550 its alias "share", instead.
3551
919b9a93 3552*** Changes in GDB 7.8
e9475ead 3553
8d551b02
DE
3554* New command line options
3555
3556-D data-directory
3557 This is an alias for the --data-directory option.
3558
e9475ead
SA
3559* GDB supports printing and modifying of variable length automatic arrays
3560 as specified in ISO C99.
3561
a75fef0e
NC
3562* The ARM simulator now supports instruction level tracing
3563 with or without disassembly.
b7bba001 3564
ed3ef339
DE
3565* Guile scripting
3566
3567 GDB now has support for scripting using Guile. Whether this is
3568 available is determined at configure time.
3569 Guile version 2.0 or greater is required.
3570 Guile version 2.0.9 is well tested, earlier 2.0 versions are not.
3571
3572* New commands (for set/show, see "New options" below)
3573
3574guile [code]
3575gu [code]
3576 Invoke CODE by passing it to the Guile interpreter.
3577
3578guile-repl
3579gr
3580 Start a Guile interactive prompt (or "repl" for "read-eval-print loop").
3581
3582info auto-load guile-scripts [regexp]
3583 Print the list of automatically loaded Guile scripts.
3584
3585* The source command is now capable of sourcing Guile scripts.
3586 This feature is dependent on the debugger being built with Guile support.
3587
c6044dd1
JB
3588* New options
3589
770e7fc7
DE
3590set print symbol-loading (off|brief|full)
3591show print symbol-loading
3592 Control whether to print informational messages when loading symbol
3593 information for a file. The default is "full", but when debugging
3594 programs with large numbers of shared libraries the amount of output
3595 becomes less useful.
3596
ed3ef339
DE
3597set guile print-stack (none|message|full)
3598show guile print-stack
3599 Show a stack trace when an error is encountered in a Guile script.
3600
3601set auto-load guile-scripts (on|off)
3602show auto-load guile-scripts
3603 Control auto-loading of Guile script files.
3604
c6044dd1
JB
3605maint ada set ignore-descriptive-types (on|off)
3606maint ada show ignore-descriptive-types
3607 Control whether the debugger should ignore descriptive types in Ada
3608 programs. The default is not to ignore the descriptive types. See
3609 the user manual for more details on descriptive types and the intended
3610 usage of this option.
3611
6a3cb8e8
PA
3612set auto-connect-native-target
3613
3614 Control whether GDB is allowed to automatically connect to the
3615 native target for the run, attach, etc. commands when not connected
3616 to any target yet. See also "target native" below.
3617
67b5c0c1
MM
3618set record btrace replay-memory-access (read-only|read-write)
3619show record btrace replay-memory-access
3620 Control what memory accesses are allowed during replay.
3621
329ea579
PA
3622maint set target-async (on|off)
3623maint show target-async
5784b3ca
JK
3624 This controls whether GDB targets operate in synchronous or
3625 asynchronous mode. Normally the default is asynchronous, if it is
329ea579 3626 available; but this can be changed to more easily debug problems
5784b3ca 3627 occurring only in synchronous mode.
329ea579
PA
3628
3629set mi-async (on|off)
3630show mi-async
3631 Control whether MI asynchronous mode is preferred. This supersedes
3632 "set target-async" of previous GDB versions.
3633
3634* "set target-async" is deprecated as a CLI option and is now an alias
3635 for "set mi-async" (only puts MI into async mode).
3636
3637* Background execution commands (e.g., "c&", "s&", etc.) are now
3638 possible ``out of the box'' if the target supports them. Previously
3639 the user would need to explicitly enable the possibility with the
3640 "set target-async on" command.
3641
87ce2a04
DE
3642* New features in the GDB remote stub, GDBserver
3643
3644 ** New option --debug-format=option1[,option2,...] allows one to add
3645 additional text to each output. At present only timestamps
3646 are supported: --debug-format=timestamps.
3647 Timestamps can also be turned on with the
3648 "monitor set debug-format timestamps" command from GDB.
3649
5de9129b
MM
3650* The 'record instruction-history' command now starts counting instructions
3651 at one. This also affects the instruction ranges reported by the
3652 'record function-call-history' command when given the /i modifier.
3653
8710b709
MM
3654* The command 'record function-call-history' supports a new modifier '/c' to
3655 indent the function names based on their call stack depth.
3656 The fields for the '/i' and '/l' modifier have been reordered.
3657 The source line range is now prefixed with 'at'.
3658 The instruction range is now prefixed with 'inst'.
3659 Both ranges are now printed as '<from>, <to>' to allow copy&paste to the
3660 "record instruction-history" and "list" commands.
3661
0688d04e
MM
3662* The ranges given as arguments to the 'record function-call-history' and
3663 'record instruction-history' commands are now inclusive.
3664
066ce621 3665* The btrace record target now supports the 'record goto' command.
0b722aec
MM
3666 For locations inside the execution trace, the back trace is computed
3667 based on the information stored in the execution trace.
066ce621 3668
52834460
MM
3669* The btrace record target supports limited reverse execution and replay.
3670 The target does not record data and therefore does not allow reading
3671 memory or registers.
3672
237b092b
AA
3673* The "catch syscall" command now works on s390*-linux* targets.
3674
936d2992
PA
3675* The "compare-sections" command is no longer specific to target
3676 remote. It now works with all targets.
3677
930ee1b1
PA
3678* All native targets are now consistently called "native".
3679 Consequently, the "target child", "target GNU", "target djgpp",
3680 "target procfs" (Solaris/Irix/OSF/AIX) and "target darwin-child"
3681 commands have been replaced with "target native". The QNX/NTO port
3682 leaves the "procfs" target in place and adds a "native" target for
3683 consistency with other ports. The impact on users should be minimal
3684 as these commands previously either throwed an error, or were
3685 no-ops. The target's name is visible in the output of the following
3686 commands: "help target", "info target", "info files", "maint print
3687 target-stack".
3688
6a3cb8e8
PA
3689* The "target native" command now connects to the native target. This
3690 can be used to launch native programs even when "set
3691 auto-connect-native-target" is set to off.
3692
bc504a31 3693* GDB now supports access to Intel MPX registers on GNU/Linux.
dc304a94 3694
bc504a31
PA
3695* Support for Intel AVX-512 registers on GNU/Linux.
3696 Support displaying and modifying Intel AVX-512 registers
dc304a94
JK
3697 $zmm0 - $zmm31 and $k0 - $k7 on GNU/Linux.
3698
969c39fb
MM
3699* New remote packets
3700
3701qXfer:btrace:read's annex
3702 The qXfer:btrace:read packet supports a new annex 'delta' to read
3703 branch trace incrementally.
3704
f7bd0f78
SC
3705* Python Scripting
3706
3707 ** Valid Python operations on gdb.Value objects representing
3708 structs/classes invoke the corresponding overloaded operators if
3709 available.
0c6e92a5
SC
3710 ** New `Xmethods' feature in the Python API. Xmethods are
3711 additional methods or replacements for existing methods of a C++
3712 class. This feature is useful for those cases where a method
3713 defined in C++ source code could be inlined or optimized out by
3714 the compiler, making it unavailable to GDB.
f7bd0f78 3715
36c24d95
UW
3716* New targets
3717PowerPC64 GNU/Linux little-endian powerpc64le-*-linux*
3718
95060284
JB
3719* The "dll-symbols" command, and its two aliases ("add-shared-symbol-files"
3720 and "assf"), have been deprecated. Use the "sharedlibrary" command, or
3721 its alias "share", instead.
3722
7f3c0343
JB
3723* The commands "set remotebaud" and "show remotebaud" are no longer
3724 supported. Use "set serial baud" and "show serial baud" (respectively)
3725 instead.
3726
329ea579
PA
3727* MI changes
3728
3729 ** A new option "-gdb-set mi-async" replaces "-gdb-set
3730 target-async". The latter is left as a deprecated alias of the
3731 former for backward compatibility. If the target supports it,
3732 CLI background execution commands are now always possible by
3733 default, independently of whether the frontend stated a
3734 preference for asynchronous execution with "-gdb-set mi-async".
3735 Previously "-gdb-set target-async off" affected both MI execution
3736 commands and CLI execution commands.
3737
b7bba001 3738*** Changes in GDB 7.7
2d450646 3739
33a97bbe
OJ
3740* Improved support for process record-replay and reverse debugging on
3741 arm*-linux* targets. Support for thumb32 and syscall instruction
3742 recording has been added.
3743
08248ca9
SDJ
3744* GDB now supports SystemTap SDT probes on AArch64 GNU/Linux.
3745
73869dc2
DE
3746* GDB now supports Fission DWP file format version 2.
3747 http://gcc.gnu.org/wiki/DebugFission
3748
a280dbd1
SDJ
3749* New convenience function "$_isvoid", to check whether an expression
3750 is void. A void expression is an expression where the type of the
3751 result is "void". For example, some convenience variables may be
3752 "void" when evaluated (e.g., "$_exitcode" before the execution of
3753 the program being debugged; or an undefined convenience variable).
3754 Another example, when calling a function whose return type is
3755 "void".
3756
52e260a3
DE
3757* The "maintenance print objfiles" command now takes an optional regexp.
3758
9f948660
SDJ
3759* The "catch syscall" command now works on arm*-linux* targets.
3760
901461f8
PA
3761* GDB now consistently shows "<not saved>" when printing values of
3762 registers the debug info indicates have not been saved in the frame
3763 and there's nowhere to retrieve them from
3764 (callee-saved/call-clobbered registers):
3765
3766 (gdb) p $rax
3767 $1 = <not saved>
3768
3769 (gdb) info registers rax
3770 rax <not saved>
3771
3772 Before, the former would print "<optimized out>", and the latter
3773 "*value not available*".
3774
caf26be9
SB
3775* New script contrib/gdb-add-index.sh for adding .gdb_index sections
3776 to binaries.
3777
1e611234
PM
3778* Python scripting
3779
3780 ** Frame filters and frame decorators have been added.
f76c27b5 3781 ** Temporary breakpoints are now supported.
bc79de95 3782 ** Line tables representation has been added.
a16b0e22
SC
3783 ** New attribute 'parent_type' for gdb.Field objects.
3784 ** gdb.Field objects can be used as subscripts on gdb.Value objects.
c0d48811 3785 ** New attribute 'name' for gdb.Type objects.
1e611234 3786
a1217d97
SL
3787* New targets
3788
3789Nios II ELF nios2*-*-elf
3790Nios II GNU/Linux nios2*-*-linux
42059f0e 3791Texas Instruments MSP430 msp430*-*-elf
a1217d97 3792
2659903b
JK
3793* Removed native configurations
3794
3795Support for these a.out NetBSD and OpenBSD obsolete configurations has
3796been removed. ELF variants of these configurations are kept supported.
3797
3798arm*-*-netbsd* but arm*-*-netbsdelf* is kept supported.
3799i[34567]86-*-netbsd* but i[34567]86-*-netbsdelf* is kept supported.
3800i[34567]86-*-openbsd[0-2].* but i[34567]86-*-openbsd* is kept supported.
3801i[34567]86-*-openbsd3.[0-3]
3802m68*-*-netbsd* but m68*-*-netbsdelf* is kept supported.
3803sparc-*-netbsd* but sparc-*-netbsdelf* is kept supported.
3804vax-*-netbsd* but vax-*-netbsdelf* is kept supported.
3805
bd712aed 3806* New commands:
b340913d
TT
3807catch rethrow
3808 Like "catch throw", but catches a re-thrown exception.
7d0c9981
DE
3809maint check-psymtabs
3810 Renamed from old "maint check-symtabs".
3811maint check-symtabs
3812 Perform consistency checks on symtabs.
3813maint expand-symtabs
3814 Expand symtabs matching an optional regexp.
b340913d 3815
dccca75d
EZ
3816show configuration
3817 Display the details of GDB configure-time options.
3818
bd712aed
DE
3819maint set|show per-command
3820maint set|show per-command space
3821maint set|show per-command time
3822maint set|show per-command symtab
3823 Enable display of per-command gdb resource usage.
3824
98297bf6
NB
3825remove-symbol-file FILENAME
3826remove-symbol-file -a ADDRESS
3827 Remove a symbol file added via add-symbol-file. The file to remove
3828 can be identified by its filename or by an address that lies within
3829 the boundaries of this symbol file in memory.
3830
58d06528
JB
3831info exceptions
3832info exceptions REGEXP
3833 Display the list of Ada exceptions defined in the program being
3834 debugged. If provided, only the exceptions whose names match REGEXP
3835 are listed.
3836
bd3eecc3
PA
3837* New options
3838
8fb8eb5c
DE
3839set debug symfile off|on
3840show debug symfile
3841 Control display of debugging info regarding reading symbol files and
3842 symbol tables within those files
3843
e7045703
DE
3844set print raw frame-arguments
3845show print raw frame-arguments
3846 Set/show whether to print frame arguments in raw mode,
3847 disregarding any defined pretty-printers.
3848
bd3eecc3
PA
3849set remote trace-status-packet
3850show remote trace-status-packet
3851 Set/show the use of remote protocol qTStatus packet.
3852
a1217d97
SL
3853set debug nios2
3854show debug nios2
3855 Control display of debugging messages related to Nios II targets.
3856
c1e36e3e
PA
3857set range-stepping
3858show range-stepping
3859 Control whether target-assisted range stepping is enabled.
3860
98882a26
PA
3861set startup-with-shell
3862show startup-with-shell
3863 Specifies whether Unix child processes are started via a shell or
3864 directly.
3865
29453a14
YQ
3866set code-cache
3867show code-cache
3868 Use the target memory cache for accesses to the code segment. This
3869 improves performance of remote debugging (particularly disassembly).
3870
1c2e4450
PA
3871* You can now use a literal value 'unlimited' for options that
3872 interpret 0 or -1 as meaning "unlimited". E.g., "set
3873 trace-buffer-size unlimited" is now an alias for "set
3874 trace-buffer-size -1" and "set height unlimited" is now an alias for
3875 "set height 0".
3876
db0fec5c
DE
3877* The "set debug symtab-create" debugging option of GDB has been changed to
3878 accept a verbosity level. 0 means "off", 1 provides basic debugging
3879 output, and values of 2 or greater provides more verbose output.
3880
dccca75d
EZ
3881* New command-line options
3882--configuration
3883 Display the details of GDB configure-time options.
3884
d0353e76
YQ
3885* The command 'tsave' can now support new option '-ctf' to save trace
3886 buffer in Common Trace Format.
3887
b292c783
JK
3888* Newly installed $prefix/bin/gcore acts as a shell interface for the
3889 GDB command gcore.
3890
09f2921c 3891* GDB now implements the C++ 'typeid' operator.
6e72ca20 3892
b340913d
TT
3893* The new convenience variable $_exception holds the exception being
3894 thrown or caught at an exception-related catchpoint.
3895
3896* The exception-related catchpoints, like "catch throw", now accept a
3897 regular expression which can be used to filter exceptions by type.
3898
0c557179
SDJ
3899* The new convenience variable $_exitsignal is automatically set to
3900 the terminating signal number when the program being debugged dies
3901 due to an uncaught signal.
3902
d0353e76
YQ
3903* MI changes
3904
403cb6b1 3905 ** All MI commands now accept an optional "--language" option.
4e35e808
JB
3906 Support for this feature can be verified by using the "-list-features"
3907 command, which should contain "language-option".
403cb6b1 3908
6b7cbff1
JB
3909 ** The new command -info-gdb-mi-command allows the user to determine
3910 whether a GDB/MI command is supported or not.
3911
2ea126fa
JB
3912 ** The "^error" result record returned when trying to execute an undefined
3913 GDB/MI command now provides a variable named "code" whose content is the
3914 "undefined-command" error code. Support for this feature can be verified
3915 by using the "-list-features" command, which should contain
3916 "undefined-command-error-code".
3917
d0353e76
YQ
3918 ** The -trace-save MI command can optionally save trace buffer in Common
3919 Trace Format now.
3920
c5867ab6
HZ
3921 ** The new command -dprintf-insert sets a dynamic printf breakpoint.
3922
c898adb7
YQ
3923 ** The command -data-list-register-values now accepts an optional
3924 "--skip-unavailable" option. When used, only the available registers
3925 are displayed.
3926
dc673c81
YQ
3927 ** The new command -trace-frame-collected dumps collected variables,
3928 computed expressions, tvars, memory and registers in a traceframe.
3929
6211c335
YQ
3930 ** The commands -stack-list-locals, -stack-list-arguments and
3931 -stack-list-variables now accept an option "--skip-unavailable".
3932 When used, only the available locals or arguments are displayed.
3933
5713b9b5
JB
3934 ** The -exec-run command now accepts an optional "--start" option.
3935 When used, the command follows the same semantics as the "start"
3936 command, stopping the program's execution at the start of its
72bfa06c
JB
3937 main subprogram. Support for this feature can be verified using
3938 the "-list-features" command, which should contain
3939 "exec-run-start-option".
5713b9b5 3940
40555925
JB
3941 ** The new commands -catch-assert and -catch-exceptions insert
3942 catchpoints stopping the program when Ada exceptions are raised.
3943
58d06528
JB
3944 ** The new command -info-ada-exceptions provides the equivalent of
3945 the new "info exceptions" command.
3946
0201faac
JB
3947* New system-wide configuration scripts
3948 A GDB installation now provides scripts suitable for use as system-wide
3949 configuration scripts for the following systems:
3950 ** ElinOS
3951 ** Wind River Linux
3952
c1e36e3e
PA
3953* GDB now supports target-assigned range stepping with remote targets.
3954 This improves the performance of stepping source lines by reducing
3955 the number of control packets from/to GDB. See "New remote packets"
3956 below.
3957
28a93511
YQ
3958* GDB now understands the element 'tvar' in the XML traceframe info.
3959 It has the id of the collected trace state variables.
3960
4ac33720
UW
3961* On S/390 targets that provide the transactional-execution feature,
3962 the program interruption transaction diagnostic block (TDB) is now
3963 represented as a number of additional "registers" in GDB.
3964
c1e36e3e
PA
3965* New remote packets
3966
3967vCont;r
3968
3969 The vCont packet supports a new 'r' action, that tells the remote
3970 stub to step through an address range itself, without GDB
3971 involvemement at each single-step.
3972
7f91dbec
GB
3973qXfer:libraries-svr4:read's annex
3974 The previously unused annex of the qXfer:libraries-svr4:read packet
3975 is now used to support passing an argument list. The remote stub
3976 reports support for this argument list to GDB's qSupported query.
3977 The defined arguments are "start" and "prev", used to reduce work
3978 necessary for library list updating, resulting in significant
3979 speedup.
3980
c2d6af84
PA
3981* New features in the GDB remote stub, GDBserver
3982
3983 ** GDBserver now supports target-assisted range stepping. Currently
3984 enabled on x86/x86_64 GNU/Linux targets.
3985
28a93511
YQ
3986 ** GDBserver now adds element 'tvar' in the XML in the reply to
3987 'qXfer:traceframe-info:read'. It has the id of the collected
3988 trace state variables.
3989
7a60ad40
YQ
3990 ** GDBserver now supports hardware watchpoints on the MIPS GNU/Linux
3991 target.
3992
6fbe845e
AB
3993* New 'z' formatter for printing and examining memory, this displays the
3994 value as hexadecimal zero padded on the left to the size of the type.
3995
9058cc3a
TG
3996* GDB can now use Windows x64 unwinding data.
3997
0d12017b
JB
3998* The "set remotebaud" command has been replaced by "set serial baud".
3999 Similarly, "show remotebaud" has been replaced by "show serial baud".
4000 The "set remotebaud" and "show remotebaud" commands are still available
4001 to provide backward compatibility with older versions of GDB.
4002
2d450646 4003*** Changes in GDB 7.6
80c8d323 4004
59ea5688
MM
4005* Target record has been renamed to record-full.
4006 Record/replay is now enabled with the "record full" command.
4007 This also affects settings that are associated with full record/replay
4008 that have been moved from "set/show record" to "set/show record full":
4009
4010set|show record full insn-number-max
4011set|show record full stop-at-limit
4012set|show record full memory-query
4013
4014* A new record target "record-btrace" has been added. The new target
4015 uses hardware support to record the control-flow of a process. It
4016 does not support replaying the execution, but it implements the
4017 below new commands for investigating the recorded execution log.
4018 This new recording method can be enabled using:
4019
4020record btrace
4021
4022 The "record-btrace" target is only available on Intel Atom processors
4023 and requires a Linux kernel 2.6.32 or later.
4024
4025* Two new commands have been added for record/replay to give information
4026 about the recorded execution without having to replay the execution.
4027 The commands are only supported by "record btrace".
4028
4029record instruction-history prints the execution history at
4030 instruction granularity
4031
4032record function-call-history prints the execution history at
4033 function granularity
4034
543bf33d
AT
4035* New native configurations
4036
51d66578 4037ARM AArch64 GNU/Linux aarch64*-*-linux-gnu
543bf33d 4038FreeBSD/powerpc powerpc*-*-freebsd
4f4352f7 4039x86_64/Cygwin x86_64-*-cygwin*
ea5f3910 4040Tilera TILE-Gx GNU/Linux tilegx*-*-linux-gnu
543bf33d 4041
249729c4
JB
4042* New targets
4043
51d66578
MS
4044ARM AArch64 aarch64*-*-elf
4045ARM AArch64 GNU/Linux aarch64*-*-linux
249729c4 4046Lynx 178 PowerPC powerpc-*-lynx*178
3c095f49 4047x86_64/Cygwin x86_64-*-cygwin*
ea5f3910 4048Tilera TILE-Gx GNU/Linux tilegx*-*-linux
249729c4 4049
e64e0392
DE
4050* If the configured location of system.gdbinit file (as given by the
4051 --with-system-gdbinit option at configure time) is in the
4052 data-directory (as specified by --with-gdb-datadir at configure
4053 time) or in one of its subdirectories, then GDB will look for the
4054 system-wide init file in the directory specified by the
4055 --data-directory command-line option.
4056
07540c15
DE
4057* New command line options:
4058
4059-nh Disables auto-loading of ~/.gdbinit, but still executes all the
4060 other initialization files, unlike -nx which disables all of them.
4061
e93a8774
TT
4062* Removed command line options
4063
4064-epoch This was used by the gdb mode in Epoch, an ancient fork of
4065 Emacs.
4066
53342f27
TT
4067* The 'ptype' and 'whatis' commands now accept an argument to control
4068 type formatting.
4069
451b7c33
TT
4070* 'info proc' now works on some core files.
4071
a72c3253
DE
4072* Python scripting
4073
4074 ** Vectors can be created with gdb.Type.vector.
4075
d7de8e3c
TT
4076 ** Python's atexit.register now works in GDB.
4077
18a9fc12
TT
4078 ** Types can be pretty-printed via a Python API.
4079
9a27f2c6
PK
4080 ** Python 3 is now supported (in addition to Python 2.4 or later)
4081
bea883fd
SCR
4082 ** New class gdb.Architecture exposes GDB's internal representation
4083 of architecture in the Python API.
4084
4085 ** New method Frame.architecture returns the gdb.Architecture object
4086 corresponding to the frame's architecture.
4087
a72c3253
DE
4088* New Python-based convenience functions:
4089
4090 ** $_memeq(buf1, buf2, length)
4091 ** $_streq(str1, str2)
4092 ** $_strlen(str)
4093 ** $_regex(str, regex)
4094
f3c8a52a
JK
4095* The 'cd' command now defaults to using '~' (the home directory) if not
4096 given an argument.
4097
1605ef26
TT
4098* The C++ ABI now defaults to the GNU v3 ABI. This has been the
4099 default for GCC since November 2000.
4100
504b36fd
YQ
4101* The command 'forward-search' can now be abbreviated as 'fo'.
4102
f2a8bc8a
YQ
4103* The command 'info tracepoints' can now display 'installed on target'
4104 or 'not installed on target' for each non-pending location of tracepoint.
4105
23a80689
JB
4106* New configure options
4107
4108--enable-libmcheck/--disable-libmcheck
4109 By default, development versions are built with -lmcheck on hosts
4110 that support it, in order to help track memory corruption issues.
4111 Release versions, on the other hand, are built without -lmcheck
4112 by default. The --enable-libmcheck/--disable-libmcheck configure
4113 options allow the user to override that default.
393fd4c3
YQ
4114--with-babeltrace/--with-babeltrace-include/--with-babeltrace-lib
4115 This configure option allows the user to build GDB with
4116 libbabeltrace using which GDB can read Common Trace Format data.
23a80689 4117
d6b28940
TT
4118* New commands (for set/show, see "New options" below)
4119
ab04a2af
TT
4120catch signal
4121 Catch signals. This is similar to "handle", but allows commands and
4122 conditions to be attached.
4123
d6b28940
TT
4124maint info bfds
4125 List the BFDs known to GDB.
4126
8315665e
YPK
4127python-interactive [command]
4128pi [command]
4129 Start a Python interactive prompt, or evaluate the optional command
4130 and print the result of expressions.
4131
4132py [command]
4133 "py" is a new alias for "python".
4134
18a9fc12
TT
4135enable type-printer [name]...
4136disable type-printer [name]...
4137 Enable or disable type printers.
4138
aa9259cc
TS
4139* Removed commands
4140
4141 ** For the Renesas Super-H architecture, the "regs" command has been removed
4142 (has been deprecated in GDB 7.5), and "info all-registers" should be used
4143 instead.
4144
53342f27
TT
4145* New options
4146
4147set print type methods (on|off)
4148show print type methods
4149 Control whether method declarations are displayed by "ptype".
4150 The default is to show them.
4151
4152set print type typedefs (on|off)
4153show print type typedefs
4154 Control whether typedef definitions are displayed by "ptype".
4155 The default is to show them.
4156
1b56eb55
JK
4157set filename-display basename|relative|absolute
4158show filename-display
4159 Control the way in which filenames is displayed.
4160 The default is "relative", which preserves previous behavior.
4161
e9f1758d
PA
4162set trace-buffer-size
4163show trace-buffer-size
4164 Request target to change the size of trace buffer.
4165
a46c1e42
PA
4166set remote trace-buffer-size-packet auto|on|off
4167show remote trace-buffer-size-packet
4168 Control the use of the remote protocol `QTBuffer:size' packet.
4169
be9a8770
PA
4170set debug aarch64
4171show debug aarch64
4172 Control display of debugging messages related to ARM AArch64.
4173 The default is off.
4174
4175set debug coff-pe-read
4176show debug coff-pe-read
4177 Control display of debugging messages related to reading of COFF/PE
4178 exported symbols.
4179
4180set debug mach-o
4181show debug mach-o
4182 Control display of debugging messages related to Mach-O symbols
4183 processing.
4184
4185set debug notification
4186show debug notification
4187 Control display of debugging info for async remote notification.
4188
5b9afe8a
YQ
4189* MI changes
4190
4191 ** Command parameter changes are now notified using new async record
4192 "=cmd-param-changed".
201b4506
YQ
4193 ** Trace frame changes caused by command "tfind" are now notified using
4194 new async record "=traceframe-changed".
134a2066
YQ
4195 ** The creation, deletion and modification of trace state variables
4196 are now notified using new async records "=tsv-created",
4197 "=tsv-deleted" and "=tsv-modified".
82a90ccf
YQ
4198 ** The start and stop of process record are now notified using new
4199 async record "=record-started" and "=record-stopped".
8de0566d
YQ
4200 ** Memory changes are now notified using new async record
4201 "=memory-changed".
ed8a1c2d 4202 ** The data-disassemble command response will include a "fullname" field
ec83d211 4203 containing the absolute file name when source has been requested.
62747a60
TT
4204 ** New optional parameter COUNT added to the "-data-write-memory-bytes"
4205 command, to allow pattern filling of memory areas.
3fa7bf06
MG
4206 ** New commands "-catch-load"/"-catch-unload" added for intercepting
4207 library load/unload events.
f2a8bc8a
YQ
4208 ** The response to breakpoint commands and breakpoint async records
4209 includes an "installed" field containing a boolean state about each
4210 non-pending tracepoint location is whether installed on target or not.
f5911ea1
HAQ
4211 ** Output of the "-trace-status" command includes a "trace-file" field
4212 containing the name of the trace file being examined. This field is
4213 optional, and only present when examining a trace file.
ec83d211
JK
4214 ** The "fullname" field is now always present along with the "file" field,
4215 even if the file cannot be found by GDB.
5b9afe8a 4216
608e2dbb
TT
4217* GDB now supports the "mini debuginfo" section, .gnu_debugdata.
4218 You must have the LZMA library available when configuring GDB for this
4219 feature to be enabled. For more information, see:
4220 http://fedoraproject.org/wiki/Features/MiniDebugInfo
4221
f6f899bf
HAQ
4222* New remote packets
4223
4224QTBuffer:size
4225 Set the size of trace buffer. The remote stub reports support for this
4226 packet to gdb's qSupported query.
4227
10782d74
MM
4228Qbtrace:bts
4229 Enable Branch Trace Store (BTS)-based branch tracing for the current
4230 thread. The remote stub reports support for this packet to gdb's
4231 qSupported query.
4232
4233Qbtrace:off
4234 Disable branch tracing for the current thread. The remote stub reports
4235 support for this packet to gdb's qSupported query.
4236
4237qXfer:btrace:read
4238 Read the traced branches for the current thread. The remote stub
4239 reports support for this packet to gdb's qSupported query.
4240
80c8d323 4241*** Changes in GDB 7.5
d6e00af6 4242
1b3371b1
L
4243* GDB now supports x32 ABI. Visit <http://sites.google.com/site/x32abi/>
4244 for more x32 ABI info.
4245
d0e64392
MR
4246* GDB now supports access to MIPS DSP registers on Linux targets.
4247
4cc0665f
MR
4248* GDB now supports debugging microMIPS binaries.
4249
85d4a676
SS
4250* The "info os" command on GNU/Linux can now display information on
4251 several new classes of objects managed by the operating system:
4252 "info os procgroups" lists process groups
4253 "info os files" lists file descriptors
4254 "info os sockets" lists internet-domain sockets
4255 "info os shm" lists shared-memory regions
4256 "info os semaphores" lists semaphores
4257 "info os msg" lists message queues
4258 "info os modules" lists loaded kernel modules
4259
55aa24fb
SDJ
4260* GDB now has support for SDT (Static Defined Tracing) probes. Currently,
4261 the only implemented backend is for SystemTap probes (<sys/sdt.h>). You
4262 can set a breakpoint using the new "-probe, "-pstap" or "-probe-stap"
4263 options and inspect the probe arguments using the new $_probe_arg family
4264 of convenience variables. You can obtain more information about SystemTap
4265 in <http://sourceware.org/systemtap/>.
4266
72508ac0
PO
4267* GDB now supports reversible debugging on ARM, it allows you to
4268 debug basic ARM and THUMB instructions, and provides
4269 record/replay support.
4270
16899756
DE
4271* The option "symbol-reloading" has been deleted as it is no longer used.
4272
4795f398
DE
4273* Python scripting
4274
7d74f244
DE
4275 ** GDB commands implemented in Python can now be put in command class
4276 "gdb.COMMAND_USER".
4277
4795f398
DE
4278 ** The "maint set python print-stack on|off" is now deleted.
4279
50897289
TT
4280 ** A new class, gdb.printing.FlagEnumerationPrinter, can be used to
4281 apply "flag enum"-style pretty-printing to any enum.
4282
64e7d9dd
TT
4283 ** gdb.lookup_symbol can now work when there is no current frame.
4284
4285 ** gdb.Symbol now has a 'line' attribute, holding the line number in
4286 the source at which the symbol was defined.
4287
f0823d2c
TT
4288 ** gdb.Symbol now has the new attribute 'needs_frame' and the new
4289 method 'value'. The former indicates whether the symbol needs a
4290 frame in order to compute its value, and the latter computes the
4291 symbol's value.
4292
7b282c5a
SCR
4293 ** A new method 'referenced_value' on gdb.Value objects which can
4294 dereference pointer as well as C++ reference values.
4295
a20ee7a4
SCR
4296 ** New methods 'global_block' and 'static_block' on gdb.Symtab objects
4297 which return the global and static blocks (as gdb.Block objects),
4298 of the underlying symbol table, respectively.
4299
7efc75aa
SCR
4300 ** New function gdb.find_pc_line which returns the gdb.Symtab_and_line
4301 object associated with a PC value.
4302
ee0bf529
SCR
4303 ** gdb.Symtab_and_line has new attribute 'last' which holds the end
4304 of the address range occupied by code for the current source line.
4305
a766d390
DE
4306* Go language support.
4307 GDB now supports debugging programs written in the Go programming
4308 language.
4309
e0f9f062
DE
4310* GDBserver now supports stdio connections.
4311 E.g. (gdb) target remote | ssh myhost gdbserver - hello
4312
217bff3e
JK
4313* The binary "gdbtui" can no longer be built or installed.
4314 Use "gdb -tui" instead.
4315
cafec441
TT
4316* GDB will now print "flag" enums specially. A flag enum is one where
4317 all the enumerator values have no bits in common when pairwise
4318 "and"ed. When printing a value whose type is a flag enum, GDB will
4319 show all the constants, e.g., for enum E { ONE = 1, TWO = 2}:
4320 (gdb) print (enum E) 3
4321 $1 = (ONE | TWO)
4322
4aac40c8
TT
4323* The filename part of a linespec will now match trailing components
4324 of a source file name. For example, "break gcc/expr.c:1000" will
4325 now set a breakpoint in build/gcc/expr.c, but not
4326 build/libcpp/expr.c.
4327
d99bd577
UW
4328* The "info proc" and "generate-core-file" commands will now also
4329 work on remote targets connected to GDBserver on Linux.
4330
53fe1783
GB
4331* The command "info catch" has been removed. It has been disabled
4332 since December 2007.
4333
e41eec66
JB
4334* The "catch exception" and "catch assert" commands now accept
4335 a condition at the end of the command, much like the "break"
4336 command does. For instance:
4337
4338 (gdb) catch exception Constraint_Error if Barrier = True
4339
4340 Previously, it was possible to add a condition to such catchpoints,
4341 but it had to be done as a second step, after the catchpoint had been
4342 created, using the "condition" command.
4343
5808517f
YQ
4344* The "info static-tracepoint-marker" command will now also work on
4345 native Linux targets with in-process agent.
4346
481860b3
GB
4347* GDB can now set breakpoints on inlined functions.
4348
4349* The .gdb_index section has been updated to include symbols for
4350 inlined functions. GDB will ignore older .gdb_index sections by
4351 default, which could cause symbol files to be loaded more slowly
e615022a
DE
4352 until their .gdb_index sections can be recreated. The new command
4353 "set use-deprecated-index-sections on" will cause GDB to use any older
4354 .gdb_index sections it finds. This will restore performance, but the
4355 ability to set breakpoints on inlined functions will be lost in symbol
4356 files with older .gdb_index sections.
481860b3 4357
156942c7
DE
4358 The .gdb_index section has also been updated to record more information
4359 about each symbol. This speeds up the "info variables", "info functions"
4360 and "info types" commands when used with programs having the .gdb_index
4361 section, as well as speeding up debugging with shared libraries using
4362 the .gdb_index section.
4363
927fbba6
JB
4364* Ada support for GDB/MI Variable Objects has been added.
4365
20388dd6
YQ
4366* GDB can now support 'breakpoint always-inserted mode' in 'record'
4367 target.
4368
f3e0e960
SS
4369* MI changes
4370
4371 ** New command -info-os is the MI equivalent of "info os".
4372
37ce89eb
SS
4373 ** Output logs ("set logging" and related) now include MI output.
4374
edcc5120
TT
4375* New commands
4376
e615022a
DE
4377 ** "set use-deprecated-index-sections on|off"
4378 "show use-deprecated-index-sections on|off"
4379 Controls the use of deprecated .gdb_index sections.
4380
edcc5120
TT
4381 ** "catch load" and "catch unload" can be used to stop when a shared
4382 library is loaded or unloaded, respectively.
4383
816338b5
SS
4384 ** "enable count" can be used to auto-disable a breakpoint after
4385 several hits.
4386
57651221 4387 ** "info vtbl" can be used to show the virtual method tables for
c4aeac85
TT
4388 C++ and Java objects.
4389
06fc020f 4390 ** "explore" and its sub commands "explore value" and "explore type"
6ea71545 4391 can be used to recursively explore values and types of
06fc020f
SCR
4392 expressions. These commands are available only if GDB is
4393 configured with '--with-python'.
4394
bf88dd68
JK
4395 ** "info auto-load" shows status of all kinds of auto-loaded files,
4396 "info auto-load gdb-scripts" shows status of auto-loading GDB canned
4397 sequences of commands files, "info auto-load python-scripts"
4398 shows status of auto-loading Python script files,
4399 "info auto-load local-gdbinit" shows status of loading init file
4400 (.gdbinit) from current directory and "info auto-load libthread-db" shows
4401 status of inferior specific thread debugging shared library loading.
4402
4403 ** "info auto-load-scripts", "set auto-load-scripts on|off"
4404 and "show auto-load-scripts" commands have been deprecated, use their
4405 "info auto-load python-scripts", "set auto-load python-scripts on|off"
4406 and "show auto-load python-scripts" counterparts instead.
4407
e7e0cddf
SS
4408 ** "dprintf location,format,args..." creates a dynamic printf, which
4409 is basically a breakpoint that does a printf and immediately
4410 resumes your program's execution, so it is like a printf that you
4411 can insert dynamically at runtime instead of at compiletime.
4412
9cb709b6
TT
4413 ** "set print symbol"
4414 "show print symbol"
4415 Controls whether GDB attempts to display the symbol, if any,
4416 corresponding to addresses it prints. This defaults to "on", but
4417 you can set it to "off" to restore GDB's previous behavior.
4418
2d4c29c5
TS
4419* Deprecated commands
4420
4421 ** For the Renesas Super-H architecture, the "regs" command has been
4422 deprecated, and "info all-registers" should be used instead.
4423
a58b110a
KB
4424* New targets
4425
4426Renesas RL78 rl78-*-elf
60c9a3c0 4427HP OpenVMS ia64 ia64-hp-openvms*
a58b110a 4428
72895ff6
LM
4429* GDBserver supports evaluation of breakpoint conditions. When
4430 support is advertised by GDBserver, GDB may be told to send the
4431 breakpoint conditions in bytecode form to GDBserver. GDBserver
4432 will only report the breakpoint trigger to GDB when its condition
4433 evaluates to true.
4434
4435* New options
4436
4cc0665f
MR
4437set mips compression
4438show mips compression
4439 Select the compressed ISA encoding used in functions that have no symbol
4440 information available. The encoding can be set to either of:
4441 mips16
4442 micromips
4443 and is updated automatically from ELF file flags if available.
4444
72895ff6
LM
4445set breakpoint condition-evaluation
4446show breakpoint condition-evaluation
cf65ecd3 4447 Control whether breakpoint conditions are evaluated by GDB ("host") or by
5b43fab2
JK
4448 GDBserver ("target"). Default option "auto" chooses the most efficient
4449 available mode.
72895ff6
LM
4450 This option can improve debugger efficiency depending on the speed of the
4451 target.
4452
bf88dd68
JK
4453set auto-load off
4454 Disable auto-loading globally.
4455
4456show auto-load
4457 Show auto-loading setting of all kinds of auto-loaded files.
4458
4459set auto-load gdb-scripts on|off
4460show auto-load gdb-scripts
4461 Control auto-loading of GDB canned sequences of commands files.
4462
4463set auto-load python-scripts on|off
4464show auto-load python-scripts
4465 Control auto-loading of Python script files.
4466
4467set auto-load local-gdbinit on|off
4468show auto-load local-gdbinit
4469 Control loading of init file (.gdbinit) from current directory.
4470
4471set auto-load libthread-db on|off
4472show auto-load libthread-db
4473 Control auto-loading of inferior specific thread debugging shared library.
4474
7349ff92 4475set auto-load scripts-directory <dir1>[:<dir2>...]
9cc815f5 4476show auto-load scripts-directory
7349ff92
JK
4477 Set a list of directories from which to load auto-loaded scripts.
4478 Automatically loaded Python scripts and GDB scripts are located in one
4479 of the directories listed by this option.
4480 The delimiter (':' above) may differ according to the host platform.
4481
bccbefd2
JK
4482set auto-load safe-path <dir1>[:<dir2>...]
4483show auto-load safe-path
4484 Set a list of directories from which it is safe to auto-load files.
4485 The delimiter (':' above) may differ according to the host platform.
4486
4dc84fd1
JK
4487set debug auto-load on|off
4488show debug auto-load
4489 Control display of debugging info for auto-loading the files above.
4490
d3ce09f5 4491set dprintf-style gdb|call|agent
e7e0cddf 4492show dprintf-style
d3ce09f5
SS
4493 Control the way in which a dynamic printf is performed; "gdb"
4494 requests a GDB printf command, while "call" causes dprintf to call a
4495 function in the inferior. "agent" requests that the target agent
4496 (such as GDBserver) do the printing.
e7e0cddf
SS
4497
4498set dprintf-function <expr>
4499show dprintf-function
4500set dprintf-channel <expr>
4501show dprintf-channel
4502 Set the function and optional first argument to the call when using
4503 the "call" style of dynamic printf.
4504
d3ce09f5
SS
4505set disconnected-dprintf on|off
4506show disconnected-dprintf
4507 Control whether agent-style dynamic printfs continue to be in effect
4508 after GDB disconnects.
4509
6dea1fbd
JK
4510* New configure options
4511
7349ff92
JK
4512--with-auto-load-dir
4513 Configure default value for the 'set auto-load scripts-directory'
1564a261
JK
4514 setting above. It defaults to '$debugdir:$datadir/auto-load',
4515 $debugdir representing global debugging info directories (available
4516 via 'show debug-file-directory') and $datadir representing GDB's data
4517 directory (available via 'show data-directory').
7349ff92 4518
6dea1fbd
JK
4519--with-auto-load-safe-path
4520 Configure default value for the 'set auto-load safe-path' setting
7349ff92 4521 above. It defaults to the --with-auto-load-dir setting.
6dea1fbd
JK
4522
4523--without-auto-load-safe-path
4524 Set 'set auto-load safe-path' to '/', effectively disabling this
4525 security feature.
4526
72895ff6
LM
4527* New remote packets
4528
74c48cbb
PA
4529z0/z1 conditional breakpoints extension
4530
72895ff6
LM
4531 The z0/z1 breakpoint insertion packets have been extended to carry
4532 a list of conditional expressions over to the remote stub depending on the
4533 condition evaluation mode. The use of this extension can be controlled
4534 via the "set remote conditional-breakpoints-packet" command.
4535
9b224c5e
PA
4536QProgramSignals:
4537
4538 Specify the signals which the remote stub may pass to the debugged
4539 program without GDB involvement.
4540
8320cc4f
JK
4541* New command line options
4542
4543--init-command=FILE, -ix Like --command, -x but execute it
4544 before loading inferior.
4545--init-eval-command=COMMAND, -iex Like --eval-command=COMMAND, -ex but
4546 execute it before loading inferior.
4547
8837a20f
JB
4548*** Changes in GDB 7.4
4549
f8eba3c6
TT
4550* GDB now handles ambiguous linespecs more consistently; the existing
4551 FILE:LINE support has been expanded to other types of linespecs. A
4552 breakpoint will now be set on all matching locations in all
4553 inferiors, and locations will be added or removed according to
4554 inferior changes.
4555
1bfeeb0f
JL
4556* GDB now allows you to skip uninteresting functions and files when
4557 stepping with the "skip function" and "skip file" commands.
4558
480a3f21
PW
4559* GDB has two new commands: "set remote hardware-watchpoint-length-limit"
4560 and "show remote hardware-watchpoint-length-limit". These allows to
4561 set or show the maximum length limit (in bytes) of a remote
4562 target hardware watchpoint.
4563
4564 This allows e.g. to use "unlimited" hardware watchpoints with the
4565 gdbserver integrated in Valgrind version >= 3.7.0. Such Valgrind
4566 watchpoints are slower than real hardware watchpoints but are
4567 significantly faster than gdb software watchpoints.
4568
3a7bf607
PM
4569* Python scripting
4570
32d1c362 4571 ** The register_pretty_printer function in module gdb.printing now takes
7d0aff21 4572 an optional `replace' argument. If True, the new printer replaces any
32d1c362
DE
4573 existing one.
4574
3a7bf607 4575 ** The "maint set python print-stack on|off" command has been
4795f398
DE
4576 deprecated and will be deleted in GDB 7.5.
4577 A new command: "set python print-stack none|full|message" has
4578 replaced it. Additionally, the default for "print-stack" is
4579 now "message", which just prints the error message without
4580 the stack trace.
3a7bf607 4581
baacfb07 4582 ** A prompt substitution hook (prompt_hook) is now available to the
3a7bf607 4583 Python API.
713389e0 4584
fa3a4f15
PM
4585 ** A new Python module, gdb.prompt has been added to the GDB Python
4586 modules library. This module provides functionality for
baacfb07 4587 escape sequences in prompts (used by set/show
fa3a4f15
PM
4588 extended-prompt). These escape sequences are replaced by their
4589 corresponding value.
4590
5e239b84
PM
4591 ** Python commands and convenience-functions located in
4592 'data-directory'/python/gdb/command and
4593 'data-directory'/python/gdb/function are now automatically loaded
4594 on GDB start-up.
4595
9df2fbc4
PM
4596 ** Blocks now provide four new attributes. global_block and
4597 static_block will return the global and static blocks
4598 respectively. is_static and is_global are boolean attributes
4599 that indicate if the block is one of those two types.
4600
457e09f0
DE
4601 ** Symbols now provide the "type" attribute, the type of the symbol.
4602
6839b47f
KP
4603 ** The "gdb.breakpoint" function has been deprecated in favor of
4604 "gdb.breakpoints".
4605
cc72b2a2
KP
4606 ** A new class "gdb.FinishBreakpoint" is provided to catch the return
4607 of a function. This class is based on the "finish" command
4608 available in the CLI.
4609
84ad80e6
PK
4610 ** Type objects for struct and union types now allow access to
4611 the fields using standard Python dictionary (mapping) methods.
4612 For example, "some_type['myfield']" now works, as does
4613 "some_type.items()".
4614
20c168b5
KP
4615 ** A new event "gdb.new_objfile" has been added, triggered by loading a
4616 new object file.
4617
03c3051a
PK
4618 ** A new function, "deep_items" has been added to the gdb.types
4619 module in the GDB Python modules library. This function returns
4620 an iterator over the fields of a struct or union type. Unlike
4621 the standard Python "iteritems" method, it will recursively traverse
4622 any anonymous fields.
4623
7376e450
TT
4624* MI changes
4625
4626 ** "*stopped" events can report several new "reason"s, such as
4627 "solib-event".
4628
4629 ** Breakpoint changes are now notified using new async records, like
4630 "=breakpoint-modified".
4631
4632 ** New command -ada-task-info.
4633
98a5dd13
DE
4634* libthread-db-search-path now supports two special values: $sdir and $pdir.
4635 $sdir specifies the default system locations of shared libraries.
4636 $pdir specifies the directory where the libpthread used by the application
4637 lives.
4638
4639 GDB no longer looks in $sdir and $pdir after it has searched the directories
4640 mentioned in libthread-db-search-path. If you want to search those
4641 directories, they must be specified in libthread-db-search-path.
4642 The default value of libthread-db-search-path on GNU/Linux and Solaris
4643 systems is now "$sdir:$pdir".
4644
4645 $pdir is not supported by gdbserver, it is currently ignored.
4646 $sdir is supported by gdbserver.
4647
478aac75
DE
4648* New configure option --with-iconv-bin.
4649 When using the internationalization support like the one in the GNU C
4650 library, GDB will invoke the "iconv" program to get a list of supported
4651 character sets. If this program lives in a non-standard location, one can
4652 use this option to specify where to find it.
4653
9c06b0b4
TJB
4654* When natively debugging programs on PowerPC BookE processors running
4655 a Linux kernel version 2.6.34 or later, GDB supports masked hardware
4656 watchpoints, which specify a mask in addition to an address to watch.
4657 The mask specifies that some bits of an address (the bits which are
4658 reset in the mask) should be ignored when matching the address accessed
4659 by the inferior against the watchpoint address. See the "PowerPC Embedded"
4660 section in the user manual for more details.
4661
03f2bd59
JK
4662* The new option --once causes GDBserver to stop listening for connections once
4663 the first connection is made. The listening port used by GDBserver will
4664 become available after that.
4665
71eba9c2 4666* New commands "info macros" and "alias" have been added.
edc84990 4667
2bda9cc5
JK
4668* New function parameters suffix @entry specifies value of function parameter
4669 at the time the function got called. Entry values are available only since
4670 gcc version 4.7.
4671
ed59ded5
DE
4672* New commands
4673
4674!SHELL COMMAND
4675 "!" is now an alias of the "shell" command.
4676 Note that no space is needed between "!" and SHELL COMMAND.
4677
9c06b0b4
TJB
4678* Changed commands
4679
4680watch EXPRESSION mask MASK_VALUE
4681 The watch command now supports the mask argument which allows creation
4682 of masked watchpoints, if the current architecture supports this feature.
4683
dbaefcf7
DE
4684info auto-load-scripts [REGEXP]
4685 This command was formerly named "maintenance print section-scripts".
4686 It is now generally useful and is no longer a maintenance-only command.
4687
71eba9c2 4688info macro [-all] [--] MACRO
4689 The info macro command has new options `-all' and `--'. The first for
4690 printing all definitions of a macro. The second for explicitly specifying
4691 the end of arguments and the beginning of the macro name in case the macro
4692 name starts with a hyphen.
4693
3065dfb6
SS
4694collect[/s] EXPRESSIONS
4695 The tracepoint collect command now takes an optional modifier "/s"
4696 that directs it to dereference pointer-to-character types and
4697 collect the bytes of memory up to a zero byte. The behavior is
4698 similar to what you see when you use the regular print command on a
4699 string. An optional integer following the "/s" sets a bound on the
4700 number of bytes that will be collected.
4701
f196051f
SS
4702tstart [NOTES]
4703 The trace start command now interprets any supplied arguments as a
4704 note to be recorded with the trace run, with an effect similar to
4705 setting the variable trace-notes.
4706
4707tstop [NOTES]
4708 The trace stop command now interprets any arguments as a note to be
4709 mentioned along with the tstatus report that the trace was stopped
4710 with a command. The effect is similar to setting the variable
4711 trace-stop-notes.
4712
d248b706
KY
4713* Tracepoints can now be enabled and disabled at any time after a trace
4714 experiment has been started using the standard "enable" and "disable"
4715 commands. It is now possible to start a trace experiment with no enabled
4716 tracepoints; GDB will display a warning, but will allow the experiment to
4717 begin, assuming that tracepoints will be enabled as needed while the trace
4718 is running.
4719
405f8e94
SS
4720* Fast tracepoints on 32-bit x86-architectures can now be placed at
4721 locations with 4-byte instructions, when they were previously
4722 limited to locations with instructions of 5 bytes or longer.
4723
2bda9cc5
JK
4724* New options
4725
45cfd468
DE
4726set debug dwarf2-read
4727show debug dwarf2-read
4728 Turns on or off display of debugging messages related to reading
4729 DWARF debug info. The default is off.
4730
4731set debug symtab-create
4732show debug symtab-create
4733 Turns on or off display of debugging messages related to symbol table
4734 creation. The default is off.
4735
baacfb07
PM
4736set extended-prompt
4737show extended-prompt
4738 Set the GDB prompt, and allow escape sequences to be inserted to
4739 display miscellaneous information (see 'help set extended-prompt'
4740 for the list of sequences). This prompt (and any information
4741 accessed through the escape sequences) is updated every time the
4742 prompt is displayed.
4743
2bda9cc5
JK
4744set print entry-values (both|compact|default|if-needed|no|only|preferred)
4745show print entry-values
4746 Set printing of frame argument values at function entry. In some cases
4747 GDB can determine the value of function argument which was passed by the
4748 function caller, even if the value was modified inside the called function.
4749
4750set debug entry-values
4751show debug entry-values
4752 Control display of debugging info for determining frame argument values at
4753 function entry and virtual tail call frames.
4754
c011a4f4
DE
4755set basenames-may-differ
4756show basenames-may-differ
4757 Set whether a source file may have multiple base names.
4758 (A "base name" is the name of a file with the directory part removed.
4759 Example: The base name of "/home/user/hello.c" is "hello.c".)
4760 If set, GDB will canonicalize file names (e.g., expand symlinks)
4761 before comparing them. Canonicalization is an expensive operation,
4762 but it allows the same file be known by more than one base name.
4763 If not set (the default), all source files are assumed to have just
4764 one base name, and gdb will do file name comparisons more efficiently.
4765
f196051f
SS
4766set trace-user
4767show trace-user
4768set trace-notes
4769show trace-notes
4770 Set a user name and notes for the current and any future trace runs.
4771 This is useful for long-running and/or disconnected traces, to
4772 inform others (or yourself) as to who is running the trace, supply
4773 contact information, or otherwise explain what is going on.
4774
4775set trace-stop-notes
4776show trace-stop-notes
4777 Set a note attached to the trace run, that is displayed when the
4778 trace has been stopped by a tstop command. This is useful for
4779 instance as an explanation, if you are stopping a trace run that was
4780 started by someone else.
4781
d248b706
KY
4782* New remote packets
4783
4784QTEnable
4785
4786 Dynamically enable a tracepoint in a started trace experiment.
4787
4788QTDisable
4789
4790 Dynamically disable a tracepoint in a started trace experiment.
4791
f196051f
SS
4792QTNotes
4793
4794 Set the user and notes of the trace run.
4795
4796qTP
4797
4798 Query the current status of a tracepoint.
4799
405f8e94
SS
4800qTMinFTPILen
4801
4802 Query the minimum length of instruction at which a fast tracepoint may
4803 be placed.
4804
1a532630
PP
4805* Dcache size (number of lines) and line-size are now runtime-configurable
4806 via "set dcache line" and "set dcache line-size" commands.
4807
11315641
YQ
4808* New targets
4809
4810Texas Instruments TMS320C6x tic6x-*-*
4811
87326c78
DD
4812* New Simulators
4813
4814Renesas RL78 rl78-*-elf
4815
e8d56f18
JB
4816*** Changes in GDB 7.3.1
4817
4818* The build failure for NetBSD and OpenBSD targets have now been fixed.
4819
d6e00af6 4820*** Changes in GDB 7.3
797054e6 4821
60f98dde
MS
4822* GDB has a new command: "thread find [REGEXP]".
4823 It finds the thread id whose name, target id, or thread extra info
4824 matches the given regular expression.
4825
eee5b35e
DD
4826* The "catch syscall" command now works on mips*-linux* targets.
4827
b716877b
AB
4828* The -data-disassemble MI command now supports modes 2 and 3 for
4829 dumping the instruction opcodes.
4830
aae1c79a
DE
4831* New command line options
4832
4833-data-directory DIR Specify DIR as the "data-directory".
4834 This is mostly for testing purposes.
4835
a86caf66
DE
4836* The "maint set python auto-load on|off" command has been renamed to
4837 "set auto-load-scripts on|off".
4838
99e7ae30
DE
4839* GDB has a new command: "set directories".
4840 It is like the "dir" command except that it replaces the
4841 source path list instead of augmenting it.
4842
4694da01
TT
4843* GDB now understands thread names.
4844
4845 On GNU/Linux, "info threads" will display the thread name as set by
4846 prctl or pthread_setname_np.
4847
4848 There is also a new command, "thread name", which can be used to
4849 assign a name internally for GDB to display.
4850
f4b8a18d
KW
4851* OpenCL C
4852 Initial support for the OpenCL C language (http://www.khronos.org/opencl)
4853 has been integrated into GDB.
4854
585d1eb8
PM
4855* Python scripting
4856
da5d4055
PM
4857 ** The function gdb.Write now accepts an optional keyword 'stream'.
4858 This keyword, when provided, will direct the output to either
4859 stdout, stderr, or GDB's logging output.
4860
9a6f1302
PM
4861 ** Parameters can now be be sub-classed in Python, and in particular
4862 you may implement the get_set_doc and get_show_doc functions.
4863 This improves how Parameter set/show documentation is processed
4864 and allows for more dynamic content.
4865
29703da4
PM
4866 ** Symbols, Symbol Table, Symbol Table and Line, Object Files,
4867 Inferior, Inferior Thread, Blocks, and Block Iterator APIs now
4868 have an is_valid method.
4869
350c6c65
PM
4870 ** Breakpoints can now be sub-classed in Python, and in particular
4871 you may implement a 'stop' function that is executed each time
4872 the inferior reaches that breakpoint.
4873
6e6fbe60
DE
4874 ** New function gdb.lookup_global_symbol looks up a global symbol.
4875
585d1eb8
PM
4876 ** GDB values in Python are now callable if the value represents a
4877 function. For example, if 'some_value' represents a function that
4878 takes two integer parameters and returns a value, you can call
4879 that function like so:
4880
4881 result = some_value (10,20)
4882
0e3509db
DE
4883 ** Module gdb.types has been added.
4884 It contains a collection of utilities for working with gdb.Types objects:
4885 get_basic_type, has_field, make_enum_dict.
4886
7b51bc51
DE
4887 ** Module gdb.printing has been added.
4888 It contains utilities for writing and registering pretty-printers.
4889 New classes: PrettyPrinter, SubPrettyPrinter,
4890 RegexpCollectionPrettyPrinter.
4891 New function: register_pretty_printer.
4892
4893 ** New commands "info pretty-printers", "enable pretty-printer" and
4894 "disable pretty-printer" have been added.
4895
99e7ae30
DE
4896 ** gdb.parameter("directories") is now available.
4897
d8e22779
TT
4898 ** New function gdb.newest_frame returns the newest frame in the
4899 selected thread.
4900
4694da01
TT
4901 ** The gdb.InferiorThread class has a new "name" attribute. This
4902 holds the thread's name.
4903
505500db
SW
4904 ** Python Support for Inferior events.
4905 Python scripts can add observers to be notified of events
824446ad 4906 occurring in the process being debugged.
c17a9e46
HZ
4907 The following events are currently supported:
4908 - gdb.events.cont Continue event.
4909 - gdb.events.exited Inferior exited event.
4910 - gdb.events.stop Signal received, and Breakpoint hit events.
4911
def98928
TT
4912* C++ Improvements:
4913
4914 ** GDB now puts template parameters in scope when debugging in an
4915 instantiation. For example, if you have:
4916
4917 template<int X> int func (void) { return X; }
4918
4919 then if you step into func<5>, "print X" will show "5". This
4920 feature requires proper debuginfo support from the compiler; it
4921 was added to GCC 4.5.
4922
66cb8159
TT
4923 ** The motion commands "next", "finish", "until", and "advance" now
4924 work better when exceptions are thrown. In particular, GDB will
4925 no longer lose control of the inferior; instead, the GDB will
4926 stop the inferior at the point at which the exception is caught.
4927 This functionality requires a change in the exception handling
4928 code that was introduced in GCC 4.5.
4929
4aac0db7
UW
4930* GDB now follows GCC's rules on accessing volatile objects when
4931 reading or writing target state during expression evaluation.
4932 One notable difference to prior behavior is that "print x = 0"
4933 no longer generates a read of x; the value of the assignment is
4934 now always taken directly from the value being assigned.
4935
283e6a52
TT
4936* GDB now has some support for using labels in the program's source in
4937 linespecs. For instance, you can use "advance label" to continue
4938 execution to a label.
4939
4940* GDB now has support for reading and writing a new .gdb_index
4941 section. This section holds a fast index of DWARF debugging
4942 information and can be used to greatly speed up GDB startup and
4943 operation. See the documentation for `save gdb-index' for details.
4944
b56df873 4945* The "watch" command now accepts an optional "-location" argument.
14c0d4e1 4946 When used, this causes GDB to watch the memory referred to by the
b56df873
TT
4947 expression. Such a watchpoint is never deleted due to it going out
4948 of scope.
4949
ae53ffa4
PA
4950* GDB now supports thread debugging of core dumps on GNU/Linux.
4951
4952 GDB now activates thread debugging using the libthread_db library
4953 when debugging GNU/Linux core dumps, similarly to when debugging
4954 live processes. As a result, when debugging a core dump file, GDB
4955 is now able to display pthread_t ids of threads. For example, "info
4956 threads" shows the same output as when debugging the process when it
4957 was live. In earlier releases, you'd see something like this:
4958
4959 (gdb) info threads
4960 * 1 LWP 6780 main () at main.c:10
4961
4962 While now you see this:
4963
4964 (gdb) info threads
4965 * 1 Thread 0x7f0f5712a700 (LWP 6780) main () at main.c:10
4966
4967 It is also now possible to inspect TLS variables when debugging core
4968 dumps.
4969
4970 When debugging a core dump generated on a machine other than the one
4971 used to run GDB, you may need to point GDB at the correct
4972 libthread_db library with the "set libthread-db-search-path"
4973 command. See the user manual for more details on this command.
4974
f1310107
TJB
4975* When natively debugging programs on PowerPC BookE processors running
4976 a Linux kernel version 2.6.34 or later, GDB supports ranged breakpoints,
4977 which stop execution of the inferior whenever it executes an instruction
4978 at any address within the specified range. See the "PowerPC Embedded"
4979 section in the user manual for more details.
4980
248c9dbc
JB
4981* New features in the GDB remote stub, GDBserver
4982
1aee7009
JB
4983 ** GDBserver is now supported on PowerPC LynxOS (versions 4.x and 5.x),
4984 and i686 LynxOS (version 5.x).
248c9dbc 4985
eb826dc6
MF
4986 ** GDBserver is now supported on Blackfin Linux.
4987
44603653
JB
4988* New native configurations
4989
4990ia64 HP-UX ia64-*-hpux*
4991
91021223
MF
4992* New targets:
4993
4994Analog Devices, Inc. Blackfin Processor bfin-*
4995
6e1bb179
JB
4996* Ada task switching is now supported on sparc-elf targets when
4997 debugging a program using the Ravenscar Profile. For more information,
4998 see the "Tasking Support when using the Ravenscar Profile" section
4999 in the GDB user manual.
5000
50c97f38
TT
5001* Guile support was removed.
5002
448a92bf
MF
5003* New features in the GNU simulator
5004
5005 ** The --map-info flag lists all known core mappings.
5006
66ee2731
MF
5007 ** CFI flashes may be simulated via the "cfi" device.
5008
76b8507d 5009*** Changes in GDB 7.2
bfbf3774 5010
ba25b921
PA
5011* Shared library support for remote targets by default
5012
5013 When GDB is configured for a generic, non-OS specific target, like
5014 for example, --target=arm-eabi or one of the many *-*-elf targets,
5015 GDB now queries remote stubs for loaded shared libraries using the
5016 `qXfer:libraries:read' packet. Previously, shared library support
5017 was always disabled for such configurations.
5018
4656f5c6
SW
5019* C++ Improvements:
5020
5021 ** Argument Dependent Lookup (ADL)
5022
5023 In C++ ADL lookup directs function search to the namespaces of its
5024 arguments even if the namespace has not been imported.
5025 For example:
5026 namespace A
5027 {
5028 class B { };
5029 void foo (B) { }
5030 }
5031 ...
5032 A::B b
5033 foo(b)
5034 Here the compiler will search for `foo' in the namespace of 'b'
5035 and find A::foo. GDB now supports this. This construct is commonly
5036 used in the Standard Template Library for operators.
5037
5038 ** Improved User Defined Operator Support
5039
5040 In addition to member operators, GDB now supports lookup of operators
5041 defined in a namespace and imported with a `using' directive, operators
5042 defined in the global scope, operators imported implicitly from an
5043 anonymous namespace, and the ADL operators mentioned in the previous
5044 entry.
5045 GDB now also supports proper overload resolution for all the previously
5046 mentioned flavors of operators.
5047
254e6b9e
DE
5048 ** static const class members
5049
5050 Printing of static const class members that are initialized in the
5051 class definition has been fixed.
5052
711e434b
PM
5053* Windows Thread Information Block access.
5054
5055 On Windows targets, GDB now supports displaying the Windows Thread
5056 Information Block (TIB) structure. This structure is visible either
5057 by using the new command `info w32 thread-information-block' or, by
5058 dereferencing the new convenience variable named `$_tlb', a
5059 thread-specific pointer to the TIB. This feature is also supported
5060 when remote debugging using GDBserver.
5061
0fb4aa4b
PA
5062* Static tracepoints
5063
5064 Static tracepoints are calls in the user program into a tracing
5065 library. One such library is a port of the LTTng kernel tracer to
5066 userspace --- UST (LTTng Userspace Tracer, http://lttng.org/ust).
5067 When debugging with GDBserver, GDB now supports combining the GDB
5068 tracepoint machinery with such libraries. For example: the user can
5069 use GDB to probe a static tracepoint marker (a call from the user
5070 program into the tracing library) with the new "strace" command (see
5071 "New commands" below). This creates a "static tracepoint" in the
5072 breakpoint list, that can be manipulated with the same feature set
5073 as fast and regular tracepoints. E.g., collect registers, local and
5074 global variables, collect trace state variables, and define
5075 tracepoint conditions. In addition, the user can collect extra
5076 static tracepoint marker specific data, by collecting the new
5077 $_sdata internal variable. When analyzing the trace buffer, you can
5078 inspect $_sdata like any other variable available to GDB. For more
5079 information, see the "Tracepoints" chapter in GDB user manual. New
5080 remote packets have been defined to support static tracepoints, see
5081 the "New remote packets" section below.
5082
ca11e899
SS
5083* Better reconstruction of tracepoints after disconnected tracing
5084
5085 GDB will attempt to download the original source form of tracepoint
5086 definitions when starting a trace run, and then will upload these
5087 upon reconnection to the target, resulting in a more accurate
5088 reconstruction of the tracepoints that are in use on the target.
5089
5090* Observer mode
5091
5092 You can now exercise direct control over the ways that GDB can
5093 affect your program. For instance, you can disallow the setting of
5094 breakpoints, so that the program can run continuously (assuming
5095 non-stop mode). In addition, the "observer" variable is available
5096 to switch all of the different controls; in observer mode, GDB
5097 cannot affect the target's behavior at all, which is useful for
5098 tasks like diagnosing live systems in the field.
5099
5100* The new convenience variable $_thread holds the number of the
5101 current thread.
5102
711e434b
PM
5103* New remote packets
5104
5105qGetTIBAddr
5106
5107 Return the address of the Windows Thread Information Block of a given thread.
5108
dde08ee1
PA
5109qRelocInsn
5110
5111 In response to several of the tracepoint packets, the target may now
5112 also respond with a number of intermediate `qRelocInsn' request
5113 packets before the final result packet, to have GDB handle
5114 relocating an instruction to execute at a different address. This
5115 is particularly useful for stubs that support fast tracepoints. GDB
5116 reports support for this feature in the qSupported packet.
5117
0fb4aa4b
PA
5118qTfSTM, qTsSTM
5119
5120 List static tracepoint markers in the target program.
5121
5122qTSTMat
5123
5124 List static tracepoint markers at a given address in the target
5125 program.
5126
5127qXfer:statictrace:read
5128
5129 Read the static trace data collected (by a `collect $_sdata'
5130 tracepoint action). The remote stub reports support for this packet
5131 to gdb's qSupported query.
5132
ca11e899
SS
5133QAllow
5134
5135 Send the current settings of GDB's permission flags.
5136
5137QTDPsrc
5138
5139 Send part of the source (textual) form of a tracepoint definition,
5140 which includes location, conditional, and action list.
5141
3f7b2faa
DE
5142* The source command now accepts a -s option to force searching for the
5143 script in the source search path even if the script name specifies
5144 a directory.
5145
d337e9f0
PA
5146* New features in the GDB remote stub, GDBserver
5147
0fb4aa4b
PA
5148 - GDBserver now support tracepoints (including fast tracepoints, and
5149 static tracepoints). The feature is currently supported by the
5150 i386-linux and amd64-linux builds. See the "Tracepoints support
5151 in gdbserver" section in the manual for more information.
5152
5153 GDBserver JIT compiles the tracepoint's conditional agent
5154 expression bytecode into native code whenever possible for low
5155 overhead dynamic tracepoints conditionals. For such tracepoints,
5156 an expression that examines program state is evaluated when the
5157 tracepoint is reached, in order to determine whether to capture
5158 trace data. If the condition is simple and false, processing the
5159 tracepoint finishes very quickly and no data is gathered.
5160
5161 GDBserver interfaces with the UST (LTTng Userspace Tracer) library
5162 for static tracepoints support.
d337e9f0 5163
c24d0242
PM
5164 - GDBserver now supports x86_64 Windows 64-bit debugging.
5165
c8d5aac9
L
5166* GDB now sends xmlRegisters= in qSupported packet to indicate that
5167 it understands register description.
5168
7c953934
TT
5169* The --batch flag now disables pagination and queries.
5170
8685c86f
L
5171* X86 general purpose registers
5172
5173 GDB now supports reading/writing byte, word and double-word x86
5174 general purpose registers directly. This means you can use, say,
5175 $ah or $ax to refer, respectively, to the byte register AH and
5176 16-bit word register AX that are actually portions of the 32-bit
5177 register EAX or 64-bit register RAX.
5178
95a42b64 5179* The `commands' command now accepts a range of breakpoints to modify.
86b17b60
PA
5180 A plain `commands' following a command that creates multiple
5181 breakpoints affects all the breakpoints set by that command. This
5182 applies to breakpoints set by `rbreak', and also applies when a
5183 single `break' command creates multiple breakpoints (e.g.,
5184 breakpoints on overloaded c++ functions).
95a42b64 5185
8bd10a10
CM
5186* The `rbreak' command now accepts a filename specification as part of
5187 its argument, limiting the functions selected by the regex to those
5188 in the specified file.
5189
ab38a727
PA
5190* Support for remote debugging Windows and SymbianOS shared libraries
5191 from Unix hosts has been improved. Non Windows GDB builds now can
5192 understand target reported file names that follow MS-DOS based file
5193 system semantics, such as file names that include drive letters and
5194 use the backslash character as directory separator. This makes it
5195 possible to transparently use the "set sysroot" and "set
5196 solib-search-path" on Unix hosts to point as host copies of the
5197 target's shared libraries. See the new command "set
5198 target-file-system-kind" described below, and the "Commands to
5199 specify files" section in the user manual for more information.
5200
6149aea9
PA
5201* New commands
5202
f1421989
HZ
5203eval template, expressions...
5204 Convert the values of one or more expressions under the control
5205 of the string template to a command line, and call it.
5206
ab38a727
PA
5207set target-file-system-kind unix|dos-based|auto
5208show target-file-system-kind
5209 Set or show the assumed file system kind for target reported file
5210 names.
5211
6149aea9
PA
5212save breakpoints <filename>
5213 Save all current breakpoint definitions to a file suitable for use
5214 in a later debugging session. To read the saved breakpoint
5215 definitions, use the `source' command.
5216
5217`save tracepoints' is a new alias for `save-tracepoints'. The latter
5218is now deprecated.
5219
0fb4aa4b
PA
5220info static-tracepoint-markers
5221 Display information about static tracepoint markers in the target.
5222
5223strace FN | FILE:LINE | *ADDR | -m MARKER_ID
5224 Define a static tracepoint by probing a marker at the given
5225 function, line, address, or marker ID.
5226
ca11e899
SS
5227set observer on|off
5228show observer
5229 Enable and disable observer mode.
5230
5231set may-write-registers on|off
5232set may-write-memory on|off
5233set may-insert-breakpoints on|off
5234set may-insert-tracepoints on|off
5235set may-insert-fast-tracepoints on|off
5236set may-interrupt on|off
5237 Set individual permissions for GDB effects on the target. Note that
5238 some of these settings can have undesirable or surprising
5239 consequences, particularly when changed in the middle of a session.
5240 For instance, disabling the writing of memory can prevent
5241 breakpoints from being inserted, cause single-stepping to fail, or
5242 even crash your program, if you disable after breakpoints have been
5243 inserted. However, GDB should not crash.
5244
5245set record memory-query on|off
5246show record memory-query
5247 Control whether to stop the inferior if memory changes caused
5248 by an instruction cannot be recorded.
5249
53a71c06
CR
5250* Changed commands
5251
5252disassemble
5253 The disassemble command now supports "start,+length" form of two arguments.
5254
f3e9a817
PM
5255* Python scripting
5256
9279c692
JB
5257** GDB now provides a new directory location, called the python directory,
5258 where Python scripts written for GDB can be installed. The location
5259 of that directory is <data-directory>/python, where <data-directory>
5260 is the GDB data directory. For more details, see section `Scripting
5261 GDB using Python' in the manual.
5262
adc36818 5263** The GDB Python API now has access to breakpoints, symbols, symbol
595939de
PM
5264 tables, program spaces, inferiors, threads and frame's code blocks.
5265 Additionally, GDB Parameters can now be created from the API, and
5266 manipulated via set/show in the CLI.
f870a310 5267
fa33c3cd 5268** New functions gdb.target_charset, gdb.target_wide_charset,
07ca107c
DE
5269 gdb.progspaces, gdb.current_progspace, and gdb.string_to_argv.
5270
5271** New exception gdb.GdbError.
fa33c3cd
DE
5272
5273** Pretty-printers are now also looked up in the current program space.
f3e9a817 5274
967cf477
DE
5275** Pretty-printers can now be individually enabled and disabled.
5276
8a1ea21f
DE
5277** GDB now looks for names of Python scripts to auto-load in a
5278 special section named `.debug_gdb_scripts', in addition to looking
5279 for a OBJFILE-gdb.py script when OBJFILE is read by the debugger.
5280
a7bdde9e
VP
5281* Tracepoint actions were unified with breakpoint commands. In particular,
5282there are no longer differences in "info break" output for breakpoints and
5283tracepoints and the "commands" command can be used for both tracepoints and
5284regular breakpoints.
5285
05071a4d
PA
5286* New targets
5287
5288ARM Symbian arm*-*-symbianelf*
5289
6aecb9c2
JB
5290* D language support.
5291 GDB now supports debugging programs written in the D programming
5292 language.
5293
431e49aa
TJB
5294* GDB now supports the extended ptrace interface for PowerPC which is
5295 available since Linux kernel version 2.6.34. This automatically enables
5296 any hardware breakpoints and additional hardware watchpoints available in
5297 the processor. The old ptrace interface exposes just one hardware
5298 watchpoint and no hardware breakpoints.
5299
5300* GDB is now able to use the Data Value Compare (DVC) register available on
5301 embedded PowerPC processors to implement in hardware simple watchpoint
5302 conditions of the form:
5303
5304 watch ADDRESS|VARIABLE if ADDRESS|VARIABLE == CONSTANT EXPRESSION
5305
5306 This works in native GDB running on Linux kernels with the extended ptrace
5307 interface mentioned above.
5308
bfbf3774 5309*** Changes in GDB 7.1
abc7453d 5310
4eef138c
TT
5311* C++ Improvements
5312
5313 ** Namespace Support
71dee663
SW
5314
5315 GDB now supports importing of namespaces in C++. This enables the
5316 user to inspect variables from imported namespaces. Support for
5317 namepace aliasing has also been added. So, if a namespace is
5318 aliased in the current scope (e.g. namepace C=A; ) the user can
5319 print variables using the alias (e.g. (gdb) print C::x).
5320
4eef138c
TT
5321 ** Bug Fixes
5322
5323 All known bugs relating to the printing of virtual base class were
5324 fixed. It is now possible to call overloaded static methods using a
5325 qualified name.
5326
5327 ** Cast Operators
5328
5329 The C++ cast operators static_cast<>, dynamic_cast<>, const_cast<>,
5330 and reinterpret_cast<> are now handled by the C++ expression parser.
5331
2d1c1221
ME
5332* New targets
5333
5334Xilinx MicroBlaze microblaze-*-*
34207b9e 5335Renesas RX rx-*-elf
2d1c1221
ME
5336
5337* New Simulators
5338
5339Xilinx MicroBlaze microblaze
34207b9e 5340Renesas RX rx
2d1c1221 5341
6c95b8df
PA
5342* Multi-program debugging.
5343
5344 GDB now has support for multi-program (a.k.a. multi-executable or
5345 multi-exec) debugging. This allows for debugging multiple inferiors
5346 simultaneously each running a different program under the same GDB
5347 session. See "Debugging Multiple Inferiors and Programs" in the
5348 manual for more information. This implied some user visible changes
5349 in the multi-inferior support. For example, "info inferiors" now
5350 lists inferiors that are not running yet or that have exited
5351 already. See also "New commands" and "New options" below.
5352
d5551862
SS
5353* New tracing features
5354
5355 GDB's tracepoint facility now includes several new features:
5356
5357 ** Trace state variables
f61e138d
SS
5358
5359 GDB tracepoints now include support for trace state variables, which
5360 are variables managed by the target agent during a tracing
5361 experiment. They are useful for tracepoints that trigger each
5362 other, so for instance one tracepoint can count hits in a variable,
5363 and then a second tracepoint has a condition that is true when the
5364 count reaches a particular value. Trace state variables share the
5365 $-syntax of GDB convenience variables, and can appear in both
5366 tracepoint actions and condition expressions. Use the "tvariable"
5367 command to create, and "info tvariables" to view; see "Trace State
5368 Variables" in the manual for more detail.
7a697b8d 5369
d5551862 5370 ** Fast tracepoints
7a697b8d
SS
5371
5372 GDB now includes an option for defining fast tracepoints, which
5373 targets may implement more efficiently, such as by installing a jump
5374 into the target agent rather than a trap instruction. The resulting
5375 speedup can be by two orders of magnitude or more, although the
5376 tradeoff is that some program locations on some target architectures
5377 might not allow fast tracepoint installation, for instance if the
5378 instruction to be replaced is shorter than the jump. To request a
5379 fast tracepoint, use the "ftrace" command, with syntax identical to
5380 the regular trace command.
5381
d5551862
SS
5382 ** Disconnected tracing
5383
5384 It is now possible to detach GDB from the target while it is running
5385 a trace experiment, then reconnect later to see how the experiment
5386 is going. In addition, a new variable disconnected-tracing lets you
5387 tell the target agent whether to continue running a trace if the
5388 connection is lost unexpectedly.
5389
00bf0b85
SS
5390 ** Trace files
5391
5392 GDB now has the ability to save the trace buffer into a file, and
5393 then use that file as a target, similarly to you can do with
5394 corefiles. You can select trace frames, print data that was
5395 collected in them, and use tstatus to display the state of the
5396 tracing run at the moment that it was saved. To create a trace
5397 file, use "tsave <filename>", and to use it, do "target tfile
5398 <name>".
4daf5ac0
SS
5399
5400 ** Circular trace buffer
5401
5402 You can ask the target agent to handle the trace buffer as a
5403 circular buffer, discarding the oldest trace frames to make room for
5404 newer ones, by setting circular-trace-buffer to on. This feature may
5405 not be available for all target agents.
5406
21a0512e
PP
5407* Changed commands
5408
5409disassemble
5410 The disassemble command, when invoked with two arguments, now requires
5411 the arguments to be comma-separated.
5412
0fe7935b
DJ
5413info variables
5414 The info variables command now displays variable definitions. Files
5415 which only declare a variable are not shown.
5416
fb2e7cb4
JB
5417source
5418 The source command is now capable of sourcing Python scripts.
5419 This feature is dependent on the debugger being build with Python
5420 support.
5421
5422 Related to this enhancement is also the introduction of a new command
5423 "set script-extension" (see below).
5424
6c95b8df
PA
5425* New commands (for set/show, see "New options" below)
5426
399cd161
MS
5427record save [<FILENAME>]
5428 Save a file (in core file format) containing the process record
5429 execution log for replay debugging at a later time.
5430
5431record restore <FILENAME>
5432 Restore the process record execution log that was saved at an
5433 earlier time, for replay debugging.
5434
6c95b8df
PA
5435add-inferior [-copies <N>] [-exec <FILENAME>]
5436 Add a new inferior.
5437
5438clone-inferior [-copies <N>] [ID]
5439 Make a new inferior ready to execute the same program another
5440 inferior has loaded.
5441
5442remove-inferior ID
5443 Remove an inferior.
5444
5445maint info program-spaces
5446 List the program spaces loaded into GDB.
5447
9a7071a8
JB
5448set remote interrupt-sequence [Ctrl-C | BREAK | BREAK-g]
5449show remote interrupt-sequence
5450 Allow the user to select one of ^C, a BREAK signal or BREAK-g
5451 as the sequence to the remote target in order to interrupt the execution.
5452 Ctrl-C is a default. Some system prefers BREAK which is high level of
5453 serial line for some certain time. Linux kernel prefers BREAK-g, a.k.a
5454 Magic SysRq g. It is BREAK signal and character 'g'.
5455
5456set remote interrupt-on-connect [on | off]
5457show remote interrupt-on-connect
5458 When interrupt-on-connect is ON, gdb sends interrupt-sequence to
5459 remote target when gdb connects to it. This is needed when you debug
5460 Linux kernel.
5461
5462set remotebreak [on | off]
5463show remotebreak
5464Deprecated. Use "set/show remote interrupt-sequence" instead.
5465
f61e138d
SS
5466tvariable $NAME [ = EXP ]
5467 Create or modify a trace state variable.
5468
5469info tvariables
5470 List trace state variables and their values.
5471
5472delete tvariable $NAME ...
5473 Delete one or more trace state variables.
5474
6da95a67
SS
5475teval EXPR, ...
5476 Evaluate the given expressions without collecting anything into the
5477 trace buffer. (Valid in tracepoint actions only.)
5478
7a697b8d
SS
5479ftrace FN / FILE:LINE / *ADDR
5480 Define a fast tracepoint at the given function, line, or address.
5481
b0f02ee9
JK
5482* New expression syntax
5483
5484 GDB now parses the 0b prefix of binary numbers the same way as GCC does.
5485 GDB now parses 0b101010 identically with 42.
5486
6c95b8df
PA
5487* New options
5488
5489set follow-exec-mode new|same
5490show follow-exec-mode
5491 Control whether GDB reuses the same inferior across an exec call or
5492 creates a new one. This is useful to be able to restart the old
5493 executable after the inferior having done an exec call.
5494
236f1d4d
SS
5495set default-collect EXPR, ...
5496show default-collect
5497 Define a list of expressions to be collected at each tracepoint.
5498 This is a useful way to ensure essential items are not overlooked,
5499 such as registers or a critical global variable.
5500
d5551862
SS
5501set disconnected-tracing
5502show disconnected-tracing
5503 If set to 1, the target is instructed to continue tracing if it
5504 loses its connection to GDB. If 0, the target is to stop tracing
5505 upon disconnection.
5506
4daf5ac0
SS
5507set circular-trace-buffer
5508show circular-trace-buffer
5509 If set to on, the target is instructed to use a circular trace buffer
5510 and discard the oldest trace frames instead of stopping the trace due
5511 to a full trace buffer. If set to off, the trace stops when the buffer
5512 fills up. Some targets may not support this.
5513
fb2e7cb4
JB
5514set script-extension off|soft|strict
5515show script-extension
5516 If set to "off", the debugger does not perform any script language
5517 recognition, and all sourced files are assumed to be GDB scripts.
5518 If set to "soft" (the default), files are sourced according to
5519 filename extension, falling back to GDB scripts if the first
5520 evaluation failed.
5521 If set to "strict", files are sourced according to filename extension.
5522
2b71fc8e
JB
5523set ada trust-PAD-over-XVS on|off
5524show ada trust-PAD-over-XVS
5525 If off, activate a workaround against a bug in the debugging information
5526 generated by the compiler for PAD types (see gcc/exp_dbug.ads in
5527 the GCC sources for more information about the GNAT encoding and
5528 PAD types in particular). It is always safe to set this option to
5529 off, but this introduces a slight performance penalty. The default
5530 is on.
5531
de2e5182
TT
5532* Python API Improvements
5533
5534 ** GDB provides the new class gdb.LazyString. This is useful in
5535 some pretty-printing cases. The new method gdb.Value.lazy_string
5536 provides a simple way to create objects of this type.
5537
5538 ** The fields returned by gdb.Type.fields now have an
5539 `is_base_class' attribute.
5540
5541 ** The new method gdb.Type.range returns the range of an array type.
5542
5543 ** The new method gdb.parse_and_eval can be used to parse and
5544 evaluate an expression.
5545
f61e138d
SS
5546* New remote packets
5547
5548QTDV
5549 Define a trace state variable.
5550
5551qTV
5552 Get the current value of a trace state variable.
5553
d5551862
SS
5554QTDisconnected
5555 Set desired tracing behavior upon disconnection.
5556
4daf5ac0
SS
5557QTBuffer:circular
5558 Set the trace buffer to be linear or circular.
5559
d5551862
SS
5560qTfP, qTsP
5561 Get data about the tracepoints currently in use.
5562
2d483d34
MS
5563* Bug fixes
5564
5565Process record now works correctly with hardware watchpoints.
5566
6e0e5977
JB
5567Multiple bug fixes have been made to the mips-irix port, making it
5568much more reliable. In particular:
5569 - Debugging threaded applications is now possible again. Previously,
5570 GDB would hang while starting the program, or while waiting for
5571 the program to stop at a breakpoint.
5572 - Attaching to a running process no longer hangs.
5573 - An error occurring while loading a core file has been fixed.
5574 - Changing the value of the PC register now works again. This fixes
5575 problems observed when using the "jump" command, or when calling
5576 a function from GDB, or even when assigning a new value to $pc.
5577 - With the "finish" and "return" commands, the return value for functions
5578 returning a small array is now correctly printed.
5579 - It is now possible to break on shared library code which gets executed
5580 during a shared library init phase (code executed while executing
5581 their .init section). Previously, the breakpoint would have no effect.
5582 - GDB is now able to backtrace through the signal handler for
5583 non-threaded programs.
5584
93c26624
JK
5585PIE (Position Independent Executable) programs debugging is now supported.
5586This includes debugging execution of PIC (Position Independent Code) shared
5587libraries although for that, it should be possible to run such libraries as an
5588executable program.
5589
abc7453d 5590*** Changes in GDB 7.0
75feb17d 5591
4efc6507
DE
5592* GDB now has an interface for JIT compilation. Applications that
5593dynamically generate code can create symbol files in memory and register
5594them with GDB. For users, the feature should work transparently, and
5595for JIT developers, the interface is documented in the GDB manual in the
5596"JIT Compilation Interface" chapter.
5597
782b2b07
SS
5598* Tracepoints may now be conditional. The syntax is as for
5599breakpoints; either an "if" clause appended to the "trace" command,
5600or the "condition" command is available. GDB sends the condition to
5601the target for evaluation using the same bytecode format as is used
5602for tracepoint actions.
5603
53a71c06
CR
5604* The disassemble command now supports: an optional /r modifier, print the
5605raw instructions in hex as well as in symbolic form, and an optional /m
5606modifier to print mixed source+assembly.
e6158f16 5607
e7a8dbfb
HZ
5608* Process record and replay
5609
5610 In a architecture environment that supports ``process record and
5611 replay'', ``process record and replay'' target can record a log of
5612 the process execution, and replay it with both forward and reverse
5613 execute commands.
5614
64644d9b
MS
5615* Reverse debugging: GDB now has new commands reverse-continue, reverse-
5616step, reverse-next, reverse-finish, reverse-stepi, reverse-nexti, and
5617set execution-direction {forward|reverse}, for targets that support
5618reverse execution.
5619
b9412953
DD
5620* GDB now supports hardware watchpoints on MIPS/Linux systems. This
5621feature is available with a native GDB running on kernel version
56222.6.28 or later.
5623
6c7a06a3
TT
5624* GDB now has support for multi-byte and wide character sets on the
5625target. Strings whose character type is wchar_t, char16_t, or
5626char32_t are now correctly printed. GDB supports wide- and unicode-
5627literals in C, that is, L'x', L"string", u'x', u"string", U'x', and
5628U"string" syntax. And, GDB allows the "%ls" and "%lc" formats in
5629`printf'. This feature requires iconv to work properly; if your
5630system does not have a working iconv, GDB can use GNU libiconv. See
5631the installation instructions for more information.
5632
f1838a98
UW
5633* GDB now supports automatic retrieval of shared library files from
5634remote targets. To use this feature, specify a system root that begins
5635with the `remote:' prefix, either via the `set sysroot' command or via
5636the `--with-sysroot' configure-time option.
5637
55333a84
DE
5638* "info sharedlibrary" now takes an optional regex of libraries to show,
5639and it now reports if a shared library has no debugging information.
5640
7f6a6314
PM
5641* Commands `set debug-file-directory', `set solib-search-path' and `set args'
5642now complete on file names.
5643
65d12d83
TT
5644* When completing in expressions, gdb will attempt to limit
5645completions to allowable structure or union fields, where appropriate.
5646For instance, consider:
5647
5648 # struct example { int f1; double f2; };
5649 # struct example variable;
5650 (gdb) p variable.
5651
5652If the user types TAB at the end of this command line, the available
5653completions will be "f1" and "f2".
5654
edb3359d
DJ
5655* Inlined functions are now supported. They show up in backtraces, and
5656the "step", "next", and "finish" commands handle them automatically.
5657
2fae03e8
TT
5658* GDB now supports the token-splicing (##) and stringification (#)
5659operators when expanding macros. It also supports variable-arity
5660macros.
5661
47a3467a 5662* GDB now supports inspecting extra signal information, exported by
58d6951d
DJ
5663the new $_siginfo convenience variable. The feature is currently
5664implemented on linux ARM, i386 and amd64.
5665
5666* GDB can now display the VFP floating point registers and NEON vector
5667registers on ARM targets. Both ARM GNU/Linux native GDB and gdbserver
5668can provide these registers (requires Linux 2.6.30 or later). Remote
5669and simulator targets may also provide them.
47a3467a 5670
08388c79
DE
5671* New remote packets
5672
5673qSearch:memory:
5674 Search memory for a sequence of bytes.
5675
a6f3e723
SL
5676QStartNoAckMode
5677 Turn off `+'/`-' protocol acknowledgments to permit more efficient
5678 operation over reliable transport links. Use of this packet is
5679 controlled by the `set remote noack-packet' command.
5680
d7713ae0
EZ
5681vKill
5682 Kill the process with the specified process ID. Use this in preference
5683 to `k' when multiprocess protocol extensions are supported.
5684
07e059b5
VP
5685qXfer:osdata:read
5686 Obtains additional operating system information
5687
47a3467a
PA
5688qXfer:siginfo:read
5689qXfer:siginfo:write
5690 Read or write additional signal information.
5691
060871df
PA
5692* Removed remote protocol undocumented extension
5693
5694 An undocumented extension to the remote protocol's `S' stop reply
82f06518 5695 packet that permitted the stub to pass a process id was removed.
060871df
PA
5696 Remote servers should use the `T' stop reply packet instead.
5697
c055b101 5698* GDB now supports multiple function calling conventions according to the
a0ef4274 5699DWARF-2 DW_AT_calling_convention function attribute.
c055b101
CV
5700
5701* The SH target utilizes the aforementioned change to distinguish between gcc
a0ef4274
DJ
5702and Renesas calling convention. It also adds the new CLI commands
5703`set/show sh calling-convention'.
c055b101 5704
31fffb02
CS
5705* GDB can now read compressed debug sections, as produced by GNU gold
5706with the --compress-debug-sections=zlib flag.
5707
88d8a8e0
JB
5708* 64-bit core files are now supported on AIX.
5709
7f99b190
JB
5710* Thread switching is now supported on Tru64.
5711
ccd213ac
DJ
5712* Watchpoints can now be set on unreadable memory locations, e.g. addresses
5713which will be allocated using malloc later in program execution.
5714
82f06518 5715* The qXfer:libraries:read remote protocol packet now allows passing a
31fffb02 5716list of section offsets.
1fddbabb 5717
a0ef4274
DJ
5718* On GNU/Linux, GDB can now attach to stopped processes. Several race
5719conditions handling signals delivered during attach or thread creation
5720have also been fixed.
5721
bfb8797a 5722* GDB now supports the use of DWARF boolean types for Ada's type Boolean.
158c7665
PH
5723From the user's standpoint, all unqualified instances of True and False
5724are treated as the standard definitions, regardless of context.
bfb8797a 5725
71c25dea
TT
5726* GDB now parses C++ symbol and type names more flexibly. For
5727example, given:
5728
5729 template<typename T> class C { };
5730 C<char const *> c;
5731
5732GDB will now correctly handle all of:
5733
5734 ptype C<char const *>
5735 ptype C<char const*>
5736 ptype C<const char *>
5737 ptype C<const char*>
5738
ccd213ac
DJ
5739* New features in the GDB remote stub, gdbserver
5740
5741 - The "--wrapper" command-line argument tells gdbserver to use a
5742 wrapper program to launch programs for debugging.
5743
7ae0e2a2
UW
5744 - On PowerPC and S/390 targets, it is now possible to use a single
5745 gdbserver executable to debug both 32-bit and 64-bit programs.
5746 (This requires gdbserver itself to be built as a 64-bit executable.)
5747
a6f3e723
SL
5748 - gdbserver uses the new noack protocol mode for TCP connections to
5749 reduce communications latency, if also supported and enabled in GDB.
5750
da8bd9a3
DJ
5751 - Support for the sparc64-linux-gnu target is now included in
5752 gdbserver.
5753
d70e31dd
DE
5754 - The amd64-linux build of gdbserver now supports debugging both
5755 32-bit and 64-bit programs.
5756
5757 - The i386-linux, amd64-linux, and i386-win32 builds of gdbserver
5758 now support hardware watchpoints, and will use them automatically
5759 as appropriate.
5760
d57a3c85
TJB
5761* Python scripting
5762
5763 GDB now has support for scripting using Python. Whether this is
5764 available is determined at configure time.
5765
d8906c6f
TJB
5766 New GDB commands can now be written in Python.
5767
aadc346a
JB
5768* Ada tasking support
5769
5770 Ada tasks can now be inspected in GDB. The following commands have
5771 been introduced:
5772
5773 info tasks
5774 Print the list of Ada tasks.
5775 info task N
5776 Print detailed information about task number N.
5777 task
5778 Print the task number of the current task.
5779 task N
5780 Switch the context of debugging to task number N.
5781
adb483fe
DJ
5782* Support for user-defined prefixed commands. The "define" command can
5783add new commands to existing prefixes, e.g. "target".
5784
2277426b
PA
5785* Multi-inferior, multi-process debugging.
5786
5787 GDB now has generalized support for multi-inferior debugging. See
5788 "Debugging Multiple Inferiors" in the manual for more information.
5789 Although availability still depends on target support, the command
5790 set is more uniform now. The GNU/Linux specific multi-forks support
5791 has been migrated to this new framework. This implied some user
5792 visible changes; see "New commands" and also "Removed commands"
5793 below.
5794
08d16641
PA
5795* Target descriptions can now describe the target OS ABI. See the
5796"Target Description Format" section in the user manual for more
5797information.
5798
e35359c5
UW
5799* Target descriptions can now describe "compatible" architectures
5800to indicate that the target can execute applications for a different
5801architecture in addition to those for the main target architecture.
5802See the "Target Description Format" section in the user manual for
5803more information.
5804
85e747d2
UW
5805* Multi-architecture debugging.
5806
5807 GDB now includes general supports for debugging applications on
5808 hybrid systems that use more than one single processor architecture
5809 at the same time. Each such hybrid architecture still requires
5810 specific support to be added. The only hybrid architecture supported
5811 in this version of GDB is the Cell Broadband Engine.
5812
5813* GDB now supports integrated debugging of Cell/B.E. applications that
5814use both the PPU and SPU architectures. To enable support for hybrid
5815Cell/B.E. debugging, you need to configure GDB to support both the
5816powerpc-linux or powerpc64-linux and the spu-elf targets, using the
5817--enable-targets configure option.
5818
11ade57a
PA
5819* Non-stop mode debugging.
5820
5821 For some targets, GDB now supports an optional mode of operation in
5822 which you can examine stopped threads while other threads continue
5823 to execute freely. This is referred to as non-stop mode, with the
5824 old mode referred to as all-stop mode. See the "Non-Stop Mode"
5825 section in the user manual for more information.
5826
5827 To be able to support remote non-stop debugging, a remote stub needs
5828 to implement the non-stop mode remote protocol extensions, as
5829 described in the "Remote Non-Stop" section of the user manual. The
5830 GDB remote stub, gdbserver, has been adjusted to support these
5831 extensions on linux targets.
5832
d7713ae0 5833* New commands (for set/show, see "New options" below)
75feb17d 5834
a96d9b2e
SDJ
5835catch syscall [NAME(S) | NUMBER(S)]
5836 Catch system calls. Arguments, which should be names of system
5837 calls or their numbers, mean catch only those syscalls. Without
5838 arguments, every syscall will be caught. When the inferior issues
5839 any of the specified syscalls, GDB will stop and announce the system
5840 call, both when it is called and when its call returns. This
5841 feature is currently available with a native GDB running on the
5842 Linux Kernel, under the following architectures: x86, x86_64,
5843 PowerPC and PowerPC64.
5844
08388c79
DE
5845find [/size-char] [/max-count] start-address, end-address|+search-space-size,
5846 val1 [, val2, ...]
5847 Search memory for a sequence of bytes.
5848
d57a3c85
TJB
5849maint set python print-stack
5850maint show python print-stack
5851 Show a stack trace when an error is encountered in a Python script.
5852
5853python [CODE]
5854 Invoke CODE by passing it to the Python interpreter.
5855
d7713ae0
EZ
5856macro define
5857macro list
5858macro undef
5859 These allow macros to be defined, undefined, and listed
5860 interactively.
5861
5862info os processes
5863 Show operating system information about processes.
5864
2277426b
PA
5865info inferiors
5866 List the inferiors currently under GDB's control.
5867
5868inferior NUM
5869 Switch focus to inferior number NUM.
5870
5871detach inferior NUM
5872 Detach from inferior number NUM.
5873
5874kill inferior NUM
5875 Kill inferior number NUM.
5876
d7713ae0
EZ
5877* New options
5878
3285f3fe
UW
5879set spu stop-on-load
5880show spu stop-on-load
5881 Control whether to stop for new SPE threads during Cell/B.E. debugging.
5882
ff1a52c6
UW
5883set spu auto-flush-cache
5884show spu auto-flush-cache
5885 Control whether to automatically flush the software-managed cache
5886 during Cell/B.E. debugging.
5887
d7713ae0
EZ
5888set sh calling-convention
5889show sh calling-convention
5890 Control the calling convention used when calling SH target functions.
5891
e0a3ce09 5892set debug timestamp
75feb17d 5893show debug timestamp
d7713ae0
EZ
5894 Control display of timestamps with GDB debugging output.
5895
5896set disassemble-next-line
5897show disassemble-next-line
5898 Control display of disassembled source lines or instructions when
5899 the debuggee stops.
5900
5901set remote noack-packet
5902show remote noack-packet
5903 Set/show the use of remote protocol QStartNoAckMode packet. See above
5904 under "New remote packets."
5905
5906set remote query-attached-packet
5907show remote query-attached-packet
5908 Control use of remote protocol `qAttached' (query-attached) packet.
5909
5910set remote read-siginfo-object
5911show remote read-siginfo-object
5912 Control use of remote protocol `qXfer:siginfo:read' (read-siginfo-object)
5913 packet.
5914
5915set remote write-siginfo-object
5916show remote write-siginfo-object
5917 Control use of remote protocol `qXfer:siginfo:write' (write-siginfo-object)
5918 packet.
5919
40ab02ce
MS
5920set remote reverse-continue
5921show remote reverse-continue
5922 Control use of remote protocol 'bc' (reverse-continue) packet.
5923
5924set remote reverse-step
5925show remote reverse-step
5926 Control use of remote protocol 'bs' (reverse-step) packet.
5927
d7713ae0
EZ
5928set displaced-stepping
5929show displaced-stepping
5930 Control displaced stepping mode. Displaced stepping is a way to
5931 single-step over breakpoints without removing them from the debuggee.
5932 Also known as "out-of-line single-stepping".
5933
5934set debug displaced
5935show debug displaced
5936 Control display of debugging info for displaced stepping.
5937
5938maint set internal-error
5939maint show internal-error
5940 Control what GDB does when an internal error is detected.
5941
5942maint set internal-warning
5943maint show internal-warning
5944 Control what GDB does when an internal warning is detected.
75feb17d 5945
ccd213ac
DJ
5946set exec-wrapper
5947show exec-wrapper
5948unset exec-wrapper
5949 Use a wrapper program to launch programs for debugging.
fa4727a6 5950
aad4b048
JB
5951set multiple-symbols (all|ask|cancel)
5952show multiple-symbols
5953 The value of this variable can be changed to adjust the debugger behavior
5954 when an expression or a breakpoint location contains an ambiguous symbol
5955 name (an overloaded function name, for instance).
5956
74960c60
VP
5957set breakpoint always-inserted
5958show breakpoint always-inserted
5959 Keep breakpoints always inserted in the target, as opposed to inserting
5960 them when resuming the target, and removing them when the target stops.
5961 This option can improve debugger performance on slow remote targets.
5962
0428b8f5
DJ
5963set arm fallback-mode (arm|thumb|auto)
5964show arm fallback-mode
5965set arm force-mode (arm|thumb|auto)
5966show arm force-mode
5967 These commands control how ARM GDB determines whether instructions
5968 are ARM or Thumb. The default for both settings is auto, which uses
5969 the current CPSR value for instructions without symbols; previous
5970 versions of GDB behaved as if "set arm fallback-mode arm".
5971
ef273377
CL
5972set arm unwind-secure-frames
5973 Enable unwinding from Non-secure to Secure mode on Cortex-M with
5974 Security extension.
5975 This can trigger security exceptions when unwinding exception stacks.
5976
10568435
JK
5977set disable-randomization
5978show disable-randomization
5979 Standalone programs run with the virtual address space randomization enabled
5980 by default on some platforms. This option keeps the addresses stable across
5981 multiple debugging sessions.
5982
d7713ae0
EZ
5983set non-stop
5984show non-stop
5985 Control whether other threads are stopped or not when some thread hits
5986 a breakpoint.
5987
b3eb342c 5988set target-async
d7713ae0 5989show target-async
b3eb342c
VP
5990 Requests that asynchronous execution is enabled in the target, if available.
5991 In this case, it's possible to resume target in the background, and interact
5992 with GDB while the target is running. "show target-async" displays the
5993 current state of asynchronous execution of the target.
5994
6c7a06a3
TT
5995set target-wide-charset
5996show target-wide-charset
5997 The target-wide-charset is the name of the character set that GDB
5998 uses when printing characters whose type is wchar_t.
5999
84603566
SL
6000set tcp auto-retry (on|off)
6001show tcp auto-retry
6002set tcp connect-timeout
6003show tcp connect-timeout
6004 These commands allow GDB to retry failed TCP connections to a remote stub
6005 with a specified timeout period; this is useful if the stub is launched
6006 in parallel with GDB but may not be ready to accept connections immediately.
6007
17a37d48
PP
6008set libthread-db-search-path
6009show libthread-db-search-path
6010 Control list of directories which GDB will search for appropriate
6011 libthread_db.
6012
d4db2f36
PA
6013set schedule-multiple (on|off)
6014show schedule-multiple
6015 Allow GDB to resume all threads of all processes or only threads of
6016 the current process.
6017
4e5d721f
DE
6018set stack-cache
6019show stack-cache
6020 Use more aggressive caching for accesses to the stack. This improves
6021 performance of remote debugging (particularly backtraces) without
6022 affecting correctness.
6023
910c5da8
JB
6024set interactive-mode (on|off|auto)
6025show interactive-mode
6026 Control whether GDB runs in interactive mode (on) or not (off).
6027 When in interactive mode, GDB waits for the user to answer all
6028 queries. Otherwise, GDB does not wait and assumes the default
6029 answer. When set to auto (the default), GDB determines which
6030 mode to use based on the stdin settings.
6031
2277426b
PA
6032* Removed commands
6033
6034info forks
6035 For program forks, this is replaced by the new more generic `info
6036 inferiors' command. To list checkpoints, you can still use the
6037 `info checkpoints' command, which was an alias for the `info forks'
6038 command.
6039
6040fork NUM
6041 Replaced by the new `inferior' command. To switch between
6042 checkpoints, you can still use the `restart' command, which was an
6043 alias for the `fork' command.
6044
6045process PID
6046 This is removed, since some targets don't have a notion of
6047 processes. To switch between processes, you can still use the
6048 `inferior' command using GDB's own inferior number.
6049
6050delete fork NUM
6051 For program forks, this is replaced by the new more generic `kill
6052 inferior' command. To delete a checkpoint, you can still use the
6053 `delete checkpoint' command, which was an alias for the `delete
6054 fork' command.
6055
6056detach fork NUM
6057 For program forks, this is replaced by the new more generic `detach
6058 inferior' command. To detach a checkpoint, you can still use the
6059 `detach checkpoint' command, which was an alias for the `detach
6060 fork' command.
6061
a80b95ba
TG
6062* New native configurations
6063
6064x86/x86_64 Darwin i[34567]86-*-darwin*
6065
b8bfd3ed
JB
6066x86_64 MinGW x86_64-*-mingw*
6067
75a2d5e7
TT
6068* New targets
6069
c28c63d8 6070Lattice Mico32 lm32-*
75a2d5e7 6071x86 DICOS i[34567]86-*-dicos*
4c1d2973 6072x86_64 DICOS x86_64-*-dicos*
5f814c3b 6073S+core 3 score-*-*
75a2d5e7 6074
6de3146c
PA
6075* The GDB remote stub, gdbserver, now supports x86 Windows CE
6076 (mingw32ce) debugging.
6077
d5cbbe6e
JB
6078* Removed commands
6079
6080catch load
6081catch unload
6082 These commands were actually not implemented on any target.
6083
75feb17d 6084*** Changes in GDB 6.8
f9ed52be 6085
af5ca30d
NH
6086* New native configurations
6087
6088NetBSD/hppa hppa*-*netbsd*
94a0e877 6089Xtensa GNU/Linux xtensa*-*-linux*
af5ca30d
NH
6090
6091* New targets
6092
6093NetBSD/hppa hppa*-*-netbsd*
82f06518 6094Xtensa GNU/Linux xtensa*-*-linux*
af5ca30d 6095
7a404eba
PA
6096* Change in command line behavior -- corefiles vs. process ids.
6097
6098 When the '-p NUMBER' or '--pid NUMBER' options are used, and
6099 attaching to process NUMBER fails, GDB no longer attempts to open a
6100 core file named NUMBER. Attaching to a program using the -c option
6101 is no longer supported. Instead, use the '-p' or '--pid' options.
6102
430ebac9
PA
6103* GDB can now be built as a native debugger for debugging Windows x86
6104(mingw32) Portable Executable (PE) programs.
6105
fe6fbf8b 6106* Pending breakpoints no longer change their number when their address
8d5f9c6f 6107is resolved.
fe6fbf8b
VP
6108
6109* GDB now supports breakpoints with multiple locations,
8d5f9c6f
DJ
6110including breakpoints on C++ constructors, inside C++ templates,
6111and in inlined functions.
fe6fbf8b 6112
10665d76
JB
6113* GDB's ability to debug optimized code has been improved. GDB more
6114accurately identifies function bodies and lexical blocks that occupy
6115more than one contiguous range of addresses.
6116
7cc46491
DJ
6117* Target descriptions can now describe registers for PowerPC.
6118
d71340b8
DJ
6119* The GDB remote stub, gdbserver, now supports the AltiVec and SPE
6120registers on PowerPC targets.
6121
523c4513
DJ
6122* The GDB remote stub, gdbserver, now supports thread debugging on GNU/Linux
6123targets even when the libthread_db library is not available.
6124
a6b151f1
DJ
6125* The GDB remote stub, gdbserver, now supports the new file transfer
6126commands (remote put, remote get, and remote delete).
6127
2d717e4f
DJ
6128* The GDB remote stub, gdbserver, now supports run and attach in
6129extended-remote mode.
6130
24a836bd 6131* hppa*64*-*-hpux11* target broken
d001be7a
DJ
6132The debugger is unable to start a program and fails with the following
6133error: "Error trying to get information about dynamic linker".
6134The gdb-6.7 release is also affected.
24a836bd 6135
d0c678e6
UW
6136* GDB now supports the --enable-targets= configure option to allow
6137building a single GDB executable that supports multiple remote
6138target architectures.
6139
d64a946d
TJB
6140* GDB now supports debugging C and C++ programs which use the
6141Decimal Floating Point extension. In addition, the PowerPC target
6142now has a set of pseudo-registers to inspect decimal float values
6143stored in two consecutive float registers.
6144
ee163bf5
VP
6145* The -break-insert MI command can optionally create pending
6146breakpoints now.
6147
b93b6ca7 6148* Improved support for debugging Ada
d001be7a
DJ
6149Many improvements to the Ada language support have been made. These
6150include:
b93b6ca7
JB
6151 - Better support for Ada2005 interface types
6152 - Improved handling of arrays and slices in general
6153 - Better support for Taft-amendment types
6154 - The '{type} ADDRESS' expression is now allowed on the left hand-side
6155 of an assignment
6156 - Improved command completion in Ada
6157 - Several bug fixes
6158
d001be7a
DJ
6159* GDB on GNU/Linux and HP/UX can now debug through "exec" of a new
6160process.
6161
a6b151f1
DJ
6162* New commands
6163
6d53d0af
JB
6164set print frame-arguments (all|scalars|none)
6165show print frame-arguments
6166 The value of this variable can be changed to control which argument
6167 values should be printed by the debugger when displaying a frame.
6168
a6b151f1
DJ
6169remote put
6170remote get
6171remote delete
6172 Transfer files to and from a remote target, and delete remote files.
6173
6174* New MI commands
6175
6176-target-file-put
6177-target-file-get
6178-target-file-delete
6179 Transfer files to and from a remote target, and delete remote files.
6180
6181* New remote packets
6182
6183vFile:open:
6184vFile:close:
6185vFile:pread:
6186vFile:pwrite:
6187vFile:unlink:
6188 Open, close, read, write, and delete files on the remote system.
d0c678e6 6189
2d717e4f
DJ
6190vAttach
6191 Attach to an existing process on the remote system, in extended-remote
6192 mode.
6193
6194vRun
6195 Run a new process on the remote system, in extended-remote mode.
6196
8d5f9c6f 6197*** Changes in GDB 6.7
6dd09645 6198
19d378fc
MS
6199* Resolved 101 resource leaks, null pointer dereferences, etc. in gdb,
6200bfd, libiberty and opcodes, as revealed by static analysis donated by
6201Coverity, Inc. (http://scan.coverity.com).
6202
3a40aaa0
UW
6203* When looking up multiply-defined global symbols, GDB will now prefer the
6204symbol definition in the current shared library if it was built using the
6205-Bsymbolic linker option.
6206
a6ec25f2
BW
6207* When the Text User Interface (TUI) is not configured, GDB will now
6208recognize the -tui command-line option and print a message that the TUI
6209is not supported.
6210
6dd09645
JB
6211* The GDB remote stub, gdbserver, now has lower overhead for high
6212frequency signals (e.g. SIGALRM) via the QPassSignals packet.
6213
c9bb8148
DJ
6214* GDB for MIPS targets now autodetects whether a remote target provides
621532-bit or 64-bit register values.
6216
0d5de010
DJ
6217* Support for C++ member pointers has been improved.
6218
23181151
DJ
6219* GDB now understands XML target descriptions, which specify the
6220target's overall architecture. GDB can read a description from
6221a local file or over the remote serial protocol.
6222
ea37ba09
DJ
6223* Vectors of single-byte data use a new integer type which is not
6224automatically displayed as character or string data.
6225
6226* The /s format now works with the print command. It displays
6227arrays of single-byte integers and pointers to single-byte integers
6228as strings.
e1f48ead 6229
123dc839
DJ
6230* Target descriptions can now describe target-specific registers,
6231for architectures which have implemented the support (currently
8d5f9c6f 6232only ARM, M68K, and MIPS).
123dc839 6233
05a4558a
DJ
6234* GDB and the GDB remote stub, gdbserver, now support the XScale
6235iWMMXt coprocessor.
fb1e4ffc 6236
7c963485
PA
6237* The GDB remote stub, gdbserver, has been updated to support
6238ARM Windows CE (mingw32ce) debugging, and GDB Windows CE support
6239has been rewritten to use the standard GDB remote protocol.
6240
b18be20d
DJ
6241* GDB can now step into C++ functions which are called through thunks.
6242
0ca420ce
UW
6243* GDB for the Cell/B.E. SPU now supports overlay debugging.
6244
31d99776
DJ
6245* The GDB remote protocol "qOffsets" packet can now honor ELF segment
6246layout. It also supports a TextSeg= and DataSeg= response when only
6247segment base addresses (rather than offsets) are available.
6248
a4642986
MR
6249* The /i format now outputs any trailing branch delay slot instructions
6250immediately following the last instruction within the count specified.
6251
cfa9d6d9
DJ
6252* The GDB remote protocol "T" stop reply packet now supports a
6253"library" response. Combined with the new "qXfer:libraries:read"
6254packet, this response allows GDB to debug shared libraries on targets
6255where the operating system manages the list of loaded libraries (e.g.
6256Windows and SymbianOS).
255e7678
DJ
6257
6258* The GDB remote stub, gdbserver, now supports dynamic link libraries
6259(DLLs) on Windows and Windows CE targets.
f5db8714
JK
6260
6261* GDB now supports a faster verification that a .debug file matches its binary
6262according to its build-id signature, if the signature is present.
cfa9d6d9 6263
c9bb8148
DJ
6264* New commands
6265
23776285
MR
6266set remoteflow
6267show remoteflow
6268 Enable or disable hardware flow control (RTS/CTS) on the serial port
6269 when debugging using remote targets.
6270
c9bb8148
DJ
6271set mem inaccessible-by-default
6272show mem inaccessible-by-default
6273 If the target supplies a memory map, for instance via the remote
6274 protocol's "qXfer:memory-map:read" packet, setting this variable
6275 prevents GDB from accessing memory outside the memory map. This
6276 is useful for targets with memory mapped registers or which react
6277 badly to accesses of unmapped address space.
6278
6279set breakpoint auto-hw
6280show breakpoint auto-hw
6281 If the target supplies a memory map, for instance via the remote
6282 protocol's "qXfer:memory-map:read" packet, setting this variable
6283 lets GDB use hardware breakpoints automatically for memory regions
6284 where it can not use software breakpoints. This covers both the
6285 "break" command and internal breakpoints used for other commands
6286 including "next" and "finish".
6287
0e420bd8
JB
6288catch exception
6289catch exception unhandled
6290 Stop the program execution when Ada exceptions are raised.
6291
6292catch assert
6293 Stop the program execution when an Ada assertion failed.
6294
f822c95b
DJ
6295set sysroot
6296show sysroot
6297 Set an alternate system root for target files. This is a more
6298 general version of "set solib-absolute-prefix", which is now
6299 an alias to "set sysroot".
6300
83cc5c53
UW
6301info spu
6302 Provide extended SPU facility status information. This set of
6303 commands is available only when debugging the Cell/B.E. SPU
6304 architecture.
6305
bd372731
MK
6306* New native configurations
6307
6308OpenBSD/sh sh*-*openbsd*
6309
23181151
DJ
6310set tdesc filename
6311unset tdesc filename
6312show tdesc filename
6313 Use the specified local file as an XML target description, and do
6314 not query the target for its built-in description.
6315
c9bb8148
DJ
6316* New targets
6317
54fe9172 6318OpenBSD/sh sh*-*-openbsd*
c9bb8148 6319MIPS64 GNU/Linux (gdbserver) mips64-linux-gnu
c077150c 6320Toshiba Media Processor mep-elf
c9bb8148 6321
6dd09645
JB
6322* New remote packets
6323
6324QPassSignals:
6325 Ignore the specified signals; pass them directly to the debugged program
6326 without stopping other threads or reporting them to GDB.
6327
23181151
DJ
6328qXfer:features:read:
6329 Read an XML target description from the target, which describes its
6330 features.
6dd09645 6331
83cc5c53
UW
6332qXfer:spu:read:
6333qXfer:spu:write:
6334 Read or write contents of an spufs file on the target system. These
6335 packets are available only on the Cell/B.E. SPU architecture.
6336
cfa9d6d9
DJ
6337qXfer:libraries:read:
6338 Report the loaded shared libraries. Combined with new "T" packet
6339 response, this packet allows GDB to debug shared libraries on
6340 targets where the operating system manages the list of loaded
6341 libraries (e.g. Windows and SymbianOS).
6342
483367ee
DJ
6343* Removed targets
6344
6345Support for these obsolete configurations has been removed.
6346
d08950c4
UW
6347alpha*-*-osf1*
6348alpha*-*-osf2*
7ce59000 6349d10v-*-*
483367ee
DJ
6350hppa*-*-hiux*
6351i[34567]86-ncr-*
6352i[34567]86-*-dgux*
6353i[34567]86-*-lynxos*
6354i[34567]86-*-netware*
6355i[34567]86-*-sco3.2v5*
6356i[34567]86-*-sco3.2v4*
6357i[34567]86-*-sco*
6358i[34567]86-*-sysv4.2*
6359i[34567]86-*-sysv4*
6360i[34567]86-*-sysv5*
6361i[34567]86-*-unixware2*
6362i[34567]86-*-unixware*
6363i[34567]86-*-sysv*
6364i[34567]86-*-isc*
6365m68*-cisco*-*
6366m68*-tandem-*
ad527d2e 6367mips*-*-pe
483367ee 6368rs6000-*-lynxos*
ad527d2e 6369sh*-*-pe
483367ee 6370
7ce59000
DJ
6371* Other removed features
6372
6373target abug
6374target cpu32bug
6375target est
6376target rom68k
6377
6378 Various m68k-only ROM monitors.
6379
ea35711c
DJ
6380target hms
6381target e7000
6382target sh3
6383target sh3e
6384
6385 Various Renesas ROM monitors and debugging interfaces for SH and
6386 H8/300.
6387
6388target ocd
6389
6390 Support for a Macraigor serial interface to on-chip debugging.
6391 GDB does not directly support the newer parallel or USB
6392 interfaces.
6393
7ce59000
DJ
6394DWARF 1 support
6395
6396 A debug information format. The predecessor to DWARF 2 and
6397 DWARF 3, which are still supported.
6398
54d61198
DJ
6399Support for the HP aCC compiler on HP-UX/PA-RISC
6400
6401 SOM-encapsulated symbolic debugging information, automatic
6402 invocation of pxdb, and the aCC custom C++ ABI. This does not
6403 affect HP-UX for Itanium or GCC for HP-UX/PA-RISC. Code compiled
6404 with aCC can still be debugged on an assembly level.
6405
ea35711c
DJ
6406MIPS ".pdr" sections
6407
6408 A MIPS-specific format used to describe stack frame layout
6409 in debugging information.
6410
6411Scheme support
6412
6413 GDB could work with an older version of Guile to debug
6414 the interpreter and Scheme programs running in it.
6415
1a69e1e4
DJ
6416set mips stack-arg-size
6417set mips saved-gpreg-size
6418
6419 Use "set mips abi" to control parameter passing for MIPS.
6420
6dd09645 6421*** Changes in GDB 6.6
e374b601 6422
ca3bf3bd
DJ
6423* New targets
6424
6425Xtensa xtensa-elf
9c309e77 6426Cell Broadband Engine SPU spu-elf
ca3bf3bd 6427
6aec2e11
DJ
6428* GDB can now be configured as a cross-debugger targeting native Windows
6429(mingw32) or Cygwin. It can communicate with a remote debugging stub
6430running on a Windows system over TCP/IP to debug Windows programs.
6431
6432* The GDB remote stub, gdbserver, has been updated to support Windows and
6433Cygwin debugging. Both single-threaded and multi-threaded programs are
6434supported.
6435
17218d91
DJ
6436* The "set trust-readonly-sections" command works again. This command was
6437broken in GDB 6.3, 6.4, and 6.5.
6438
9ebce043
DJ
6439* The "load" command now supports writing to flash memory, if the remote
6440stub provides the required support.
6441
7d3d3ece
DJ
6442* Support for GNU/Linux Thread Local Storage (TLS, per-thread variables) no
6443longer requires symbolic debug information (e.g. DWARF-2).
6444
4f8253f3
JB
6445* New commands
6446
6447set substitute-path
6448unset substitute-path
6449show substitute-path
6450 Manage a list of substitution rules that GDB uses to rewrite the name
6451 of the directories where the sources are located. This can be useful
6452 for instance when the sources were moved to a different location
6453 between compilation and debugging.
6454
9fa66fd7
AS
6455set trace-commands
6456show trace-commands
6457 Print each CLI command as it is executed. Each command is prefixed with
6458 a number of `+' symbols representing the nesting depth.
6459 The source command now has a `-v' option to enable the same feature.
6460
1f5befc1
DJ
6461* REMOVED features
6462
6463The ARM Demon monitor support (RDP protocol, "target rdp").
6464
2ec3381a
DJ
6465Kernel Object Display, an embedded debugging feature which only worked with
6466an obsolete version of Cisco IOS.
6467
3d00d119
DJ
6468The 'set download-write-size' and 'show download-write-size' commands.
6469
be2a5f71
DJ
6470* New remote packets
6471
6472qSupported:
6473 Tell a stub about GDB client features, and request remote target features.
6474 The first feature implemented is PacketSize, which allows the target to
6475 specify the size of packets it can handle - to minimize the number of
6476 packets required and improve performance when connected to a remote
6477 target.
6478
0876f84a
DJ
6479qXfer:auxv:read:
6480 Fetch an OS auxilliary vector from the remote stub. This packet is a
6481 more efficient replacement for qPart:auxv:read.
6482
9ebce043
DJ
6483qXfer:memory-map:read:
6484 Fetch a memory map from the remote stub, including information about
6485 RAM, ROM, and flash memory devices.
6486
6487vFlashErase:
6488vFlashWrite:
6489vFlashDone:
6490 Erase and program a flash memory device.
6491
0876f84a
DJ
6492* Removed remote packets
6493
6494qPart:auxv:read:
6495 This packet has been replaced by qXfer:auxv:read. Only GDB 6.4 and 6.5
6496 used it, and only gdbserver implemented it.
6497
e374b601 6498*** Changes in GDB 6.5
53e5f3cf 6499
96309189
MS
6500* New targets
6501
6502Renesas M32C/M16C m32c-elf
6503
6504Morpho Technologies ms1 ms1-elf
6505
53e5f3cf
AS
6506* New commands
6507
6508init-if-undefined Initialize a convenience variable, but
6509 only if it doesn't already have a value.
6510
ac264b3b
MS
6511The following commands are presently only implemented for native GNU/Linux:
6512
6513checkpoint Save a snapshot of the program state.
6514
6515restart <n> Return the program state to a
6516 previously saved state.
6517
6518info checkpoints List currently saved checkpoints.
6519
6520delete-checkpoint <n> Delete a previously saved checkpoint.
6521
6522set|show detach-on-fork Tell gdb whether to detach from a newly
6523 forked process, or to keep debugging it.
6524
6525info forks List forks of the user program that
6526 are available to be debugged.
6527
6528fork <n> Switch to debugging one of several
6529 forks of the user program that are
6530 available to be debugged.
6531
6532delete-fork <n> Delete a fork from the list of forks
6533 that are available to be debugged (and
6534 kill the forked process).
6535
6536detach-fork <n> Delete a fork from the list of forks
6537 that are available to be debugged (and
6538 allow the process to continue).
6539
3950dc3f
NS
6540* New architecture
6541
6542Morpho Technologies ms2 ms1-elf
6543
0ea3f30e
DJ
6544* Improved Windows host support
6545
6546GDB now builds as a cross debugger hosted on i686-mingw32, including
6547native console support, and remote communications using either
6548network sockets or serial ports.
6549
f79daebb
GM
6550* Improved Modula-2 language support
6551
6552GDB can now print most types in the Modula-2 syntax. This includes:
6553basic types, set types, record types, enumerated types, range types,
6554pointer types and ARRAY types. Procedure var parameters are correctly
6555printed and hexadecimal addresses and character constants are also
6556written in the Modula-2 syntax. Best results can be obtained by using
6557GNU Modula-2 together with the -gdwarf-2 command line option.
6558
acab6ab2
MM
6559* REMOVED features
6560
6561The ARM rdi-share module.
6562
f4267320
DJ
6563The Netware NLM debug server.
6564
53e5f3cf 6565*** Changes in GDB 6.4
156a53ca 6566
e0ecbda1
MK
6567* New native configurations
6568
02a677ac 6569OpenBSD/arm arm*-*-openbsd*
e0ecbda1
MK
6570OpenBSD/mips64 mips64-*-openbsd*
6571
d64a6579
KB
6572* New targets
6573
6574Morpho Technologies ms1 ms1-elf
6575
b33a6190
AS
6576* New command line options
6577
6578--batch-silent As for --batch, but totally silent.
6579--return-child-result The debugger will exist with the same value
6580 the child (debugged) program exited with.
6581--eval-command COMMAND, -ex COMMAND
6582 Execute a single GDB CLI command. This may be
6583 specified multiple times and in conjunction
6584 with the --command (-x) option.
6585
11dced61
AC
6586* Deprecated commands removed
6587
6588The following commands, that were deprecated in 2000, have been
6589removed:
6590
6591 Command Replacement
6592 set|show arm disassembly-flavor set|show arm disassembler
6593 othernames set arm disassembler
6594 set|show remotedebug set|show debug remote
6595 set|show archdebug set|show debug arch
6596 set|show eventdebug set|show debug event
6597 regs info registers
6598
6fe85783
MK
6599* New BSD user-level threads support
6600
6601It is now possible to debug programs using the user-level threads
6602library on OpenBSD and FreeBSD. Currently supported (target)
6603configurations are:
6604
6605FreeBSD/amd64 x86_64-*-freebsd*
6606FreeBSD/i386 i386-*-freebsd*
6607OpenBSD/i386 i386-*-openbsd*
6608
6609Note that the new kernel threads libraries introduced in FreeBSD 5.x
6610are not yet supported.
6611
5260ca71
MS
6612* New support for Matsushita MN10300 w/sim added
6613(Work in progress). mn10300-elf.
6614
e84ecc99
AC
6615* REMOVED configurations and files
6616
6617VxWorks and the XDR protocol *-*-vxworks
9445aa30 6618Motorola MCORE mcore-*-*
9445aa30 6619National Semiconductor NS32000 ns32k-*-*
156a53ca 6620
31e35378
JB
6621* New "set print array-indexes" command
6622
6623After turning this setting "on", GDB prints the index of each element
6624when displaying arrays. The default is "off" to preserve the previous
6625behavior.
6626
e85e5c83
MK
6627* VAX floating point support
6628
6629GDB now supports the not-quite-ieee VAX F and D floating point formats.
6630
d91e9901
AS
6631* User-defined command support
6632
6633In addition to using $arg0..$arg9 for argument passing, it is now possible
6634to use $argc to determine now many arguments have been passed. See the
6635section on user-defined commands in the user manual for more information.
6636
f2cb65ca
MC
6637*** Changes in GDB 6.3:
6638
f47b1503
AS
6639* New command line option
6640
6641GDB now accepts -l followed by a number to set the timeout for remote
6642debugging.
6643
f2cb65ca
MC
6644* GDB works with GCC -feliminate-dwarf2-dups
6645
6646GDB now supports a more compact representation of DWARF-2 debug
6647information using DW_FORM_ref_addr references. These are produced
6648by GCC with the option -feliminate-dwarf2-dups and also by some
6649proprietary compilers. With GCC, you must use GCC 3.3.4 or later
6650to use -feliminate-dwarf2-dups.
860660cb 6651
d08c0230
AC
6652* Internationalization
6653
6654When supported by the host system, GDB will be built with
6655internationalization (libintl). The task of marking up the sources is
6656continued, we're looking forward to our first translation.
6657
117ea3cf
PH
6658* Ada
6659
6660Initial support for debugging programs compiled with the GNAT
6661implementation of the Ada programming language has been integrated
6662into GDB. In this release, support is limited to expression evaluation.
6663
d08c0230
AC
6664* New native configurations
6665
6666GNU/Linux/m32r m32r-*-linux-gnu
6667
6668* Remote 'p' packet
6669
6670GDB's remote protocol now includes support for the 'p' packet. This
6671packet is used to fetch individual registers from a remote inferior.
6672
6673* END-OF-LIFE registers[] compatibility module
6674
6675GDB's internal register infrastructure has been completely rewritten.
6676The new infrastructure making possible the implementation of key new
6677features including 32x64 (e.g., 64-bit amd64 GDB debugging a 32-bit
6678i386 application).
6679
09f2921c 6680GDB 6.3 will be the last release to include the registers[]
d08c0230
AC
6681compatibility module that allowed out-of-date configurations to
6682continue to work. This change directly impacts the following
6683configurations:
6684
6685hppa-*-hpux
6686ia64-*-aix
6687mips-*-irix*
6688*-*-lynx
6689mips-*-linux-gnu
6690sds protocol
6691xdr protocol
6692powerpc bdm protocol
6693
6694Unless there is activity to revive these configurations, they will be
6695made OBSOLETE in GDB 6.4, and REMOVED from GDB 6.5.
6696
6697* OBSOLETE configurations and files
6698
6699Configurations that have been declared obsolete in this release have
6700been commented out. Unless there is activity to revive these
6701configurations, the next release of GDB will have their sources
6702permanently REMOVED.
6703
6704h8300-*-*
6705mcore-*-*
6706mn10300-*-*
6707ns32k-*-*
6708sh64-*-*
6709v850-*-*
6710
ebb7c577
AC
6711*** Changes in GDB 6.2.1:
6712
6713* MIPS `break main; run' gave an heuristic-fence-post warning
6714
6715When attempting to run even a simple program, a warning about
6716heuristic-fence-post being hit would be reported. This problem has
6717been fixed.
6718
6719* MIPS IRIX 'long double' crashed GDB
6720
6721When examining a long double variable, GDB would get a segmentation
6722fault. The crash has been fixed (but GDB 6.2 cannot correctly examine
6723IRIX long double values).
6724
6725* VAX and "next"
6726
6727A bug in the VAX stack code was causing problems with the "next"
6728command. This problem has been fixed.
6729
860660cb 6730*** Changes in GDB 6.2:
faae5abe 6731
0dea2468
AC
6732* Fix for ``many threads''
6733
6734On GNU/Linux systems that use the NPTL threads library, a program
6735rapidly creating and deleting threads would confuse GDB leading to the
6736error message:
6737
6738 ptrace: No such process.
6739 thread_db_get_info: cannot get thread info: generic error
6740
6741This problem has been fixed.
6742
2c07db7a
AC
6743* "-async" and "-noasync" options removed.
6744
6745Support for the broken "-noasync" option has been removed (it caused
6746GDB to dump core).
6747
c23968a2
JB
6748* New ``start'' command.
6749
82f06518 6750This command runs the program until the beginning of the main procedure.
c23968a2 6751
71009278
MK
6752* New BSD Kernel Data Access Library (libkvm) interface
6753
6754Using ``target kvm'' it is now possible to debug kernel core dumps and
6755live kernel memory images on various FreeBSD, NetBSD and OpenBSD
6756platforms. Currently supported (native-only) configurations are:
6757
6758FreeBSD/amd64 x86_64-*-freebsd*
6759FreeBSD/i386 i?86-*-freebsd*
6760NetBSD/i386 i?86-*-netbsd*
6761NetBSD/m68k m68*-*-netbsd*
6762NetBSD/sparc sparc-*-netbsd*
6763OpenBSD/amd64 x86_64-*-openbsd*
6764OpenBSD/i386 i?86-*-openbsd*
6765OpenBSD/m68k m68*-openbsd*
6766OpenBSD/sparc sparc-*-openbsd*
6767
3c0b7db2
AC
6768* Signal trampoline code overhauled
6769
6770Many generic problems with GDB's signal handling code have been fixed.
6771These include: backtraces through non-contiguous stacks; recognition
6772of sa_sigaction signal trampolines; backtrace from a NULL pointer
6773call; backtrace through a signal trampoline; step into and out of
6774signal handlers; and single-stepping in the signal trampoline.
6775
73cc75f3
AC
6776Please note that kernel bugs are a limiting factor here. These
6777features have been shown to work on an s390 GNU/Linux system that
6778include a 2.6.8-rc1 kernel. Ref PR breakpoints/1702.
3c0b7db2 6779
7243600a
BF
6780* Cygwin support for DWARF 2 added.
6781
6f606e1c
MK
6782* New native configurations
6783
97dc871c 6784GNU/Linux/hppa hppa*-*-linux*
0e56aeaf 6785OpenBSD/hppa hppa*-*-openbsd*
bf2ca189
MK
6786OpenBSD/m68k m68*-*-openbsd*
6787OpenBSD/m88k m88*-*-openbsd*
d195bc9f 6788OpenBSD/powerpc powerpc-*-openbsd*
6f606e1c 6789NetBSD/vax vax-*-netbsd*
9f076e7a 6790OpenBSD/vax vax-*-openbsd*
6f606e1c 6791
a1b461bf
AC
6792* END-OF-LIFE frame compatibility module
6793
6794GDB's internal frame infrastructure has been completely rewritten.
6795The new infrastructure making it possible to support key new features
6796including DWARF 2 Call Frame Information. To aid in the task of
6797migrating old configurations to this new infrastructure, a
6798compatibility module, that allowed old configurations to continue to
6799work, was also included.
6800
6801GDB 6.2 will be the last release to include this frame compatibility
6802module. This change directly impacts the following configurations:
6803
6804h8300-*-*
6805mcore-*-*
6806mn10300-*-*
6807ns32k-*-*
6808sh64-*-*
6809v850-*-*
6810xstormy16-*-*
6811
6812Unless there is activity to revive these configurations, they will be
6813made OBSOLETE in GDB 6.3, and REMOVED from GDB 6.4.
6814
3c7012f5
AC
6815* REMOVED configurations and files
6816
6817Sun 3, running SunOS 3 m68*-*-sunos3*
6818Sun 3, running SunOS 4 m68*-*-sunos4*
6819Sun 2, running SunOS 3 m68000-*-sunos3*
6820Sun 2, running SunOS 4 m68000-*-sunos4*
6821Motorola 680x0 running LynxOS m68*-*-lynxos*
6822AT&T 3b1/Unix pc m68*-att-*
6823Bull DPX2 (68k, System V release 3) m68*-bull-sysv*
6824decstation mips-dec-* mips-little-*
6825riscos mips-*-riscos* mips-*-sysv*
6826sonymips mips-sony-*
6827sysv mips*-*-sysv4* (IRIX 5/6 not included)
6828
e5fe55f7
AC
6829*** Changes in GDB 6.1.1:
6830
6831* TUI (Text-mode User Interface) built-in (also included in GDB 6.1)
6832
6833The TUI (Text-mode User Interface) is now built as part of a default
6834GDB configuration. It is enabled by either selecting the TUI with the
6835command line option "-i=tui" or by running the separate "gdbtui"
6836program. For more information on the TUI, see the manual "Debugging
6837with GDB".
6838
6839* Pending breakpoint support (also included in GDB 6.1)
6840
6841Support has been added to allow you to specify breakpoints in shared
6842libraries that have not yet been loaded. If a breakpoint location
6843cannot be found, and the "breakpoint pending" option is set to auto,
6844GDB queries you if you wish to make the breakpoint pending on a future
6845shared-library load. If and when GDB resolves the breakpoint symbol,
6846the pending breakpoint is removed as one or more regular breakpoints
6847are created.
6848
6849Pending breakpoints are very useful for GCJ Java debugging.
6850
6851* Fixed ISO-C build problems
6852
6853The files bfd/elf-bfd.h, gdb/dictionary.c and gdb/types.c contained
6854non ISO-C code that stopped them being built using a more strict ISO-C
6855compiler (e.g., IBM's C compiler).
6856
6857* Fixed build problem on IRIX 5
6858
6859Due to header problems with <sys/proc.h>, the file gdb/proc-api.c
6860wasn't able to compile compile on an IRIX 5 system.
6861
6862* Added execute permission to gdb/gdbserver/configure
6863
6864The shell script gdb/testsuite/gdb.stabs/configure lacked execute
6865permission. This bug would cause configure to fail on a number of
6866systems (Solaris, IRIX). Ref: server/519.
6867
6868* Fixed build problem on hpux2.0w-hp-hpux11.00 using the HP ANSI C compiler
6869
6870Older HPUX ANSI C compilers did not accept variable array sizes. somsolib.c
6871has been updated to use constant array sizes.
6872
6873* Fixed a panic in the DWARF Call Frame Info code on Solaris 2.7
6874
6875GCC 3.3.2, on Solaris 2.7, includes the DW_EH_PE_funcrel encoding in
6876its generated DWARF Call Frame Info. This encoding was causing GDB to
6877panic, that panic has been fixed. Ref: gdb/1628.
6878
6879* Fixed a problem when examining parameters in shared library code.
6880
6881When examining parameters in optimized shared library code generated
6882by a mainline GCC, GDB would incorrectly report ``Variable "..." is
6883not available''. GDB now correctly displays the variable's value.
6884
faae5abe 6885*** Changes in GDB 6.1:
f2c06f52 6886
9175c9a3
MC
6887* Removed --with-mmalloc
6888
6889Support for the mmalloc memory manager has been removed, as it
6890conflicted with the internal gdb byte cache.
6891
3cc87ec0
MK
6892* Changes in AMD64 configurations
6893
6894The AMD64 target now includes the %cs and %ss registers. As a result
6895the AMD64 remote protocol has changed; this affects the floating-point
6896and SSE registers. If you rely on those registers for your debugging,
6897you should upgrade gdbserver on the remote side.
6898
f0424ef6
MK
6899* Revised SPARC target
6900
6901The SPARC target has been completely revised, incorporating the
6902FreeBSD/sparc64 support that was added for GDB 6.0. As a result
03cebad2
MK
6903support for LynxOS and SunOS 4 has been dropped. Calling functions
6904from within GDB on operating systems with a non-executable stack
6905(Solaris, OpenBSD) now works.
f0424ef6 6906
59659be2
ILT
6907* New C++ demangler
6908
6909GDB has a new C++ demangler which does a better job on the mangled
6910names generated by current versions of g++. It also runs faster, so
6911with this and other changes gdb should now start faster on large C++
6912programs.
6913
9e08b29b
DJ
6914* DWARF 2 Location Expressions
6915
6916GDB support for location expressions has been extended to support function
6917arguments and frame bases. Older versions of GDB could crash when they
6918encountered these.
6919
8dfe8985
DC
6920* C++ nested types and namespaces
6921
6922GDB's support for nested types and namespaces in C++ has been
6923improved, especially if you use the DWARF 2 debugging format. (This
6924is the default for recent versions of GCC on most platforms.)
6925Specifically, if you have a class "Inner" defined within a class or
6926namespace "Outer", then GDB realizes that the class's name is
6927"Outer::Inner", not simply "Inner". This should greatly reduce the
6928frequency of complaints about not finding RTTI symbols. In addition,
6929if you are stopped at inside of a function defined within a namespace,
6930GDB modifies its name lookup accordingly.
6931
cced5e27
MK
6932* New native configurations
6933
6934NetBSD/amd64 x86_64-*-netbsd*
27d1e716 6935OpenBSD/amd64 x86_64-*-openbsd*
2031c21a 6936OpenBSD/alpha alpha*-*-openbsd*
f2cab569
MK
6937OpenBSD/sparc sparc-*-openbsd*
6938OpenBSD/sparc64 sparc64-*-openbsd*
cced5e27 6939
b4b4b794
KI
6940* New debugging protocols
6941
6942M32R with SDI protocol m32r-*-elf*
6943
7989c619
AC
6944* "set prompt-escape-char" command deleted.
6945
6946The command "set prompt-escape-char" has been deleted. This command,
82f06518 6947and its very obscure effect on GDB's prompt, was never documented,
7989c619
AC
6948tested, nor mentioned in the NEWS file.
6949
5994185b
AC
6950* OBSOLETE configurations and files
6951
6952Configurations that have been declared obsolete in this release have
6953been commented out. Unless there is activity to revive these
6954configurations, the next release of GDB will have their sources
6955permanently REMOVED.
6956
6957Sun 3, running SunOS 3 m68*-*-sunos3*
6958Sun 3, running SunOS 4 m68*-*-sunos4*
6959Sun 2, running SunOS 3 m68000-*-sunos3*
6960Sun 2, running SunOS 4 m68000-*-sunos4*
6961Motorola 680x0 running LynxOS m68*-*-lynxos*
6962AT&T 3b1/Unix pc m68*-att-*
6963Bull DPX2 (68k, System V release 3) m68*-bull-sysv*
0748d941
AC
6964decstation mips-dec-* mips-little-*
6965riscos mips-*-riscos* mips-*-sysv*
6966sonymips mips-sony-*
6967sysv mips*-*-sysv4* (IRIX 5/6 not included)
5994185b 6968
0ddabb4c
AC
6969* REMOVED configurations and files
6970
6971SGI Irix-4.x mips-sgi-irix4 or iris4
6972SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
4a8269c0
AC
6973Z8000 simulator z8k-zilog-none or z8ksim
6974Matsushita MN10200 w/simulator mn10200-*-*
6975H8/500 simulator h8500-hitachi-hms or h8500hms
6976HP/PA running BSD hppa*-*-bsd*
6977HP/PA running OSF/1 hppa*-*-osf*
6978HP/PA Pro target hppa*-*-pro*
6979PMAX (MIPS) running Mach 3.0 mips*-*-mach3*
cf7c5c23 6980386BSD i[3456]86-*-bsd*
4a8269c0
AC
6981Sequent family i[3456]86-sequent-sysv4*
6982 i[3456]86-sequent-sysv*
6983 i[3456]86-sequent-bsd*
f0424ef6
MK
6984SPARC running LynxOS sparc-*-lynxos*
6985SPARC running SunOS 4 sparc-*-sunos4*
4a8269c0
AC
6986Tsqware Sparclet sparclet-*-*
6987Fujitsu SPARClite sparclite-fujitsu-none or sparclite
0ddabb4c 6988
c7f1390e
DJ
6989*** Changes in GDB 6.0:
6990
1fe43d45
AC
6991* Objective-C
6992
6993Support for debugging the Objective-C programming language has been
6994integrated into GDB.
6995
e6beb428
AC
6996* New backtrace mechanism (includes DWARF 2 Call Frame Information).
6997
6998DWARF 2's Call Frame Information makes available compiler generated
6999information that more exactly describes the program's run-time stack.
7000By using this information, GDB is able to provide more robust stack
7001backtraces.
7002
7003The i386, amd64 (nee, x86-64), Alpha, m68hc11, ia64, and m32r targets
7004have been updated to use a new backtrace mechanism which includes
7005DWARF 2 CFI support.
7006
7007* Hosted file I/O.
7008
7009GDB's remote protocol has been extended to include support for hosted
7010file I/O (where the remote target uses GDB's file system). See GDB's
7011remote protocol documentation for details.
7012
7013* All targets using the new architecture framework.
7014
7015All of GDB's targets have been updated to use the new internal
7016architecture framework. The way is now open for future GDB releases
7017to include cross-architecture native debugging support (i386 on amd64,
7018ppc32 on ppc64).
7019
7020* GNU/Linux's Thread Local Storage (TLS)
7021
7022GDB now includes support for for the GNU/Linux implementation of
7023per-thread variables.
7024
7025* GNU/Linux's Native POSIX Thread Library (NPTL)
7026
7027GDB's thread code has been updated to work with either the new
7028GNU/Linux NPTL thread library or the older "LinuxThreads" library.
7029
7030* Separate debug info.
7031
7032GDB, in conjunction with BINUTILS, now supports a mechanism for
7033automatically loading debug information from a separate file. Instead
7034of shipping full debug and non-debug versions of system libraries,
7035system integrators can now instead ship just the stripped libraries
7036and optional debug files.
7037
7038* DWARF 2 Location Expressions
7039
7040DWARF 2 Location Expressions allow the compiler to more completely
7041describe the location of variables (even in optimized code) to the
7042debugger.
7043
7044GDB now includes preliminary support for location expressions (support
7045for DW_OP_piece is still missing).
7046
7047* Java
7048
7049A number of long standing bugs that caused GDB to die while starting a
7050Java application have been fixed. GDB's Java support is now
7051considered "useable".
7052
85f8f974
DJ
7053* GNU/Linux support for fork, vfork, and exec.
7054
7055The "catch fork", "catch exec", "catch vfork", and "set follow-fork-mode"
7056commands are now implemented for GNU/Linux. They require a 2.5.x or later
7057kernel.
7058
0fac0b41
DJ
7059* GDB supports logging output to a file
7060
7061There are two new commands, "set logging" and "show logging", which can be
7062used to capture GDB's output to a file.
f2c06f52 7063
6ad8ae5c
DJ
7064* The meaning of "detach" has changed for gdbserver
7065
7066The "detach" command will now resume the application, as documented. To
7067disconnect from gdbserver and leave it stopped, use the new "disconnect"
7068command.
7069
e286caf2 7070* d10v, m68hc11 `regs' command deprecated
5f601589
AC
7071
7072The `info registers' command has been updated so that it displays the
7073registers using a format identical to the old `regs' command.
7074
d28f9cdf
DJ
7075* Profiling support
7076
7077A new command, "maint set profile on/off", has been added. This command can
7078be used to enable or disable profiling while running GDB, to profile a
7079session or a set of commands. In addition there is a new configure switch,
7080"--enable-profiling", which will cause GDB to be compiled with profiling
7081data, for more informative profiling results.
7082
da0f9dcd
AC
7083* Default MI syntax changed to "mi2".
7084
7085The default MI (machine interface) syntax, enabled by the command line
7086option "-i=mi", has been changed to "mi2". The previous MI syntax,
b68767c1 7087"mi1", can be enabled by specifying the option "-i=mi1".
da0f9dcd
AC
7088
7089Support for the original "mi0" syntax (included in GDB 5.0) has been
7090removed.
7091
fb9b6b35
JJ
7092Fix for gdb/192: removed extraneous space when displaying frame level.
7093Fix for gdb/672: update changelist is now output in mi list format.
7094Fix for gdb/702: a -var-assign that updates the value now shows up
7095 in a subsequent -var-update.
7096
954a4db8
MK
7097* New native configurations.
7098
7099FreeBSD/amd64 x86_64-*-freebsd*
7100
6760f9e6
JB
7101* Multi-arched targets.
7102
b4263afa 7103HP/PA HPUX11 hppa*-*-hpux*
85a453d5 7104Renesas M32R/D w/simulator m32r-*-elf*
6760f9e6 7105
1b831c93
AC
7106* OBSOLETE configurations and files
7107
7108Configurations that have been declared obsolete in this release have
7109been commented out. Unless there is activity to revive these
7110configurations, the next release of GDB will have their sources
7111permanently REMOVED.
7112
8b0e5691 7113Z8000 simulator z8k-zilog-none or z8ksim
67f16606 7114Matsushita MN10200 w/simulator mn10200-*-*
fd2299bd 7115H8/500 simulator h8500-hitachi-hms or h8500hms
56056df7
AC
7116HP/PA running BSD hppa*-*-bsd*
7117HP/PA running OSF/1 hppa*-*-osf*
7118HP/PA Pro target hppa*-*-pro*
78c43945 7119PMAX (MIPS) running Mach 3.0 mips*-*-mach3*
2fbce691
AC
7120Sequent family i[3456]86-sequent-sysv4*
7121 i[3456]86-sequent-sysv*
7122 i[3456]86-sequent-bsd*
f81824a9
AC
7123Tsqware Sparclet sparclet-*-*
7124Fujitsu SPARClite sparclite-fujitsu-none or sparclite
fd2299bd 7125
5835abe7
NC
7126* REMOVED configurations and files
7127
7128V850EA ISA
1b831c93
AC
7129Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
7130IBM AIX PS/2 i[3456]86-*-aix
7131i386 running Mach 3.0 i[3456]86-*-mach3*
7132i386 running Mach i[3456]86-*-mach*
7133i386 running OSF/1 i[3456]86-*osf1mk*
7134HP/Apollo 68k Family m68*-apollo*-sysv*,
7135 m68*-apollo*-bsd*,
7136 m68*-hp-bsd*, m68*-hp-hpux*
7137Argonaut Risc Chip (ARC) arc-*-*
7138Mitsubishi D30V d30v-*-*
7139Fujitsu FR30 fr30-*-elf*
7140OS/9000 i[34]86-*-os9k
7141I960 with MON960 i960-*-coff
5835abe7 7142
a094c6fb
AC
7143* MIPS $fp behavior changed
7144
7145The convenience variable $fp, for the MIPS, now consistently returns
7146the address of the current frame's base. Previously, depending on the
7147context, $fp could refer to either $sp or the current frame's base
7148address. See ``8.10 Registers'' in the manual ``Debugging with GDB:
7149The GNU Source-Level Debugger''.
7150
299ffc64 7151*** Changes in GDB 5.3:
37057839 7152
46248966
AC
7153* GNU/Linux shared library multi-threaded performance improved.
7154
7155When debugging a multi-threaded application on GNU/Linux, GDB now uses
7156`/proc', in preference to `ptrace' for memory reads. This may result
7157in an improvement in the start-up time of multi-threaded, shared
7158library applications when run under GDB. One GDB user writes: ``loads
7159shared libs like mad''.
7160
b9d14705 7161* ``gdbserver'' now supports multi-threaded applications on some targets
6da02953 7162
b9d14705
DJ
7163Support for debugging multi-threaded applications which use
7164the GNU/Linux LinuxThreads package has been added for
7165arm*-*-linux*-gnu*, i[3456]86-*-linux*-gnu*, mips*-*-linux*-gnu*,
7166powerpc*-*-linux*-gnu*, and sh*-*-linux*-gnu*.
6da02953 7167
e0e9281e
JB
7168* GDB now supports C/C++ preprocessor macros.
7169
7170GDB now expands preprocessor macro invocations in C/C++ expressions,
7171and provides various commands for showing macro definitions and how
7172they expand.
7173
dd73b9bb
AC
7174The new command `macro expand EXPRESSION' expands any macro
7175invocations in expression, and shows the result.
7176
7177The new command `show macro MACRO-NAME' shows the definition of the
7178macro named MACRO-NAME, and where it was defined.
7179
e0e9281e
JB
7180Most compilers don't include information about macros in the debugging
7181information by default. In GCC 3.1, for example, you need to compile
7182your program with the options `-gdwarf-2 -g3'. If the macro
7183information is present in the executable, GDB will read it.
7184
2250ee0c
CV
7185* Multi-arched targets.
7186
6e3ba3b8
JT
7187DEC Alpha (partial) alpha*-*-*
7188DEC VAX (partial) vax-*-*
2250ee0c 7189NEC V850 v850-*-*
6e3ba3b8 7190National Semiconductor NS32000 (partial) ns32k-*-*
a1789893
GS
7191Motorola 68000 (partial) m68k-*-*
7192Motorola MCORE mcore-*-*
2250ee0c 7193
cd9bfe15 7194* New targets.
e33ce519 7195
456f8b9d
DB
7196Fujitsu FRV architecture added by Red Hat frv*-*-*
7197
e33ce519 7198
da8ca43d
JT
7199* New native configurations
7200
7201Alpha NetBSD alpha*-*-netbsd*
029923d4 7202SH NetBSD sh*-*-netbsdelf*
45888261 7203MIPS NetBSD mips*-*-netbsd*
9ce5c36a 7204UltraSPARC NetBSD sparc64-*-netbsd*
da8ca43d 7205
cd9bfe15
AC
7206* OBSOLETE configurations and files
7207
7208Configurations that have been declared obsolete in this release have
7209been commented out. Unless there is activity to revive these
7210configurations, the next release of GDB will have their sources
7211permanently REMOVED.
7212
92eb23c5 7213Mitsubishi D30V d30v-*-*
a99a9e1b 7214OS/9000 i[34]86-*-os9k
1c7cc583 7215IBM AIX PS/2 i[3456]86-*-aix
7a3085c1 7216Fujitsu FR30 fr30-*-elf*
7fb623f7 7217Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
eb4c54a2 7218Argonaut Risc Chip (ARC) arc-*-*
d8ee244c
MK
7219i386 running Mach 3.0 i[3456]86-*-mach3*
7220i386 running Mach i[3456]86-*-mach*
7221i386 running OSF/1 i[3456]86-*osf1mk*
822e978b
AC
7222HP/Apollo 68k Family m68*-apollo*-sysv*,
7223 m68*-apollo*-bsd*,
7224 m68*-hp-bsd*, m68*-hp-hpux*
4d210288 7225I960 with MON960 i960-*-coff
92eb23c5 7226
db034ac5
AC
7227* OBSOLETE languages
7228
7229CHILL, a Pascal like language used by telecommunications companies.
7230
cd9bfe15
AC
7231* REMOVED configurations and files
7232
7233AMD 29k family via UDI a29k-amd-udi, udi29k
7234A29K VxWorks a29k-*-vxworks
7235AMD 29000 embedded, using EBMON a29k-none-none
7236AMD 29000 embedded with COFF a29k-none-coff
7237AMD 29000 embedded with a.out a29k-none-aout
7238
7239testsuite/gdb.hp/gdb.threads-hp/ directory
7240
20f01a46
DH
7241* New command "set max-user-call-depth <nnn>"
7242
7243This command allows the user to limit the call depth of user-defined
7244commands. The default is 1024.
7245
a5941fbf
MK
7246* Changes in FreeBSD/i386 native debugging.
7247
7248Support for the "generate-core-file" has been added.
7249
89743e04
MS
7250* New commands "dump", "append", and "restore".
7251
7252These commands allow data to be copied from target memory
7253to a bfd-format or binary file (dump and append), and back
7254from a file into memory (restore).
37057839 7255
9fb14e79
JB
7256* Improved "next/step" support on multi-processor Alpha Tru64.
7257
7258The previous single-step mechanism could cause unpredictable problems,
7259including the random appearance of SIGSEGV or SIGTRAP signals. The use
7260of a software single-step mechanism prevents this.
7261
2037aebb
AC
7262*** Changes in GDB 5.2.1:
7263
7264* New targets.
7265
7266Atmel AVR avr*-*-*
7267
7268* Bug fixes
7269
7270gdb/182: gdb/323: gdb/237: On alpha, gdb was reporting:
7271mdebugread.c:2443: gdb-internal-error: sect_index_data not initialized
7272Fix, by Joel Brobecker imported from mainline.
7273
7274gdb/439: gdb/291: On some ELF object files, gdb was reporting:
7275dwarf2read.c:1072: gdb-internal-error: sect_index_text not initialize
7276Fix, by Fred Fish, imported from mainline.
7277
7278Dwarf2 .debug_frame & .eh_frame handler improved in many ways.
7279Surprisingly enough, it works now.
7280By Michal Ludvig, imported from mainline.
7281
7282i386 hardware watchpoint support:
7283avoid misses on second run for some targets.
7284By Pierre Muller, imported from mainline.
7285
37057839 7286*** Changes in GDB 5.2:
eb7cedd9 7287
1a703748
MS
7288* New command "set trust-readonly-sections on[off]".
7289
7290This command is a hint that tells gdb that read-only sections
7291really are read-only (ie. that their contents will not change).
7292In this mode, gdb will go to the object file rather than the
7293target to read memory from read-only sections (such as ".text").
7294This can be a significant performance improvement on some
7295(notably embedded) targets.
7296
cefd4ef5
MS
7297* New command "generate-core-file" (or "gcore").
7298
55241689
AC
7299This new gdb command allows the user to drop a core file of the child
7300process state at any time. So far it's been implemented only for
7301GNU/Linux and Solaris, but should be relatively easily ported to other
7302hosts. Argument is core file name (defaults to core.<pid>).
cefd4ef5 7303
352ed7b4
MS
7304* New command line option
7305
7306GDB now accepts --pid or -p followed by a process id.
7307
7308* Change in command line behavior -- corefiles vs. process ids.
7309
7310There is a subtle behavior in the way in which GDB handles
7311command line arguments. The first non-flag argument is always
7312a program to debug, but the second non-flag argument may either
7313be a corefile or a process id. Previously, GDB would attempt to
7314open the second argument as a corefile, and if that failed, would
7315issue a superfluous error message and then attempt to attach it as
7316a process. Now, if the second argument begins with a non-digit,
7317it will be treated as a corefile. If it begins with a digit,
7318GDB will attempt to attach it as a process, and if no such process
7319is found, will then attempt to open it as a corefile.
7320
fe419ffc
RE
7321* Changes in ARM configurations.
7322
7323Multi-arch support is enabled for all ARM configurations. The ARM/NetBSD
7324configuration is fully multi-arch.
7325
eb7cedd9
MK
7326* New native configurations
7327
fe419ffc 7328ARM NetBSD arm*-*-netbsd*
eb7cedd9 7329x86 OpenBSD i[3456]86-*-openbsd*
55241689 7330AMD x86-64 running GNU/Linux x86_64-*-linux-*
768f0842 7331Sparc64 running FreeBSD sparc64-*-freebsd*
eb7cedd9 7332
c9f63e6b
CV
7333* New targets
7334
7335Sanyo XStormy16 xstormy16-elf
7336
9b4ff276
AC
7337* OBSOLETE configurations and files
7338
7339Configurations that have been declared obsolete in this release have
7340been commented out. Unless there is activity to revive these
7341configurations, the next release of GDB will have their sources
7342permanently REMOVED.
7343
7344AMD 29k family via UDI a29k-amd-udi, udi29k
7345A29K VxWorks a29k-*-vxworks
7346AMD 29000 embedded, using EBMON a29k-none-none
7347AMD 29000 embedded with COFF a29k-none-coff
7348AMD 29000 embedded with a.out a29k-none-aout
7349
b4ceaee6 7350testsuite/gdb.hp/gdb.threads-hp/ directory
9b4ff276 7351
e2caac18
AC
7352* REMOVED configurations and files
7353
7354TI TMS320C80 tic80-*-*
7bc65f05 7355WDC 65816 w65-*-*
7768dd6c
AC
7356PowerPC Solaris powerpcle-*-solaris*
7357PowerPC Windows NT powerpcle-*-cygwin32
7358PowerPC Netware powerpc-*-netware*
5e734e1f 7359Harris/CXUX m88k m88*-harris-cxux*
1406caf7
AC
7360Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-*
7361 ns32k-utek-sysv* ns32k-utek-*
7e24f0b1 7362SunOS 4.0.Xi on i386 i[3456]86-*-sunos*
9b567150 7363Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern*
3680c638
AC
7364Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news
7365ISI Optimum V (3.05) under 4.3bsd. m68*-isi-*
a752853e 7366Apple Macintosh (MPW) host and target N/A host, powerpc-*-macos*
e2caac18 7367
c2a727fa
TT
7368* Changes to command line processing
7369
7370The new `--args' feature can be used to specify command-line arguments
7371for the inferior from gdb's command line.
7372
467d8519
TT
7373* Changes to key bindings
7374
7375There is a new `operate-and-get-next' function bound to `C-o'.
7376
7072a954
AC
7377*** Changes in GDB 5.1.1
7378
7379Fix compile problem on DJGPP.
7380
7381Fix a problem with floating-point registers on the i386 being
7382corrupted.
7383
7384Fix to stop GDB crashing on .debug_str debug info.
7385
7386Numerous documentation fixes.
7387
7388Numerous testsuite fixes.
7389
34f47bc4 7390*** Changes in GDB 5.1:
139760b7
MK
7391
7392* New native configurations
7393
7394Alpha FreeBSD alpha*-*-freebsd*
7395x86 FreeBSD 3.x and 4.x i[3456]86*-freebsd[34]*
55241689 7396MIPS GNU/Linux mips*-*-linux*
e23194cb
EZ
7397MIPS SGI Irix 6.x mips*-sgi-irix6*
7398ia64 AIX ia64-*-aix*
55241689 7399s390 and s390x GNU/Linux {s390,s390x}-*-linux*
139760b7 7400
bf64bfd6
AC
7401* New targets
7402
def90278 7403Motorola 68HC11 and 68HC12 m68hc11-elf
24be5c34 7404CRIS cris-axis
55241689 7405UltraSparc running GNU/Linux sparc64-*-linux*
def90278 7406
17e78a56 7407* OBSOLETE configurations and files
bf64bfd6
AC
7408
7409x86 FreeBSD before 2.2 i[3456]86*-freebsd{1,2.[01]}*,
9b9c068d 7410Harris/CXUX m88k m88*-harris-cxux*
bb19ff3b
AC
7411Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-*
7412 ns32k-utek-sysv* ns32k-utek-*
76f4ea53
AC
7413TI TMS320C80 tic80-*-*
7414WDC 65816 w65-*-*
4a1968f4 7415Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern*
1b2b2c16
AC
7416PowerPC Solaris powerpcle-*-solaris*
7417PowerPC Windows NT powerpcle-*-cygwin32
7418PowerPC Netware powerpc-*-netware*
24f89b68 7419SunOS 4.0.Xi on i386 i[3456]86-*-sunos*
514e603d
AC
7420Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news
7421ISI Optimum V (3.05) under 4.3bsd. m68*-isi-*
d036b4d9 7422Apple Macintosh (MPW) host N/A
bf64bfd6 7423
17e78a56
AC
7424stuff.c (Program to stuff files into a specially prepared space in kdb)
7425kdb-start.c (Main loop for the standalone kernel debugger)
7426
7fcca85b
AC
7427Configurations that have been declared obsolete in this release have
7428been commented out. Unless there is activity to revive these
7429configurations, the next release of GDB will have their sources
7430permanently REMOVED.
7431
a196c81c 7432* REMOVED configurations and files
7fcca85b
AC
7433
7434Altos 3068 m68*-altos-*
7435Convex c1-*-*, c2-*-*
7436Pyramid pyramid-*-*
7437ARM RISCix arm-*-* (as host)
7438Tahoe tahoe-*-*
a196c81c 7439ser-ocd.c *-*-*
bf64bfd6 7440
6d6b80e5 7441* GDB has been converted to ISO C.
e23194cb 7442
6d6b80e5 7443GDB's source code has been converted to ISO C. In particular, the
e23194cb
EZ
7444sources are fully protoized, and rely on standard headers being
7445present.
7446
bf64bfd6
AC
7447* Other news:
7448
e23194cb
EZ
7449* "info symbol" works on platforms which use COFF, ECOFF, XCOFF, and NLM.
7450
7451* The MI enabled by default.
7452
7453The new machine oriented interface (MI) introduced in GDB 5.0 has been
7454revised and enabled by default. Packages which use GDB as a debugging
7455engine behind a UI or another front end are encouraged to switch to
7456using the GDB/MI interface, instead of the old annotations interface
7457which is now deprecated.
7458
7459* Support for debugging Pascal programs.
7460
7461GDB now includes support for debugging Pascal programs. The following
7462main features are supported:
7463
7464 - Pascal-specific data types such as sets;
7465
7466 - automatic recognition of Pascal sources based on file-name
7467 extension;
7468
7469 - Pascal-style display of data types, variables, and functions;
7470
7471 - a Pascal expression parser.
7472
7473However, some important features are not yet supported.
7474
7475 - Pascal string operations are not supported at all;
7476
7477 - there are some problems with boolean types;
7478
7479 - Pascal type hexadecimal constants are not supported
7480 because they conflict with the internal variables format;
7481
7482 - support for Pascal objects and classes is not full yet;
7483
7484 - unlike Pascal, GDB is case-sensitive for symbol names.
7485
7486* Changes in completion.
7487
7488Commands such as `shell', `run' and `set args', which pass arguments
7489to inferior programs, now complete on file names, similar to what
7490users expect at the shell prompt.
7491
7492Commands which accept locations, such as `disassemble', `print',
7493`breakpoint', `until', etc. now complete on filenames as well as
7494program symbols. Thus, if you type "break foob TAB", and the source
7495files linked into the programs include `foobar.c', that file name will
7496be one of the candidates for completion. However, file names are not
7497considered for completion after you typed a colon that delimits a file
7498name from a name of a function in that file, as in "break foo.c:bar".
7499
7500`set demangle-style' completes on available demangling styles.
7501
7502* New platform-independent commands:
7503
7504It is now possible to define a post-hook for a command as well as a
7505hook that runs before the command. For more details, see the
7506documentation of `hookpost' in the GDB manual.
7507
7508* Changes in GNU/Linux native debugging.
7509
d7275149
MK
7510Support for debugging multi-threaded programs has been completely
7511revised for all platforms except m68k and sparc. You can now debug as
7512many threads as your system allows you to have.
7513
e23194cb
EZ
7514Attach/detach is supported for multi-threaded programs.
7515
d7275149
MK
7516Support for SSE registers was added for x86. This doesn't work for
7517multi-threaded programs though.
e23194cb
EZ
7518
7519* Changes in MIPS configurations.
bf64bfd6
AC
7520
7521Multi-arch support is enabled for all MIPS configurations.
7522
e23194cb
EZ
7523GDB can now be built as native debugger on SGI Irix 6.x systems for
7524debugging n32 executables. (Debugging 64-bit executables is not yet
7525supported.)
7526
7527* Unified support for hardware watchpoints in all x86 configurations.
7528
7529Most (if not all) native x86 configurations support hardware-assisted
7530breakpoints and watchpoints in a unified manner. This support
7531implements debug register sharing between watchpoints, which allows to
7532put a virtually infinite number of watchpoints on the same address,
7533and also supports watching regions up to 16 bytes with several debug
7534registers.
7535
7536The new maintenance command `maintenance show-debug-regs' toggles
7537debugging print-outs in functions that insert, remove, and test
7538watchpoints and hardware breakpoints.
7539
7540* Changes in the DJGPP native configuration.
7541
7542New command ``info dos sysinfo'' displays assorted information about
7543the CPU, OS, memory, and DPMI server.
7544
7545New commands ``info dos gdt'', ``info dos ldt'', and ``info dos idt''
7546display information about segment descriptors stored in GDT, LDT, and
7547IDT.
7548
7549New commands ``info dos pde'' and ``info dos pte'' display entries
7550from Page Directory and Page Tables (for now works with CWSDPMI only).
7551New command ``info dos address-pte'' displays the Page Table entry for
7552a given linear address.
7553
7554GDB can now pass command lines longer than 126 characters to the
7555program being debugged (requires an update to the libdbg.a library
7556which is part of the DJGPP development kit).
7557
7558DWARF2 debug info is now supported.
7559
6c56c069
EZ
7560It is now possible to `step' and `next' through calls to `longjmp'.
7561
e23194cb
EZ
7562* Changes in documentation.
7563
7564All GDB documentation was converted to GFDL, the GNU Free
7565Documentation License.
7566
7567Tracepoints-related commands are now fully documented in the GDB
7568manual.
7569
7570TUI, the Text-mode User Interface, is now documented in the manual.
7571
7572Tracepoints-related commands are now fully documented in the GDB
7573manual.
7574
7575The "GDB Internals" manual now has an index. It also includes
7576documentation of `ui_out' functions, GDB coding standards, x86
7577hardware watchpoints, and memory region attributes.
7578
5d6640b1
AC
7579* GDB's version number moved to ``version.in''
7580
7581The Makefile variable VERSION has been replaced by the file
7582``version.in''. People creating GDB distributions should update the
7583contents of this file.
7584
1a1d8446
AC
7585* gdba.el deleted
7586
7587GUD support is now a standard part of the EMACS distribution.
139760b7 7588
9debab2f 7589*** Changes in GDB 5.0:
7a292a7a 7590
c63ce875
EZ
7591* Improved support for debugging FP programs on x86 targets
7592
7593Unified and much-improved support for debugging floating-point
7594programs on all x86 targets. In particular, ``info float'' now
7595displays the FP registers in the same format on all x86 targets, with
7596greater level of detail.
7597
7598* Improvements and bugfixes in hardware-assisted watchpoints
7599
7600It is now possible to watch array elements, struct members, and
7601bitfields with hardware-assisted watchpoints. Data-read watchpoints
7602on x86 targets no longer erroneously trigger when the address is
7603written.
7604
7605* Improvements in the native DJGPP version of GDB
7606
7607The distribution now includes all the scripts and auxiliary files
7608necessary to build the native DJGPP version on MS-DOS/MS-Windows
7609machines ``out of the box''.
7610
7611The DJGPP version can now debug programs that use signals. It is
7612possible to catch signals that happened in the debuggee, deliver
7613signals to it, interrupt it with Ctrl-C, etc. (Previously, a signal
7614would kill the program being debugged.) Programs that hook hardware
7615interrupts (keyboard, timer, etc.) can also be debugged.
7616
7617It is now possible to debug DJGPP programs that redirect their
7618standard handles or switch them to raw (as opposed to cooked) mode, or
7619even close them. The command ``run < foo > bar'' works as expected,
7620and ``info terminal'' reports useful information about the debuggee's
7621terminal, including raw/cooked mode, redirection, etc.
7622
7623The DJGPP version now uses termios functions for console I/O, which
7624enables debugging graphics programs. Interrupting GDB with Ctrl-C
7625also works.
7626
7627DOS-style file names with drive letters are now fully supported by
7628GDB.
7629
7630It is now possible to debug DJGPP programs that switch their working
7631directory. It is also possible to rerun the debuggee any number of
7632times without restarting GDB; thus, you can use the same setup,
7633breakpoints, etc. for many debugging sessions.
7634
ed9a39eb
JM
7635* New native configurations
7636
7637ARM GNU/Linux arm*-*-linux*
afc05dd4 7638PowerPC GNU/Linux powerpc-*-linux*
ed9a39eb 7639
7a292a7a
SS
7640* New targets
7641
96baa820 7642Motorola MCore mcore-*-*
adf40b2e
JM
7643x86 VxWorks i[3456]86-*-vxworks*
7644PowerPC VxWorks powerpc-*-vxworks*
7a292a7a
SS
7645TI TMS320C80 tic80-*-*
7646
085dd6e6
JM
7647* OBSOLETE configurations
7648
7649Altos 3068 m68*-altos-*
7650Convex c1-*-*, c2-*-*
9846de1b 7651Pyramid pyramid-*-*
ed9a39eb 7652ARM RISCix arm-*-* (as host)
104c1213 7653Tahoe tahoe-*-*
7a292a7a 7654
9debab2f
AC
7655Configurations that have been declared obsolete will be commented out,
7656but the code will be left in place. If there is no activity to revive
7657these configurations before the next release of GDB, the sources will
7658be permanently REMOVED.
7659
5330533d
SS
7660* Gould support removed
7661
7662Support for the Gould PowerNode and NP1 has been removed.
7663
bc9e5bbf
AC
7664* New features for SVR4
7665
7666On SVR4 native platforms (such as Solaris), if you attach to a process
7667without first loading a symbol file, GDB will now attempt to locate and
7668load symbols from the running process's executable file.
7669
7670* Many C++ enhancements
7671
7672C++ support has been greatly improved. Overload resolution now works properly
7673in almost all cases. RTTI support is on the way.
7674
adf40b2e
JM
7675* Remote targets can connect to a sub-program
7676
7677A popen(3) style serial-device has been added. This device starts a
7678sub-process (such as a stand-alone simulator) and then communicates
7679with that. The sub-program to run is specified using the syntax
7680``|<program> <args>'' vis:
7681
7682 (gdb) set remotedebug 1
7683 (gdb) target extended-remote |mn10300-elf-sim program-args
7684
43e526b9
JM
7685* MIPS 64 remote protocol
7686
7687A long standing bug in the mips64 remote protocol where by GDB
7688expected certain 32 bit registers (ex SR) to be transfered as 32
7689instead of 64 bits has been fixed.
7690
7691The command ``set remote-mips64-transfers-32bit-regs on'' has been
7692added to provide backward compatibility with older versions of GDB.
7693
96baa820
JM
7694* ``set remotebinarydownload'' replaced by ``set remote X-packet''
7695
7696The command ``set remotebinarydownload'' command has been replaced by
7697``set remote X-packet''. Other commands in ``set remote'' family
7698include ``set remote P-packet''.
7699
11cf8741
JM
7700* Breakpoint commands accept ranges.
7701
7702The breakpoint commands ``enable'', ``disable'', and ``delete'' now
7703accept a range of breakpoints, e.g. ``5-7''. The tracepoint command
7704``tracepoint passcount'' also accepts a range of tracepoints.
7705
7876dd43
DB
7706* ``apropos'' command added.
7707
7708The ``apropos'' command searches through command names and
7709documentation strings, printing out matches, making it much easier to
7710try to find a command that does what you are looking for.
7711
bc9e5bbf
AC
7712* New MI interface
7713
7714A new machine oriented interface (MI) has been added to GDB. This
7715interface is designed for debug environments running GDB as a separate
7162c0ca
EZ
7716process. This is part of the long term libGDB project. See the
7717"GDB/MI" chapter of the GDB manual for further information. It can be
7718enabled by configuring with:
bc9e5bbf
AC
7719
7720 .../configure --enable-gdbmi
7721
c906108c
SS
7722*** Changes in GDB-4.18:
7723
7724* New native configurations
7725
7726HP-UX 10.20 hppa*-*-hpux10.20
7727HP-UX 11.x hppa*-*-hpux11.0*
55241689 7728M68K GNU/Linux m68*-*-linux*
c906108c
SS
7729
7730* New targets
7731
7732Fujitsu FR30 fr30-*-elf*
7733Intel StrongARM strongarm-*-*
7734Mitsubishi D30V d30v-*-*
7735
7736* OBSOLETE configurations
7737
7738Gould PowerNode, NP1 np1-*-*, pn-*-*
7739
7740Configurations that have been declared obsolete will be commented out,
7741but the code will be left in place. If there is no activity to revive
7742these configurations before the next release of GDB, the sources will
7743be permanently REMOVED.
7744
7745* ANSI/ISO C
7746
7747As a compatibility experiment, GDB's source files buildsym.h and
7748buildsym.c have been converted to pure standard C, no longer
7749containing any K&R compatibility code. We believe that all systems in
7750use today either come with a standard C compiler, or have a GCC port
7751available. If this is not true, please report the affected
7752configuration to bug-gdb@gnu.org immediately. See the README file for
7753information about getting a standard C compiler if you don't have one
7754already.
7755
7756* Readline 2.2
7757
7758GDB now uses readline 2.2.
7759
7760* set extension-language
7761
7762You can now control the mapping between filename extensions and source
7763languages by using the `set extension-language' command. For instance,
7764you can ask GDB to treat .c files as C++ by saying
7765 set extension-language .c c++
7766The command `info extensions' lists all of the recognized extensions
7767and their associated languages.
7768
7769* Setting processor type for PowerPC and RS/6000
7770
7771When GDB is configured for a powerpc*-*-* or an rs6000*-*-* target,
7772you can use the `set processor' command to specify what variant of the
7773PowerPC family you are debugging. The command
7774
7775 set processor NAME
7776
7777sets the PowerPC/RS6000 variant to NAME. GDB knows about the
7778following PowerPC and RS6000 variants:
7779
7780 ppc-uisa PowerPC UISA - a PPC processor as viewed by user-level code
7781 rs6000 IBM RS6000 ("POWER") architecture, user-level view
7782 403 IBM PowerPC 403
7783 403GC IBM PowerPC 403GC
7784 505 Motorola PowerPC 505
7785 860 Motorola PowerPC 860 or 850
7786 601 Motorola PowerPC 601
7787 602 Motorola PowerPC 602
7788 603 Motorola/IBM PowerPC 603 or 603e
7789 604 Motorola PowerPC 604 or 604e
7790 750 Motorola/IBM PowerPC 750 or 750
7791
7792At the moment, this command just tells GDB what to name the
7793special-purpose processor registers. Since almost all the affected
7794registers are inaccessible to user-level programs, this command is
7795only useful for remote debugging in its present form.
7796
7797* HP-UX support
7798
7799Thanks to a major code donation from Hewlett-Packard, GDB now has much
7800more extensive support for HP-UX. Added features include shared
7801library support, kernel threads and hardware watchpoints for 11.00,
7802support for HP's ANSI C and C++ compilers, and a compatibility mode
7803for xdb and dbx commands.
7804
7805* Catchpoints
7806
7807HP's donation includes the new concept of catchpoints, which is a
7808generalization of the old catch command. On HP-UX, it is now possible
7809to catch exec, fork, and vfork, as well as library loading.
7810
7811This means that the existing catch command has changed; its first
7812argument now specifies the type of catch to be set up. See the
7813output of "help catch" for a list of catchpoint types.
7814
7815* Debugging across forks
7816
7817On HP-UX, you can choose which process to debug when a fork() happens
7818in the inferior.
7819
7820* TUI
7821
7822HP has donated a curses-based terminal user interface (TUI). To get
7823it, build with --enable-tui. Although this can be enabled for any
7824configuration, at present it only works for native HP debugging.
7825
7826* GDB remote protocol additions
7827
7828A new protocol packet 'X' that writes binary data is now available.
7829Default behavior is to try 'X', then drop back to 'M' if the stub
7830fails to respond. The settable variable `remotebinarydownload'
7831allows explicit control over the use of 'X'.
7832
7833For 64-bit targets, the memory packets ('M' and 'm') can now contain a
7834full 64-bit address. The command
7835
7836 set remoteaddresssize 32
7837
7838can be used to revert to the old behaviour. For existing remote stubs
7839the change should not be noticed, as the additional address information
7840will be discarded.
7841
7842In order to assist in debugging stubs, you may use the maintenance
7843command `packet' to send any text string to the stub. For instance,
7844
7845 maint packet heythere
7846
7847sends the packet "$heythere#<checksum>". Note that it is very easy to
7848disrupt a debugging session by sending the wrong packet at the wrong
7849time.
7850
7851The compare-sections command allows you to compare section data on the
7852target to what is in the executable file without uploading or
7853downloading, by comparing CRC checksums.
7854
7855* Tracing can collect general expressions
7856
7857You may now collect general expressions at tracepoints. This requires
7858further additions to the target-side stub; see tracepoint.c and
7859doc/agentexpr.texi for further details.
7860
7861* mask-address variable for Mips
7862
7863For Mips targets, you may control the zeroing of the upper 32 bits of
7864a 64-bit address by entering `set mask-address on'. This is mainly
7865of interest to users of embedded R4xxx and R5xxx processors.
7866
7867* Higher serial baud rates
7868
7869GDB's serial code now allows you to specify baud rates 57600, 115200,
7870230400, and 460800 baud. (Note that your host system may not be able
7871to achieve all of these rates.)
7872
7873* i960 simulator
7874
7875The i960 configuration now includes an initial implementation of a
7876builtin simulator, contributed by Jim Wilson.
7877
7878
7879*** Changes in GDB-4.17:
7880
7881* New native configurations
7882
7883Alpha GNU/Linux alpha*-*-linux*
7884Unixware 2.x i[3456]86-unixware2*
7885Irix 6.x mips*-sgi-irix6*
7886PowerPC GNU/Linux powerpc-*-linux*
7887PowerPC Solaris powerpcle-*-solaris*
7888Sparc GNU/Linux sparc-*-linux*
7889Motorola sysV68 R3V7.1 m68k-motorola-sysv
7890
7891* New targets
7892
7893Argonaut Risc Chip (ARC) arc-*-*
7894Hitachi H8/300S h8300*-*-*
7895Matsushita MN10200 w/simulator mn10200-*-*
7896Matsushita MN10300 w/simulator mn10300-*-*
7897MIPS NEC VR4100 mips64*vr4100*{,el}-*-elf*
7898MIPS NEC VR5000 mips64*vr5000*{,el}-*-elf*
7899MIPS Toshiba TX39 mips64*tx39*{,el}-*-elf*
7900Mitsubishi D10V w/simulator d10v-*-*
7901Mitsubishi M32R/D w/simulator m32r-*-elf*
7902Tsqware Sparclet sparclet-*-*
7903NEC V850 w/simulator v850-*-*
7904
7905* New debugging protocols
7906
7907ARM with RDI protocol arm*-*-*
7908M68K with dBUG monitor m68*-*-{aout,coff,elf}
7909DDB and LSI variants of PMON protocol mips*-*-*
7910PowerPC with DINK32 monitor powerpc{,le}-*-eabi
7911PowerPC with SDS protocol powerpc{,le}-*-eabi
7912Macraigor OCD (Wiggler) devices powerpc{,le}-*-eabi
7913
7914* DWARF 2
7915
7916All configurations can now understand and use the DWARF 2 debugging
7917format. The choice is automatic, if the symbol file contains DWARF 2
7918information.
7919
7920* Java frontend
7921
7922GDB now includes basic Java language support. This support is
7923only useful with Java compilers that produce native machine code.
7924
7925* solib-absolute-prefix and solib-search-path
7926
7927For SunOS and SVR4 shared libraries, you may now set the prefix for
7928loading absolute shared library symbol files, and the search path for
7929locating non-absolute shared library symbol files.
7930
7931* Live range splitting
7932
7933GDB can now effectively debug code for which GCC has performed live
7934range splitting as part of its optimization. See gdb/doc/LRS for
7935more details on the expected format of the stabs information.
7936
7937* Hurd support
7938
7939GDB's support for the GNU Hurd, including thread debugging, has been
7940updated to work with current versions of the Hurd.
7941
7942* ARM Thumb support
7943
7944GDB's ARM target configuration now handles the ARM7T (Thumb) 16-bit
7945instruction set. ARM GDB automatically detects when Thumb
7946instructions are in use, and adjusts disassembly and backtracing
7947accordingly.
7948
7949* MIPS16 support
7950
7951GDB's MIPS target configurations now handle the MIP16 16-bit
7952instruction set.
7953
7954* Overlay support
7955
7956GDB now includes support for overlays; if an executable has been
7957linked such that multiple sections are based at the same address, GDB
7958will decide which section to use for symbolic info. You can choose to
7959control the decision manually, using overlay commands, or implement
7960additional target-side support and use "overlay load-target" to bring
7961in the overlay mapping. Do "help overlay" for more detail.
7962
7963* info symbol
7964
7965The command "info symbol <address>" displays information about
7966the symbol at the specified address.
7967
7968* Trace support
7969
7970The standard remote protocol now includes an extension that allows
7971asynchronous collection and display of trace data. This requires
7972extensive support in the target-side debugging stub. Tracing mode
7973includes a new interaction mode in GDB and new commands: see the
7974file tracepoint.c for more details.
7975
7976* MIPS simulator
7977
7978Configurations for embedded MIPS now include a simulator contributed
7979by Cygnus Solutions. The simulator supports the instruction sets
7980of most MIPS variants.
7981
7982* Sparc simulator
7983
7984Sparc configurations may now include the ERC32 simulator contributed
7985by the European Space Agency. The simulator is not built into
7986Sparc targets by default; configure with --enable-sim to include it.
7987
7988* set architecture
7989
7990For target configurations that may include multiple variants of a
7991basic architecture (such as MIPS and SH), you may now set the
7992architecture explicitly. "set arch" sets, "info arch" lists
7993the possible architectures.
7994
7995*** Changes in GDB-4.16:
7996
7997* New native configurations
7998
7999Windows 95, x86 Windows NT i[345]86-*-cygwin32
8000M68K NetBSD m68k-*-netbsd*
8001PowerPC AIX 4.x powerpc-*-aix*
8002PowerPC MacOS powerpc-*-macos*
8003PowerPC Windows NT powerpcle-*-cygwin32
8004RS/6000 AIX 4.x rs6000-*-aix4*
8005
8006* New targets
8007
8008ARM with RDP protocol arm-*-*
8009I960 with MON960 i960-*-coff
8010MIPS VxWorks mips*-*-vxworks*
8011MIPS VR4300 with PMON mips64*vr4300{,el}-*-elf*
8012PowerPC with PPCBUG monitor powerpc{,le}-*-eabi*
8013Hitachi SH3 sh-*-*
8014Matra Sparclet sparclet-*-*
8015
8016* PowerPC simulator
8017
8018The powerpc-eabi configuration now includes the PSIM simulator,
8019contributed by Andrew Cagney, with assistance from Mike Meissner.
8020PSIM is a very elaborate model of the PowerPC, including not only
8021basic instruction set execution, but also details of execution unit
8022performance and I/O hardware. See sim/ppc/README for more details.
8023
8024* Solaris 2.5
8025
8026GDB now works with Solaris 2.5.
8027
8028* Windows 95/NT native
8029
8030GDB will now work as a native debugger on Windows 95 and Windows NT.
8031To build it from source, you must use the "gnu-win32" environment,
8032which uses a DLL to emulate enough of Unix to run the GNU tools.
8033Further information, binaries, and sources are available at
8034ftp.cygnus.com, under pub/gnu-win32.
8035
8036* dont-repeat command
8037
8038If a user-defined command includes the command `dont-repeat', then the
8039command will not be repeated if the user just types return. This is
8040useful if the command is time-consuming to run, so that accidental
8041extra keystrokes don't run the same command many times.
8042
8043* Send break instead of ^C
8044
8045The standard remote protocol now includes an option to send a break
8046rather than a ^C to the target in order to interrupt it. By default,
8047GDB will send ^C; to send a break, set the variable `remotebreak' to 1.
8048
8049* Remote protocol timeout
8050
8051The standard remote protocol includes a new variable `remotetimeout'
8052that allows you to set the number of seconds before GDB gives up trying
8053to read from the target. The default value is 2.
8054
8055* Automatic tracking of dynamic object loading (HPUX and Solaris only)
8056
8057By default GDB will automatically keep track of objects as they are
8058loaded and unloaded by the dynamic linker. By using the command `set
8059stop-on-solib-events 1' you can arrange for GDB to stop the inferior
8060when shared library events occur, thus allowing you to set breakpoints
8061in shared libraries which are explicitly loaded by the inferior.
8062
8063Note this feature does not work on hpux8. On hpux9 you must link
8064/usr/lib/end.o into your program. This feature should work
8065automatically on hpux10.
8066
8067* Irix 5.x hardware watchpoint support
8068
8069Irix 5 configurations now support the use of hardware watchpoints.
8070
8071* Mips protocol "SYN garbage limit"
8072
8073When debugging a Mips target using the `target mips' protocol, you
8074may set the number of characters that GDB will ignore by setting
8075the `syn-garbage-limit'. A value of -1 means that GDB will ignore
8076every character. The default value is 1050.
8077
8078* Recording and replaying remote debug sessions
8079
8080If you set `remotelogfile' to the name of a file, gdb will write to it
8081a recording of a remote debug session. This recording may then be
8082replayed back to gdb using "gdbreplay". See gdbserver/README for
8083details. This is useful when you have a problem with GDB while doing
8084remote debugging; you can make a recording of the session and send it
8085to someone else, who can then recreate the problem.
8086
8087* Speedups for remote debugging
8088
8089GDB includes speedups for downloading and stepping MIPS systems using
8090the IDT monitor, fast downloads to the Hitachi SH E7000 emulator,
8091and more efficient S-record downloading.
8092
8093* Memory use reductions and statistics collection
8094
8095GDB now uses less memory and reports statistics about memory usage.
8096Try the `maint print statistics' command, for example.
8097
8098*** Changes in GDB-4.15:
8099
8100* Psymtabs for XCOFF
8101
8102The symbol reader for AIX GDB now uses partial symbol tables. This
8103can greatly improve startup time, especially for large executables.
8104
8105* Remote targets use caching
8106
8107Remote targets now use a data cache to speed up communication with the
8108remote side. The data cache could lead to incorrect results because
8109it doesn't know about volatile variables, thus making it impossible to
8110debug targets which use memory mapped I/O devices. `set remotecache
09f2921c 8111off' turns the data cache off.
c906108c
SS
8112
8113* Remote targets may have threads
8114
8115The standard remote protocol now includes support for multiple threads
8116in the target system, using new protocol commands 'H' and 'T'. See
8117gdb/remote.c for details.
8118
8119* NetROM support
8120
8121If GDB is configured with `--enable-netrom', then it will include
8122support for the NetROM ROM emulator from XLNT Designs. The NetROM
8123acts as though it is a bank of ROM on the target board, but you can
8124write into it over the network. GDB's support consists only of
8125support for fast loading into the emulated ROM; to debug, you must use
8126another protocol, such as standard remote protocol. The usual
8127sequence is something like
8128
8129 target nrom <netrom-hostname>
8130 load <prog>
8131 target remote <netrom-hostname>:1235
8132
8133* Macintosh host
8134
8135GDB now includes support for the Apple Macintosh, as a host only. It
8136may be run as either an MPW tool or as a standalone application, and
8137it can debug through the serial port. All the usual GDB commands are
8138available, but to the target command, you must supply "serial" as the
8139device type instead of "/dev/ttyXX". See mpw-README in the main
8140directory for more information on how to build. The MPW configuration
8141scripts */mpw-config.in support only a few targets, and only the
8142mips-idt-ecoff target has been tested.
8143
8144* Autoconf
8145
8146GDB configuration now uses autoconf. This is not user-visible,
8147but does simplify configuration and building.
8148
8149* hpux10
8150
8151GDB now supports hpux10.
8152
8153*** Changes in GDB-4.14:
8154
8155* New native configurations
8156
8157x86 FreeBSD i[345]86-*-freebsd
8158x86 NetBSD i[345]86-*-netbsd
8159NS32k NetBSD ns32k-*-netbsd
8160Sparc NetBSD sparc-*-netbsd
8161
8162* New targets
8163
8164A29K VxWorks a29k-*-vxworks
8165HP PA PRO embedded (WinBond W89K & Oki OP50N) hppa*-*-pro*
8166CPU32 EST-300 emulator m68*-*-est*
8167PowerPC ELF powerpc-*-elf
8168WDC 65816 w65-*-*
8169
8170* Alpha OSF/1 support for procfs
8171
8172GDB now supports procfs under OSF/1-2.x and higher, which makes it
8173possible to attach to running processes. As the mounting of the /proc
8174filesystem is optional on the Alpha, GDB automatically determines
8175the availability of /proc during startup. This can lead to problems
8176if /proc is unmounted after GDB has been started.
8177
8178* Arguments to user-defined commands
8179
8180User commands may accept up to 10 arguments separated by whitespace.
8181Arguments are accessed within the user command via $arg0..$arg9. A
8182trivial example:
8183define adder
8184 print $arg0 + $arg1 + $arg2
8185
8186To execute the command use:
8187adder 1 2 3
8188
8189Defines the command "adder" which prints the sum of its three arguments.
8190Note the arguments are text substitutions, so they may reference variables,
8191use complex expressions, or even perform inferior function calls.
8192
8193* New `if' and `while' commands
8194
8195This makes it possible to write more sophisticated user-defined
8196commands. Both commands take a single argument, which is the
8197expression to evaluate, and must be followed by the commands to
8198execute, one per line, if the expression is nonzero, the list being
8199terminated by the word `end'. The `if' command list may include an
8200`else' word, which causes the following commands to be executed only
8201if the expression is zero.
8202
8203* Fortran source language mode
8204
8205GDB now includes partial support for Fortran 77. It will recognize
8206Fortran programs and can evaluate a subset of Fortran expressions, but
8207variables and functions may not be handled correctly. GDB will work
8208with G77, but does not yet know much about symbols emitted by other
8209Fortran compilers.
8210
8211* Better HPUX support
8212
8213Most debugging facilities now work on dynamic executables for HPPAs
8214running hpux9 or later. You can attach to running dynamically linked
8215processes, but by default the dynamic libraries will be read-only, so
8216for instance you won't be able to put breakpoints in them. To change
8217that behavior do the following before running the program:
8218
8219 adb -w a.out
8220 __dld_flags?W 0x5
8221 control-d
8222
8223This will cause the libraries to be mapped private and read-write.
8224To revert to the normal behavior, do this:
8225
8226 adb -w a.out
8227 __dld_flags?W 0x4
8228 control-d
8229
8230You cannot set breakpoints or examine data in the library until after
8231the library is loaded if the function/data symbols do not have
8232external linkage.
8233
8234GDB can now also read debug symbols produced by the HP C compiler on
8235HPPAs (sorry, no C++, Fortran or 68k support).
8236
8237* Target byte order now dynamically selectable
8238
8239You can choose which byte order to use with a target system, via the
8240commands "set endian big" and "set endian little", and you can see the
8241current setting by using "show endian". You can also give the command
8242"set endian auto", in which case GDB will use the byte order
8243associated with the executable. Currently, only embedded MIPS
8244configurations support dynamic selection of target byte order.
8245
8246* New DOS host serial code
8247
8248This version uses DPMI interrupts to handle buffered I/O, so you
8249no longer need to run asynctsr when debugging boards connected to
8250a PC's serial port.
8251
8252*** Changes in GDB-4.13:
8253
8254* New "complete" command
8255
8256This lists all the possible completions for the rest of the line, if it
8257were to be given as a command itself. This is intended for use by emacs.
8258
8259* Trailing space optional in prompt
8260
8261"set prompt" no longer adds a space for you after the prompt you set. This
8262allows you to set a prompt which ends in a space or one that does not.
8263
8264* Breakpoint hit counts
8265
8266"info break" now displays a count of the number of times the breakpoint
8267has been hit. This is especially useful in conjunction with "ignore"; you
8268can ignore a large number of breakpoint hits, look at the breakpoint info
8269to see how many times the breakpoint was hit, then run again, ignoring one
8270less than that number, and this will get you quickly to the last hit of
8271that breakpoint.
8272
8273* Ability to stop printing at NULL character
8274
8275"set print null-stop" will cause GDB to stop printing the characters of
8276an array when the first NULL is encountered. This is useful when large
8277arrays actually contain only short strings.
8278
8279* Shared library breakpoints
8280
8281In SunOS 4.x, SVR4, and Alpha OSF/1 configurations, you can now set
8282breakpoints in shared libraries before the executable is run.
8283
8284* Hardware watchpoints
8285
8286There is a new hardware breakpoint for the watch command for sparclite
8287targets. See gdb/sparclite/hw_breakpoint.note.
8288
55241689 8289Hardware watchpoints are also now supported under GNU/Linux.
c906108c
SS
8290
8291* Annotations
8292
8293Annotations have been added. These are for use with graphical interfaces,
8294and are still experimental. Currently only gdba.el uses these.
8295
8296* Improved Irix 5 support
8297
8298GDB now works properly with Irix 5.2.
8299
8300* Improved HPPA support
8301
8302GDB now works properly with the latest GCC and GAS.
8303
8304* New native configurations
8305
8306Sequent PTX4 i[34]86-sequent-ptx4
8307HPPA running OSF/1 hppa*-*-osf*
8308Atari TT running SVR4 m68*-*-sysv4*
8309RS/6000 LynxOS rs6000-*-lynxos*
8310
8311* New targets
8312
8313OS/9000 i[34]86-*-os9k
8314MIPS R4000 mips64*{,el}-*-{ecoff,elf}
8315Sparc64 sparc64-*-*
8316
8317* Hitachi SH7000 and E7000-PC ICE support
8318
8319There is now support for communicating with the Hitachi E7000-PC ICE.
8320This is available automatically when GDB is configured for the SH.
8321
8322* Fixes
8323
8324As usual, a variety of small fixes and improvements, both generic
8325and configuration-specific. See the ChangeLog for more detail.
8326
8327*** Changes in GDB-4.12:
8328
8329* Irix 5 is now supported
8330
8331* HPPA support
8332
8333GDB-4.12 on the HPPA has a number of changes which make it unable
8334to debug the output from the currently released versions of GCC and
8335GAS (GCC 2.5.8 and GAS-2.2 or PAGAS-1.36). Until the next major release
8336of GCC and GAS, versions of these tools designed to work with GDB-4.12
8337can be retrieved via anonymous ftp from jaguar.cs.utah.edu:/dist.
8338
8339
8340*** Changes in GDB-4.11:
8341
8342* User visible changes:
8343
8344* Remote Debugging
8345
8346The "set remotedebug" option is now consistent between the mips remote
8347target, remote targets using the gdb-specific protocol, UDI (AMD's
8348debug protocol for the 29k) and the 88k bug monitor. It is now an
8349integer specifying a debug level (normally 0 or 1, but 2 means more
8350debugging info for the mips target).
8351
8352* DEC Alpha native support
8353
8354GDB now works on the DEC Alpha. GCC 2.4.5 does not produce usable
8355debug info, but GDB works fairly well with the DEC compiler and should
8356work with a future GCC release. See the README file for a few
8357Alpha-specific notes.
8358
8359* Preliminary thread implementation
8360
8361GDB now has preliminary thread support for both SGI/Irix and LynxOS.
8362
8363* LynxOS native and target support for 386
8364
8365This release has been hosted on LynxOS 2.2, and also can be configured
8366to remotely debug programs running under LynxOS (see gdb/gdbserver/README
8367for details).
8368
8369* Improvements in C++ mangling/demangling.
8370
8371This release has much better g++ debugging, specifically in name
8372mangling/demangling, virtual function calls, print virtual table,
8373call methods, ...etc.
8374
8375*** Changes in GDB-4.10:
8376
8377 * User visible changes:
8378
8379Remote debugging using the GDB-specific (`target remote') protocol now
8380supports the `load' command. This is only useful if you have some
8381other way of getting the stub to the target system, and you can put it
8382somewhere in memory where it won't get clobbered by the download.
8383
8384Filename completion now works.
8385
8386When run under emacs mode, the "info line" command now causes the
8387arrow to point to the line specified. Also, "info line" prints
8388addresses in symbolic form (as well as hex).
8389
8390All vxworks based targets now support a user settable option, called
8391vxworks-timeout. This option represents the number of seconds gdb
8392should wait for responses to rpc's. You might want to use this if
8393your vxworks target is, perhaps, a slow software simulator or happens
8394to be on the far side of a thin network line.
8395
8396 * DEC alpha support
8397
8398This release contains support for using a DEC alpha as a GDB host for
8399cross debugging. Native alpha debugging is not supported yet.
8400
8401
8402*** Changes in GDB-4.9:
8403
8404 * Testsuite
8405
8406This is the first GDB release which is accompanied by a matching testsuite.
8407The testsuite requires installation of dejagnu, which should be available
8408via ftp from most sites that carry GNU software.
8409
8410 * C++ demangling
8411
8412'Cfront' style demangling has had its name changed to 'ARM' style, to
8413emphasize that it was written from the specifications in the C++ Annotated
8414Reference Manual, not necessarily to be compatible with AT&T cfront. Despite
8415disclaimers, it still generated too much confusion with users attempting to
8416use gdb with AT&T cfront.
8417
8418 * Simulators
8419
8420GDB now uses a standard remote interface to a simulator library.
8421So far, the library contains simulators for the Zilog Z8001/2, the
8422Hitachi H8/300, H8/500 and Super-H.
8423
8424 * New targets supported
8425
8426H8/300 simulator h8300-hitachi-hms or h8300hms
8427H8/500 simulator h8500-hitachi-hms or h8500hms
8428SH simulator sh-hitachi-hms or sh
8429Z8000 simulator z8k-zilog-none or z8ksim
8430IDT MIPS board over serial line mips-idt-ecoff
8431
8432Cross-debugging to GO32 targets is supported. It requires a custom
8433version of the i386-stub.c module which is integrated with the
8434GO32 memory extender.
8435
8436 * New remote protocols
8437
8438MIPS remote debugging protocol.
8439
8440 * New source languages supported
8441
8442This version includes preliminary support for Chill, a Pascal like language
8443used by telecommunications companies. Chill support is also being integrated
8444into the GNU compiler, but we don't know when it will be publically available.
8445
8446
8447*** Changes in GDB-4.8:
8448
8449 * HP Precision Architecture supported
8450
8451GDB now supports HP PA-RISC machines running HPUX. A preliminary
8452version of this support was available as a set of patches from the
8453University of Utah. GDB does not support debugging of programs
8454compiled with the HP compiler, because HP will not document their file
8455format. Instead, you must use GCC (version 2.3.2 or later) and PA-GAS
8456(as available from jaguar.cs.utah.edu:/dist/pa-gas.u4.tar.Z).
8457
8458Many problems in the preliminary version have been fixed.
8459
8460 * Faster and better demangling
8461
8462We have improved template demangling and fixed numerous bugs in the GNU style
8463demangler. It can now handle type modifiers such as `static' or `const'. Wide
8464character types (wchar_t) are now supported. Demangling of each symbol is now
8465only done once, and is cached when the symbol table for a file is read in.
8466This results in a small increase in memory usage for C programs, a moderate
8467increase in memory usage for C++ programs, and a fantastic speedup in
8468symbol lookups.
8469
8470`Cfront' style demangling still doesn't work with AT&T cfront. It was written
8471from the specifications in the Annotated Reference Manual, which AT&T's
8472compiler does not actually implement.
8473
8474 * G++ multiple inheritance compiler problem
8475
8476In the 2.3.2 release of gcc/g++, how the compiler resolves multiple
8477inheritance lattices was reworked to properly discover ambiguities. We
8478recently found an example which causes this new algorithm to fail in a
8479very subtle way, producing bad debug information for those classes.
8480The file 'gcc.patch' (in this directory) can be applied to gcc to
8481circumvent the problem. A future GCC release will contain a complete
8482fix.
8483
8484The previous G++ debug info problem (mentioned below for the gdb-4.7
8485release) is fixed in gcc version 2.3.2.
8486
8487 * Improved configure script
8488
8489The `configure' script will now attempt to guess your system type if
8490you don't supply a host system type. The old scheme of supplying a
8491host system triplet is preferable over using this. All the magic is
8492done in the new `config.guess' script. Examine it for details.
8493
8494We have also brought our configure script much more in line with the FSF's
8495version. It now supports the --with-xxx options. In particular,
8496`--with-minimal-bfd' can be used to make the GDB binary image smaller.
8497The resulting GDB will not be able to read arbitrary object file formats --
8498only the format ``expected'' to be used on the configured target system.
8499We hope to make this the default in a future release.
8500
8501 * Documentation improvements
8502
8503There's new internal documentation on how to modify GDB, and how to
8504produce clean changes to the code. We implore people to read it
8505before submitting changes.
8506
8507The GDB manual uses new, sexy Texinfo conditionals, rather than arcane
8508M4 macros. The new texinfo.tex is provided in this release. Pre-built
8509`info' files are also provided. To build `info' files from scratch,
8510you will need the latest `makeinfo' release, which will be available in
8511a future texinfo-X.Y release.
8512
8513*NOTE* The new texinfo.tex can cause old versions of TeX to hang.
8514We're not sure exactly which versions have this problem, but it has
8515been seen in 3.0. We highly recommend upgrading to TeX version 3.141
8516or better. If that isn't possible, there is a patch in
8517`texinfo/tex3patch' that will modify `texinfo/texinfo.tex' to work
8518around this problem.
8519
8520 * New features
8521
8522GDB now supports array constants that can be used in expressions typed in by
8523the user. The syntax is `{element, element, ...}'. Ie: you can now type
8524`print {1, 2, 3}', and it will build up an array in memory malloc'd in
8525the target program.
8526
8527The new directory `gdb/sparclite' contains a program that demonstrates
8528how the sparc-stub.c remote stub runs on a Fujitsu SPARClite processor.
8529
8530 * New native hosts supported
8531
8532HP/PA-RISC under HPUX using GNU tools hppa1.1-hp-hpux
8533386 CPUs running SCO Unix 3.2v4 i386-unknown-sco3.2v4
8534
8535 * New targets supported
8536
8537AMD 29k family via UDI a29k-amd-udi or udi29k
8538
8539 * New file formats supported
8540
8541BFD now supports reading HP/PA-RISC executables (SOM file format?),
8542HPUX core files, and SCO 3.2v2 core files.
8543
8544 * Major bug fixes
8545
8546Attaching to processes now works again; thanks for the many bug reports.
8547
8548We have also stomped on a bunch of core dumps caused by
8549printf_filtered("%s") problems.
8550
8551We eliminated a copyright problem on the rpc and ptrace header files
8552for VxWorks, which was discovered at the last minute during the 4.7
8553release. You should now be able to build a VxWorks GDB.
8554
8555You can now interrupt gdb while an attached process is running. This
8556will cause the attached process to stop, and give control back to GDB.
8557
8558We fixed problems caused by using too many file descriptors
8559for reading symbols from object files and libraries. This was
8560especially a problem for programs that used many (~100) shared
8561libraries.
8562
8563The `step' command now only enters a subroutine if there is line number
8564information for the subroutine. Otherwise it acts like the `next'
8565command. Previously, `step' would enter subroutines if there was
8566any debugging information about the routine. This avoids problems
8567when using `cc -g1' on MIPS machines.
8568
8569 * Internal improvements
8570
8571GDB's internal interfaces have been improved to make it easier to support
8572debugging of multiple languages in the future.
8573
8574GDB now uses a common structure for symbol information internally.
8575Minimal symbols (derived from linkage symbols in object files), partial
8576symbols (from a quick scan of debug information), and full symbols
8577contain a common subset of information, making it easier to write
8578shared code that handles any of them.
8579
8580 * New command line options
8581
8582We now accept --silent as an alias for --quiet.
8583
8584 * Mmalloc licensing
8585
8586The memory-mapped-malloc library is now licensed under the GNU Library
8587General Public License.
8588
8589*** Changes in GDB-4.7:
8590
8591 * Host/native/target split
8592
8593GDB has had some major internal surgery to untangle the support for
8594hosts and remote targets. Now, when you configure GDB for a remote
8595target, it will no longer load in all of the support for debugging
8596local programs on the host. When fully completed and tested, this will
8597ensure that arbitrary host/target combinations are possible.
8598
8599The primary conceptual shift is to separate the non-portable code in
8600GDB into three categories. Host specific code is required any time GDB
8601is compiled on that host, regardless of the target. Target specific
8602code relates to the peculiarities of the target, but can be compiled on
8603any host. Native specific code is everything else: it can only be
8604built when the host and target are the same system. Child process
8605handling and core file support are two common `native' examples.
8606
8607GDB's use of /proc for controlling Unix child processes is now cleaner.
8608It has been split out into a single module under the `target_ops' vector,
8609plus two native-dependent functions for each system that uses /proc.
8610
8611 * New hosts supported
8612
8613HP/Apollo 68k (under the BSD domain) m68k-apollo-bsd or apollo68bsd
8614386 CPUs running various BSD ports i386-unknown-bsd or 386bsd
8615386 CPUs running SCO Unix i386-unknown-scosysv322 or i386sco
8616
8617 * New targets supported
8618
8619Fujitsu SPARClite sparclite-fujitsu-none or sparclite
862068030 and CPU32 m68030-*-*, m68332-*-*
8621
8622 * New native hosts supported
8623
8624386 CPUs running various BSD ports i386-unknown-bsd or 386bsd
8625 (386bsd is not well tested yet)
8626386 CPUs running SCO Unix i386-unknown-scosysv322 or sco
8627
8628 * New file formats supported
8629
8630BFD now supports COFF files for the Zilog Z8000 microprocessor. It
8631supports reading of `a.out.adobe' object files, which are an a.out
8632format extended with minimal information about multiple sections.
8633
8634 * New commands
8635
8636`show copying' is the same as the old `info copying'.
8637`show warranty' is the same as `info warrantee'.
8638These were renamed for consistency. The old commands continue to work.
8639
8640`info handle' is a new alias for `info signals'.
8641
8642You can now define pre-command hooks, which attach arbitrary command
8643scripts to any command. The commands in the hook will be executed
8644prior to the user's command. You can also create a hook which will be
8645executed whenever the program stops. See gdb.texinfo.
8646
8647 * C++ improvements
8648
8649We now deal with Cfront style name mangling, and can even extract type
8650info from mangled symbols. GDB can automatically figure out which
8651symbol mangling style your C++ compiler uses.
8652
8653Calling of methods and virtual functions has been improved as well.
8654
8655 * Major bug fixes
8656
82f06518 8657The crash that occurred when debugging Sun Ansi-C compiled binaries is
c906108c
SS
8658fixed. This was due to mishandling of the extra N_SO stabs output
8659by the compiler.
8660
8661We also finally got Ultrix 4.2 running in house, and fixed core file
8662support, with help from a dozen people on the net.
8663
8664John M. Farrell discovered that the reason that single-stepping was so
8665slow on all of the Mips based platforms (primarily SGI and DEC) was
8666that we were trying to demangle and lookup a symbol used for internal
8667purposes on every instruction that was being stepped through. Changing
8668the name of that symbol so that it couldn't be mistaken for a C++
8669mangled symbol sped things up a great deal.
8670
8671Rich Pixley sped up symbol lookups in general by getting much smarter
8672about when C++ symbol mangling is necessary. This should make symbol
8673completion (TAB on the command line) much faster. It's not as fast as
8674we'd like, but it's significantly faster than gdb-4.6.
8675
8676 * AMD 29k support
8677
8678A new user controllable variable 'call_scratch_address' can
8679specify the location of a scratch area to be used when GDB
8680calls a function in the target. This is necessary because the
8681usual method of putting the scratch area on the stack does not work
8682in systems that have separate instruction and data spaces.
8683
8684We integrated changes to support the 29k UDI (Universal Debugger
8685Interface), but discovered at the last minute that we didn't have all
8686of the appropriate copyright paperwork. We are working with AMD to
8687resolve this, and hope to have it available soon.
8688
8689 * Remote interfaces
8690
8691We have sped up the remote serial line protocol, especially for targets
8692with lots of registers. It now supports a new `expedited status' ('T')
8693message which can be used in place of the existing 'S' status message.
8694This allows the remote stub to send only the registers that GDB
8695needs to make a quick decision about single-stepping or conditional
8696breakpoints, eliminating the need to fetch the entire register set for
8697each instruction being stepped through.
8698
8699The GDB remote serial protocol now implements a write-through cache for
8700registers, only re-reading the registers if the target has run.
8701
8702There is also a new remote serial stub for SPARC processors. You can
8703find it in gdb-4.7/gdb/sparc-stub.c. This was written to support the
8704Fujitsu SPARClite processor, but will run on any stand-alone SPARC
8705processor with a serial port.
8706
8707 * Configuration
8708
8709Configure.in files have become much easier to read and modify. A new
8710`table driven' format makes it more obvious what configurations are
8711supported, and what files each one uses.
8712
8713 * Library changes
8714
8715There is a new opcodes library which will eventually contain all of the
8716disassembly routines and opcode tables. At present, it only contains
8717Sparc and Z8000 routines. This will allow the assembler, debugger, and
8718disassembler (binutils/objdump) to share these routines.
8719
8720The libiberty library is now copylefted under the GNU Library General
8721Public License. This allows more liberal use, and was done so libg++
8722can use it. This makes no difference to GDB, since the Library License
8723grants all the rights from the General Public License.
8724
8725 * Documentation
8726
8727The file gdb-4.7/gdb/doc/stabs.texinfo is a (relatively) complete
8728reference to the stabs symbol info used by the debugger. It is (as far
8729as we know) the only published document on this fascinating topic. We
8730encourage you to read it, compare it to the stabs information on your
8731system, and send improvements on the document in general (to
8732bug-gdb@prep.ai.mit.edu).
8733
8734And, of course, many bugs have been fixed.
8735
8736
8737*** Changes in GDB-4.6:
8738
8739 * Better support for C++ function names
8740
8741GDB now accepts as input the "demangled form" of C++ overloaded function
8742names and member function names, and can do command completion on such names
8743(using TAB, TAB-TAB, and ESC-?). The names have to be quoted with a pair of
8744single quotes. Examples are 'func (int, long)' and 'obj::operator==(obj&)'.
8745Make use of command completion, it is your friend.
8746
8747GDB also now accepts a variety of C++ mangled symbol formats. They are
8748the GNU g++ style, the Cfront (ARM) style, and the Lucid (lcc) style.
8749You can tell GDB which format to use by doing a 'set demangle-style {gnu,
8750lucid, cfront, auto}'. 'gnu' is the default. Do a 'set demangle-style foo'
8751for the list of formats.
8752
8753 * G++ symbol mangling problem
8754
8755Recent versions of gcc have a bug in how they emit debugging information for
8756C++ methods (when using dbx-style stabs). The file 'gcc.patch' (in this
8757directory) can be applied to gcc to fix the problem. Alternatively, if you
82f06518 8758can't fix gcc, you can #define GCC_MANGLE_BUG when compiling gdb/symtab.c. The
c906108c
SS
8759usual symptom is difficulty with setting breakpoints on methods. GDB complains
8760about the method being non-existent. (We believe that version 2.2.2 of GCC has
8761this problem.)
8762
8763 * New 'maintenance' command
8764
8765All of the commands related to hacking GDB internals have been moved out of
8766the main command set, and now live behind the 'maintenance' command. This
8767can also be abbreviated as 'mt'. The following changes were made:
8768
8769 dump-me -> maintenance dump-me
8770 info all-breakpoints -> maintenance info breakpoints
8771 printmsyms -> maintenance print msyms
8772 printobjfiles -> maintenance print objfiles
8773 printpsyms -> maintenance print psymbols
8774 printsyms -> maintenance print symbols
8775
8776The following commands are new:
8777
8778 maintenance demangle Call internal GDB demangler routine to
8779 demangle a C++ link name and prints the result.
8780 maintenance print type Print a type chain for a given symbol
8781
8782 * Change to .gdbinit file processing
8783
8784We now read the $HOME/.gdbinit file before processing the argv arguments
8785(e.g. reading symbol files or core files). This allows global parameters to
8786be set, which will apply during the symbol reading. The ./.gdbinit is still
8787read after argv processing.
8788
8789 * New hosts supported
8790
8791Solaris-2.0 !!! sparc-sun-solaris2 or sun4sol2
8792
55241689 8793GNU/Linux support i386-unknown-linux or linux
c906108c
SS
8794
8795We are also including code to support the HP/PA running BSD and HPUX. This
8796is almost guaranteed not to work, as we didn't have time to test or build it
8797for this release. We are including it so that the more adventurous (or
8798masochistic) of you can play with it. We also had major problems with the
8799fact that the compiler that we got from HP doesn't support the -g option.
8800It costs extra.
8801
8802 * New targets supported
8803
8804Hitachi H8/300 h8300-hitachi-hms or h8300hms
8805
8806 * More smarts about finding #include files
8807
8808GDB now remembers the compilation directory for all include files, and for
8809all files from which C is generated (like yacc and lex sources). This
8810greatly improves GDB's ability to find yacc/lex sources, and include files,
8811especially if you are debugging your program from a directory different from
8812the one that contains your sources.
8813
8814We also fixed a bug which caused difficulty with listing and setting
8815breakpoints in include files which contain C code. (In the past, you had to
8816try twice in order to list an include file that you hadn't looked at before.)
8817
8818 * Interesting infernals change
8819
8820GDB now deals with arbitrary numbers of sections, where the symbols for each
8821section must be relocated relative to that section's landing place in the
8822target's address space. This work was needed to support ELF with embedded
8823stabs used by Solaris-2.0.
8824
8825 * Bug fixes (of course!)
8826
8827There have been loads of fixes for the following things:
8828 mips, rs6000, 29k/udi, m68k, g++, type handling, elf/dwarf, m88k,
8829 i960, stabs, DOS(GO32), procfs, etc...
8830
8831See the ChangeLog for details.
8832
8833*** Changes in GDB-4.5:
8834
8835 * New machines supported (host and target)
8836
8837IBM RS6000 running AIX rs6000-ibm-aix or rs6000
8838
8839SGI Irix-4.x mips-sgi-irix4 or iris4
8840
8841 * New malloc package
8842
8843GDB now uses a new memory manager called mmalloc, based on gmalloc.
82f06518 8844Mmalloc is capable of handling multiple heaps of memory. It is also
c906108c
SS
8845capable of saving a heap to a file, and then mapping it back in later.
8846This can be used to greatly speedup the startup of GDB by using a
8847pre-parsed symbol table which lives in a mmalloc managed heap. For
8848more details, please read mmalloc/mmalloc.texi.
8849
8850 * info proc
8851
8852The 'info proc' command (SVR4 only) has been enhanced quite a bit. See
8853'help info proc' for details.
8854
8855 * MIPS ecoff symbol table format
8856
8857The code that reads MIPS symbol table format is now supported on all hosts.
8858Thanks to MIPS for releasing the sym.h and symconst.h files to make this
8859possible.
8860
8861 * File name changes for MS-DOS
8862
8863Many files in the config directories have been renamed to make it easier to
8864support GDB on MS-DOSe systems (which have very restrictive file name
8865conventions :-( ). MS-DOSe host support (under DJ Delorie's GO32
8866environment) is close to working but has some remaining problems. Note
8867that debugging of DOS programs is not supported, due to limitations
8868in the ``operating system'', but it can be used to host cross-debugging.
8869
8870 * Cross byte order fixes
8871
8872Many fixes have been made to support cross debugging of Sparc and MIPS
8873targets from hosts whose byte order differs.
8874
8875 * New -mapped and -readnow options
8876
8877If memory-mapped files are available on your system through the 'mmap'
8878system call, you can use the -mapped option on the `file' or
8879`symbol-file' commands to cause GDB to write the symbols from your
8880program into a reusable file. If the program you are debugging is
8881called `/path/fred', the mapped symbol file will be `./fred.syms'.
8882Future GDB debugging sessions will notice the presence of this file,
8883and will quickly map in symbol information from it, rather than reading
8884the symbol table from the executable program. Using the '-mapped'
8885option in a GDB `file' or `symbol-file' command has the same effect as
8886starting GDB with the '-mapped' command-line option.
8887
8888You can cause GDB to read the entire symbol table immediately by using
8889the '-readnow' option with any of the commands that load symbol table
8890information (or on the GDB command line). This makes the command
8891slower, but makes future operations faster.
8892
8893The -mapped and -readnow options are typically combined in order to
8894build a `fred.syms' file that contains complete symbol information.
8895A simple GDB invocation to do nothing but build a `.syms' file for future
8896use is:
8897
8898 gdb -batch -nx -mapped -readnow programname
8899
8900The `.syms' file is specific to the host machine on which GDB is run.
8901It holds an exact image of GDB's internal symbol table. It cannot be
8902shared across multiple host platforms.
8903
8904 * longjmp() handling
8905
8906GDB is now capable of stepping and nexting over longjmp(), _longjmp(), and
8907siglongjmp() without losing control. This feature has not yet been ported to
8908all systems. It currently works on many 386 platforms, all MIPS-based
8909platforms (SGI, DECstation, etc), and Sun3/4.
8910
8911 * Solaris 2.0
8912
8913Preliminary work has been put in to support the new Solaris OS from Sun. At
8914this time, it can control and debug processes, but it is not capable of
8915reading symbols.
8916
8917 * Bug fixes
8918
8919As always, many many bug fixes. The major areas were with g++, and mipsread.
8920People using the MIPS-based platforms should experience fewer mysterious
8921crashes and trashed symbol tables.
8922
8923*** Changes in GDB-4.4:
8924
8925 * New machines supported (host and target)
8926
8927SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
8928 (except core files)
8929BSD Reno on Vax vax-dec-bsd
8930Ultrix on Vax vax-dec-ultrix
8931
8932 * New machines supported (target)
8933
8934AMD 29000 embedded, using EBMON a29k-none-none
8935
8936 * C++ support
8937
8938GDB continues to improve its handling of C++. `References' work better.
8939The demangler has also been improved, and now deals with symbols mangled as
8940per the Annotated C++ Reference Guide.
8941
8942GDB also now handles `stabs' symbol information embedded in MIPS
8943`ecoff' symbol tables. Since the ecoff format was not easily
8944extensible to handle new languages such as C++, this appeared to be a
8945good way to put C++ debugging info into MIPS binaries. This option
8946will be supported in the GNU C compiler, version 2, when it is
8947released.
8948
8949 * New features for SVR4
8950
8951GDB now handles SVR4 shared libraries, in the same fashion as SunOS
8952shared libraries. Debugging dynamically linked programs should present
8953only minor differences from debugging statically linked programs.
8954
8955The `info proc' command will print out information about any process
8956on an SVR4 system (including the one you are debugging). At the moment,
8957it prints the address mappings of the process.
8958
8959If you bring up GDB on another SVR4 system, please send mail to
8960bug-gdb@prep.ai.mit.edu to let us know what changes were reqired (if any).
8961
8962 * Better dynamic linking support in SunOS
8963
8964Reading symbols from shared libraries which contain debugging symbols
8965now works properly. However, there remain issues such as automatic
8966skipping of `transfer vector' code during function calls, which
8967make it harder to debug code in a shared library, than to debug the
8968same code linked statically.
8969
8970 * New Getopt
8971
8972GDB is now using the latest `getopt' routines from the FSF. This
8973version accepts the -- prefix for options with long names. GDB will
8974continue to accept the old forms (-option and +option) as well.
8975Various single letter abbreviations for options have been explicity
8976added to the option table so that they won't get overshadowed in the
8977future by other options that begin with the same letter.
8978
8979 * Bugs fixed
8980
8981The `cleanup_undefined_types' bug that many of you noticed has been squashed.
8982Many assorted bugs have been handled. Many more remain to be handled.
8983See the various ChangeLog files (primarily in gdb and bfd) for details.
8984
8985
8986*** Changes in GDB-4.3:
8987
8988 * New machines supported (host and target)
8989
8990Amiga 3000 running Amix m68k-cbm-svr4 or amix
8991NCR 3000 386 running SVR4 i386-ncr-svr4 or ncr3000
8992Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
8993
8994 * Almost SCO Unix support
8995
8996We had hoped to support:
8997SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
8998(except for core file support), but we discovered very late in the release
8999that it has problems with process groups that render gdb unusable. Sorry
9000about that. I encourage people to fix it and post the fixes.
9001
9002 * Preliminary ELF and DWARF support
9003
9004GDB can read ELF object files on System V Release 4, and can handle
9005debugging records for C, in DWARF format, in ELF files. This support
9006is preliminary. If you bring up GDB on another SVR4 system, please
9007send mail to bug-gdb@prep.ai.mit.edu to let us know what changes were
9008reqired (if any).
9009
9010 * New Readline
9011
9012GDB now uses the latest `readline' library. One user-visible change
9013is that two tabs will list possible command completions, which previously
9014required typing M-? (meta-question mark, or ESC ?).
9015
9016 * Bugs fixed
9017
9018The `stepi' bug that many of you noticed has been squashed.
9019Many bugs in C++ have been handled. Many more remain to be handled.
9020See the various ChangeLog files (primarily in gdb and bfd) for details.
9021
9022 * State of the MIPS world (in case you wondered):
9023
9024GDB can understand the symbol tables emitted by the compilers
9025supplied by most vendors of MIPS-based machines, including DEC. These
9026symbol tables are in a format that essentially nobody else uses.
9027
9028Some versions of gcc come with an assembler post-processor called
9029mips-tfile. This program is required if you want to do source-level
9030debugging of gcc-compiled programs. I believe FSF does not ship
9031mips-tfile with gcc version 1, but it will eventually come with gcc
9032version 2.
9033
9034Debugging of g++ output remains a problem. g++ version 1.xx does not
9035really support it at all. (If you're lucky, you should be able to get
9036line numbers and stack traces to work, but no parameters or local
9037variables.) With some work it should be possible to improve the
9038situation somewhat.
9039
9040When gcc version 2 is released, you will have somewhat better luck.
9041However, even then you will get confusing results for inheritance and
9042methods.
9043
9044We will eventually provide full debugging of g++ output on
9045DECstations. This will probably involve some kind of stabs-in-ecoff
9046encapulation, but the details have not been worked out yet.
9047
9048
9049*** Changes in GDB-4.2:
9050
9051 * Improved configuration
9052
9053Only one copy of `configure' exists now, and it is not self-modifying.
9054Porting BFD is simpler.
9055
9056 * Stepping improved
9057
9058The `step' and `next' commands now only stop at the first instruction
9059of a source line. This prevents the multiple stops that used to occur
9060in switch statements, for-loops, etc. `Step' continues to stop if a
9061function that has debugging information is called within the line.
9062
9063 * Bug fixing
9064
9065Lots of small bugs fixed. More remain.
9066
9067 * New host supported (not target)
9068
9069Intel 386 PC clone running Mach i386-none-mach
9070
9071
9072*** Changes in GDB-4.1:
9073
9074 * Multiple source language support
9075
9076GDB now has internal scaffolding to handle several source languages.
9077It determines the type of each source file from its filename extension,
9078and will switch expression parsing and number formatting to match the
9079language of the function in the currently selected stack frame.
9080You can also specifically set the language to be used, with
9081`set language c' or `set language modula-2'.
9082
9083 * GDB and Modula-2
9084
9085GDB now has preliminary support for the GNU Modula-2 compiler,
9086currently under development at the State University of New York at
9087Buffalo. Development of both GDB and the GNU Modula-2 compiler will
9088continue through the fall of 1991 and into 1992.
9089
9090Other Modula-2 compilers are currently not supported, and attempting to
9091debug programs compiled with them will likely result in an error as the
9092symbol table is read. Feel free to work on it, though!
9093
9094There are hooks in GDB for strict type checking and range checking,
9095in the `Modula-2 philosophy', but they do not currently work.
9096
9097 * set write on/off
9098
9099GDB can now write to executable and core files (e.g. patch
9100a variable's value). You must turn this switch on, specify
9101the file ("exec foo" or "core foo"), *then* modify it, e.g.
9102by assigning a new value to a variable. Modifications take
9103effect immediately.
9104
9105 * Automatic SunOS shared library reading
9106
9107When you run your program, GDB automatically determines where its
9108shared libraries (if any) have been loaded, and reads their symbols.
9109The `share' command is no longer needed. This also works when
9110examining core files.
9111
9112 * set listsize
9113
9114You can specify the number of lines that the `list' command shows.
9115The default is 10.
9116
9117 * New machines supported (host and target)
9118
9119SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
9120Sony NEWS (68K) running NEWSOS 3.x: m68k-sony-sysv or news
9121Ultracomputer (29K) running Sym1: a29k-nyu-sym1 or ultra3
9122
9123 * New hosts supported (not targets)
9124
9125IBM RT/PC: romp-ibm-aix or rtpc
9126
9127 * New targets supported (not hosts)
9128
9129AMD 29000 embedded with COFF a29k-none-coff
9130AMD 29000 embedded with a.out a29k-none-aout
9131Ultracomputer remote kernel debug a29k-nyu-kern
9132
9133 * New remote interfaces
9134
9135AMD 29000 Adapt
9136AMD 29000 Minimon
9137
9138
9139*** Changes in GDB-4.0:
9140
9141 * New Facilities
9142
9143Wide output is wrapped at good places to make the output more readable.
9144
9145Gdb now supports cross-debugging from a host machine of one type to a
9146target machine of another type. Communication with the target system
9147is over serial lines. The ``target'' command handles connecting to the
9148remote system; the ``load'' command will download a program into the
9149remote system. Serial stubs for the m68k and i386 are provided. Gdb
9150also supports debugging of realtime processes running under VxWorks,
9151using SunRPC Remote Procedure Calls over TCP/IP to talk to a debugger
9152stub on the target system.
9153
9154New CPUs supported include the AMD 29000 and Intel 960.
9155
9156GDB now reads object files and symbol tables via a ``binary file''
9157library, which allows a single copy of GDB to debug programs of multiple
9158object file types such as a.out and coff.
9159
9160There is now a GDB reference card in "doc/refcard.tex". (Make targets
9161refcard.dvi and refcard.ps are available to format it).
9162
9163
9164 * Control-Variable user interface simplified
9165
9166All variables that control the operation of the debugger can be set
9167by the ``set'' command, and displayed by the ``show'' command.
9168
9169For example, ``set prompt new-gdb=>'' will change your prompt to new-gdb=>.
9170``Show prompt'' produces the response:
9171Gdb's prompt is new-gdb=>.
9172
9173What follows are the NEW set commands. The command ``help set'' will
9174print a complete list of old and new set commands. ``help set FOO''
9175will give a longer description of the variable FOO. ``show'' will show
9176all of the variable descriptions and their current settings.
9177
9178confirm on/off: Enables warning questions for operations that are
9179 hard to recover from, e.g. rerunning the program while
9180 it is already running. Default is ON.
9181
9182editing on/off: Enables EMACS style command line editing
9183 of input. Previous lines can be recalled with
9184 control-P, the current line can be edited with control-B,
9185 you can search for commands with control-R, etc.
9186 Default is ON.
9187
9188history filename NAME: NAME is where the gdb command history
9189 will be stored. The default is .gdb_history,
9190 or the value of the environment variable
9191 GDBHISTFILE.
9192
9193history size N: The size, in commands, of the command history. The
9194 default is 256, or the value of the environment variable
9195 HISTSIZE.
9196
9197history save on/off: If this value is set to ON, the history file will
9198 be saved after exiting gdb. If set to OFF, the
9199 file will not be saved. The default is OFF.
9200
9201history expansion on/off: If this value is set to ON, then csh-like
9202 history expansion will be performed on
9203 command line input. The default is OFF.
9204
9205radix N: Sets the default radix for input and output. It can be set
9206 to 8, 10, or 16. Note that the argument to "radix" is interpreted
9207 in the current radix, so "set radix 10" is always a no-op.
9208
9209height N: This integer value is the number of lines on a page. Default
9210 is 24, the current `stty rows'' setting, or the ``li#''
9211 setting from the termcap entry matching the environment
9212 variable TERM.
9213
9214width N: This integer value is the number of characters on a line.
9215 Default is 80, the current `stty cols'' setting, or the ``co#''
9216 setting from the termcap entry matching the environment
9217 variable TERM.
9218
9219Note: ``set screensize'' is obsolete. Use ``set height'' and
9220``set width'' instead.
9221
9222print address on/off: Print memory addresses in various command displays,
9223 such as stack traces and structure values. Gdb looks
9224 more ``symbolic'' if you turn this off; it looks more
9225 ``machine level'' with it on. Default is ON.
9226
9227print array on/off: Prettyprint arrays. New convenient format! Default
9228 is OFF.
9229
9230print demangle on/off: Print C++ symbols in "source" form if on,
9231 "raw" form if off.
9232
9233print asm-demangle on/off: Same, for assembler level printouts
9234 like instructions.
9235
9236print vtbl on/off: Prettyprint C++ virtual function tables. Default is OFF.
9237
9238
9239 * Support for Epoch Environment.
9240
9241The epoch environment is a version of Emacs v18 with windowing. One
9242new command, ``inspect'', is identical to ``print'', except that if you
9243are running in the epoch environment, the value is printed in its own
9244window.
9245
9246
9247 * Support for Shared Libraries
9248
9249GDB can now debug programs and core files that use SunOS shared libraries.
9250Symbols from a shared library cannot be referenced
9251before the shared library has been linked with the program (this
9252happens after you type ``run'' and before the function main() is entered).
9253At any time after this linking (including when examining core files
9254from dynamically linked programs), gdb reads the symbols from each
9255shared library when you type the ``sharedlibrary'' command.
9256It can be abbreviated ``share''.
9257
9258sharedlibrary REGEXP: Load shared object library symbols for files
9259 matching a unix regular expression. No argument
9260 indicates to load symbols for all shared libraries.
9261
9262info sharedlibrary: Status of loaded shared libraries.
9263
9264
9265 * Watchpoints
9266
9267A watchpoint stops execution of a program whenever the value of an
9268expression changes. Checking for this slows down execution
9269tremendously whenever you are in the scope of the expression, but is
9270quite useful for catching tough ``bit-spreader'' or pointer misuse
9271problems. Some machines such as the 386 have hardware for doing this
9272more quickly, and future versions of gdb will use this hardware.
9273
9274watch EXP: Set a watchpoint (breakpoint) for an expression.
9275
9276info watchpoints: Information about your watchpoints.
9277
9278delete N: Deletes watchpoint number N (same as breakpoints).
9279disable N: Temporarily turns off watchpoint number N (same as breakpoints).
9280enable N: Re-enables watchpoint number N (same as breakpoints).
9281
9282
9283 * C++ multiple inheritance
9284
9285When used with a GCC version 2 compiler, GDB supports multiple inheritance
9286for C++ programs.
9287
9288 * C++ exception handling
9289
9290Gdb now supports limited C++ exception handling. Besides the existing
9291ability to breakpoint on an exception handler, gdb can breakpoint on
9292the raising of an exception (before the stack is peeled back to the
9293handler's context).
9294
9295catch FOO: If there is a FOO exception handler in the dynamic scope,
9296 set a breakpoint to catch exceptions which may be raised there.
9297 Multiple exceptions (``catch foo bar baz'') may be caught.
9298
9299info catch: Lists all exceptions which may be caught in the
9300 current stack frame.
9301
9302
9303 * Minor command changes
9304
9305The command ``call func (arg, arg, ...)'' now acts like the print
9306command, except it does not print or save a value if the function's result
9307is void. This is similar to dbx usage.
9308
9309The ``up'' and ``down'' commands now always print the frame they end up
9310at; ``up-silently'' and `down-silently'' can be used in scripts to change
9311frames without printing.
9312
9313 * New directory command
9314
9315'dir' now adds directories to the FRONT of the source search path.
9316The path starts off empty. Source files that contain debug information
9317about the directory in which they were compiled can be found even
9318with an empty path; Sun CC and GCC include this information. If GDB can't
9319find your source file in the current directory, type "dir .".
9320
9321 * Configuring GDB for compilation
9322
9323For normal use, type ``./configure host''. See README or gdb.texinfo
9324for more details.
9325
9326GDB now handles cross debugging. If you are remotely debugging between
9327two different machines, type ``./configure host -target=targ''.
9328Host is the machine where GDB will run; targ is the machine
9329where the program that you are debugging will run.