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