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