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