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