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