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