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