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