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