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