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