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