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