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