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