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