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