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