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