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