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