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