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