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