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