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