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