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