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