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