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