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