* linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
[deliverable/binutils-gdb.git] / gdb / NEWS
CommitLineData
c906108c
SS
1 What has changed in GDB?
2 (Organized release by release)
3
d6e00af6
JB
4*** Changes since GDB 7.3
5
9c06b0b4
TJB
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
03f2bd59
JK
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
9c06b0b4
TJB
18* Changed commands
19
20watch 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
d6e00af6 24*** Changes in GDB 7.3
797054e6 25
60f98dde
MS
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
eee5b35e
DD
30* The "catch syscall" command now works on mips*-linux* targets.
31
b716877b
AB
32* The -data-disassemble MI command now supports modes 2 and 3 for
33 dumping the instruction opcodes.
34
aae1c79a
DE
35* New command line options
36
37-data-directory DIR Specify DIR as the "data-directory".
38 This is mostly for testing purposes.
39
a86caf66
DE
40* The "maint set python auto-load on|off" command has been renamed to
41 "set auto-load-scripts on|off".
42
99e7ae30
DE
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
4694da01
TT
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
f4b8a18d
KW
55* OpenCL C
56 Initial support for the OpenCL C language (http://www.khronos.org/opencl)
57 has been integrated into GDB.
58
585d1eb8
PM
59* Python scripting
60
da5d4055
PM
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
9a6f1302
PM
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
29703da4
PM
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
350c6c65
PM
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
6e6fbe60
DE
78 ** New function gdb.lookup_global_symbol looks up a global symbol.
79
585d1eb8
PM
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
0e3509db
DE
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
7b51bc51
DE
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
99e7ae30
DE
100 ** gdb.parameter("directories") is now available.
101
d8e22779
TT
102 ** New function gdb.newest_frame returns the newest frame in the
103 selected thread.
104
4694da01
TT
105 ** The gdb.InferiorThread class has a new "name" attribute. This
106 holds the thread's name.
107
505500db
SW
108 ** Python Support for Inferior events.
109 Python scripts can add observers to be notified of events
824446ad 110 occurring in the process being debugged.
c17a9e46
HZ
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
def98928
TT
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
66cb8159
TT
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
4aac0db7
UW
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
283e6a52
TT
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
b56df873 149* The "watch" command now accepts an optional "-location" argument.
14c0d4e1 150 When used, this causes GDB to watch the memory referred to by the
b56df873
TT
151 expression. Such a watchpoint is never deleted due to it going out
152 of scope.
153
ae53ffa4
PA
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
f1310107
TJB
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
248c9dbc
JB
185* New features in the GDB remote stub, GDBserver
186
1aee7009
JB
187 ** GDBserver is now supported on PowerPC LynxOS (versions 4.x and 5.x),
188 and i686 LynxOS (version 5.x).
248c9dbc 189
eb826dc6
MF
190 ** GDBserver is now supported on Blackfin Linux.
191
44603653
JB
192* New native configurations
193
194ia64 HP-UX ia64-*-hpux*
195
91021223
MF
196* New targets:
197
198Analog Devices, Inc. Blackfin Processor bfin-*
199
6e1bb179
JB
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
50c97f38
TT
205* Guile support was removed.
206
448a92bf
MF
207* New features in the GNU simulator
208
209 ** The --map-info flag lists all known core mappings.
210
66ee2731
MF
211 ** CFI flashes may be simulated via the "cfi" device.
212
76b8507d 213*** Changes in GDB 7.2
bfbf3774 214
ba25b921
PA
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
4656f5c6
SW
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
254e6b9e
DE
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
711e434b
PM
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
0fb4aa4b
PA
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
ca11e899
SS
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
711e434b
PM
307* New remote packets
308
309qGetTIBAddr
310
311 Return the address of the Windows Thread Information Block of a given thread.
312
dde08ee1
PA
313qRelocInsn
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
0fb4aa4b
PA
322qTfSTM, qTsSTM
323
324 List static tracepoint markers in the target program.
325
326qTSTMat
327
328 List static tracepoint markers at a given address in the target
329 program.
330
331qXfer: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
ca11e899
SS
337QAllow
338
339 Send the current settings of GDB's permission flags.
340
341QTDPsrc
342
343 Send part of the source (textual) form of a tracepoint definition,
344 which includes location, conditional, and action list.
345
3f7b2faa
DE
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
d337e9f0
PA
350* New features in the GDB remote stub, GDBserver
351
0fb4aa4b
PA
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.
d337e9f0 367
c24d0242
PM
368 - GDBserver now supports x86_64 Windows 64-bit debugging.
369
c8d5aac9
L
370* GDB now sends xmlRegisters= in qSupported packet to indicate that
371 it understands register description.
372
7c953934
TT
373* The --batch flag now disables pagination and queries.
374
8685c86f
L
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
95a42b64 383* The `commands' command now accepts a range of breakpoints to modify.
86b17b60
PA
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).
95a42b64 389
8bd10a10
CM
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
ab38a727
PA
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
6149aea9
PA
405* New commands
406
f1421989
HZ
407eval 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
ab38a727
PA
411set target-file-system-kind unix|dos-based|auto
412show target-file-system-kind
413 Set or show the assumed file system kind for target reported file
414 names.
415
6149aea9
PA
416save 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
422is now deprecated.
423
0fb4aa4b
PA
424info static-tracepoint-markers
425 Display information about static tracepoint markers in the target.
426
427strace 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
ca11e899
SS
431set observer on|off
432show observer
433 Enable and disable observer mode.
434
435set may-write-registers on|off
436set may-write-memory on|off
437set may-insert-breakpoints on|off
438set may-insert-tracepoints on|off
439set may-insert-fast-tracepoints on|off
440set 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
449set record memory-query on|off
450show record memory-query
451 Control whether to stop the inferior if memory changes caused
452 by an instruction cannot be recorded.
453
53a71c06
CR
454* Changed commands
455
456disassemble
457 The disassemble command now supports "start,+length" form of two arguments.
458
f3e9a817
PM
459* Python scripting
460
9279c692
JB
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
adc36818 467** The GDB Python API now has access to breakpoints, symbols, symbol
595939de
PM
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.
f870a310 471
fa33c3cd 472** New functions gdb.target_charset, gdb.target_wide_charset,
07ca107c
DE
473 gdb.progspaces, gdb.current_progspace, and gdb.string_to_argv.
474
475** New exception gdb.GdbError.
fa33c3cd
DE
476
477** Pretty-printers are now also looked up in the current program space.
f3e9a817 478
967cf477
DE
479** Pretty-printers can now be individually enabled and disabled.
480
8a1ea21f
DE
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
a7bdde9e
VP
485* Tracepoint actions were unified with breakpoint commands. In particular,
486there are no longer differences in "info break" output for breakpoints and
487tracepoints and the "commands" command can be used for both tracepoints and
488regular breakpoints.
489
05071a4d
PA
490* New targets
491
492ARM Symbian arm*-*-symbianelf*
493
6aecb9c2
JB
494* D language support.
495 GDB now supports debugging programs written in the D programming
496 language.
497
431e49aa
TJB
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
bfbf3774 513*** Changes in GDB 7.1
abc7453d 514
4eef138c
TT
515* C++ Improvements
516
517 ** Namespace Support
71dee663
SW
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
4eef138c
TT
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
2d1c1221
ME
536* New targets
537
538Xilinx MicroBlaze microblaze-*-*
34207b9e 539Renesas RX rx-*-elf
2d1c1221
ME
540
541* New Simulators
542
543Xilinx MicroBlaze microblaze
34207b9e 544Renesas RX rx
2d1c1221 545
6c95b8df
PA
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
d5551862
SS
557* New tracing features
558
559 GDB's tracepoint facility now includes several new features:
560
561 ** Trace state variables
f61e138d
SS
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.
7a697b8d 573
d5551862 574 ** Fast tracepoints
7a697b8d
SS
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
d5551862
SS
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
00bf0b85
SS
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>".
4daf5ac0
SS
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
21a0512e
PP
611* Changed commands
612
613disassemble
614 The disassemble command, when invoked with two arguments, now requires
615 the arguments to be comma-separated.
616
0fe7935b
DJ
617info variables
618 The info variables command now displays variable definitions. Files
619 which only declare a variable are not shown.
620
fb2e7cb4
JB
621source
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
6c95b8df
PA
629* New commands (for set/show, see "New options" below)
630
399cd161
MS
631record 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
635record restore <FILENAME>
636 Restore the process record execution log that was saved at an
637 earlier time, for replay debugging.
638
6c95b8df
PA
639add-inferior [-copies <N>] [-exec <FILENAME>]
640 Add a new inferior.
641
642clone-inferior [-copies <N>] [ID]
643 Make a new inferior ready to execute the same program another
644 inferior has loaded.
645
646remove-inferior ID
647 Remove an inferior.
648
649maint info program-spaces
650 List the program spaces loaded into GDB.
651
9a7071a8
JB
652set remote interrupt-sequence [Ctrl-C | BREAK | BREAK-g]
653show 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
660set remote interrupt-on-connect [on | off]
661show 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
666set remotebreak [on | off]
667show remotebreak
668Deprecated. Use "set/show remote interrupt-sequence" instead.
669
f61e138d
SS
670tvariable $NAME [ = EXP ]
671 Create or modify a trace state variable.
672
673info tvariables
674 List trace state variables and their values.
675
676delete tvariable $NAME ...
677 Delete one or more trace state variables.
678
6da95a67
SS
679teval EXPR, ...
680 Evaluate the given expressions without collecting anything into the
681 trace buffer. (Valid in tracepoint actions only.)
682
7a697b8d
SS
683ftrace FN / FILE:LINE / *ADDR
684 Define a fast tracepoint at the given function, line, or address.
685
b0f02ee9
JK
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
6c95b8df
PA
691* New options
692
693set follow-exec-mode new|same
694show 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
236f1d4d
SS
699set default-collect EXPR, ...
700show 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
d5551862
SS
705set disconnected-tracing
706show 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
4daf5ac0
SS
711set circular-trace-buffer
712show 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
fb2e7cb4
JB
718set script-extension off|soft|strict
719show 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
2b71fc8e
JB
727set ada trust-PAD-over-XVS on|off
728show 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
de2e5182
TT
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
f61e138d
SS
750* New remote packets
751
752QTDV
753 Define a trace state variable.
754
755qTV
756 Get the current value of a trace state variable.
757
d5551862
SS
758QTDisconnected
759 Set desired tracing behavior upon disconnection.
760
4daf5ac0
SS
761QTBuffer:circular
762 Set the trace buffer to be linear or circular.
763
d5551862
SS
764qTfP, qTsP
765 Get data about the tracepoints currently in use.
766
2d483d34
MS
767* Bug fixes
768
769Process record now works correctly with hardware watchpoints.
770
6e0e5977
JB
771Multiple bug fixes have been made to the mips-irix port, making it
772much 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
93c26624
JK
789PIE (Position Independent Executable) programs debugging is now supported.
790This includes debugging execution of PIC (Position Independent Code) shared
791libraries although for that, it should be possible to run such libraries as an
792executable program.
793
abc7453d 794*** Changes in GDB 7.0
75feb17d 795
4efc6507
DE
796* GDB now has an interface for JIT compilation. Applications that
797dynamically generate code can create symbol files in memory and register
798them with GDB. For users, the feature should work transparently, and
799for JIT developers, the interface is documented in the GDB manual in the
800"JIT Compilation Interface" chapter.
801
782b2b07
SS
802* Tracepoints may now be conditional. The syntax is as for
803breakpoints; either an "if" clause appended to the "trace" command,
804or the "condition" command is available. GDB sends the condition to
805the target for evaluation using the same bytecode format as is used
806for tracepoint actions.
807
53a71c06
CR
808* The disassemble command now supports: an optional /r modifier, print the
809raw instructions in hex as well as in symbolic form, and an optional /m
810modifier to print mixed source+assembly.
e6158f16 811
e7a8dbfb
HZ
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
64644d9b
MS
819* Reverse debugging: GDB now has new commands reverse-continue, reverse-
820step, reverse-next, reverse-finish, reverse-stepi, reverse-nexti, and
821set execution-direction {forward|reverse}, for targets that support
822reverse execution.
823
b9412953
DD
824* GDB now supports hardware watchpoints on MIPS/Linux systems. This
825feature is available with a native GDB running on kernel version
8262.6.28 or later.
827
6c7a06a3
TT
828* GDB now has support for multi-byte and wide character sets on the
829target. Strings whose character type is wchar_t, char16_t, or
830char32_t are now correctly printed. GDB supports wide- and unicode-
831literals in C, that is, L'x', L"string", u'x', u"string", U'x', and
832U"string" syntax. And, GDB allows the "%ls" and "%lc" formats in
833`printf'. This feature requires iconv to work properly; if your
834system does not have a working iconv, GDB can use GNU libiconv. See
835the installation instructions for more information.
836
f1838a98
UW
837* GDB now supports automatic retrieval of shared library files from
838remote targets. To use this feature, specify a system root that begins
839with the `remote:' prefix, either via the `set sysroot' command or via
840the `--with-sysroot' configure-time option.
841
55333a84
DE
842* "info sharedlibrary" now takes an optional regex of libraries to show,
843and it now reports if a shared library has no debugging information.
844
7f6a6314
PM
845* Commands `set debug-file-directory', `set solib-search-path' and `set args'
846now complete on file names.
847
65d12d83
TT
848* When completing in expressions, gdb will attempt to limit
849completions to allowable structure or union fields, where appropriate.
850For instance, consider:
851
852 # struct example { int f1; double f2; };
853 # struct example variable;
854 (gdb) p variable.
855
856If the user types TAB at the end of this command line, the available
857completions will be "f1" and "f2".
858
edb3359d
DJ
859* Inlined functions are now supported. They show up in backtraces, and
860the "step", "next", and "finish" commands handle them automatically.
861
2fae03e8
TT
862* GDB now supports the token-splicing (##) and stringification (#)
863operators when expanding macros. It also supports variable-arity
864macros.
865
47a3467a 866* GDB now supports inspecting extra signal information, exported by
58d6951d
DJ
867the new $_siginfo convenience variable. The feature is currently
868implemented on linux ARM, i386 and amd64.
869
870* GDB can now display the VFP floating point registers and NEON vector
871registers on ARM targets. Both ARM GNU/Linux native GDB and gdbserver
872can provide these registers (requires Linux 2.6.30 or later). Remote
873and simulator targets may also provide them.
47a3467a 874
08388c79
DE
875* New remote packets
876
877qSearch:memory:
878 Search memory for a sequence of bytes.
879
a6f3e723
SL
880QStartNoAckMode
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
d7713ae0
EZ
885vKill
886 Kill the process with the specified process ID. Use this in preference
887 to `k' when multiprocess protocol extensions are supported.
888
07e059b5
VP
889qXfer:osdata:read
890 Obtains additional operating system information
891
47a3467a
PA
892qXfer:siginfo:read
893qXfer:siginfo:write
894 Read or write additional signal information.
895
060871df
PA
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
c055b101 902* GDB now supports multiple function calling conventions according to the
a0ef4274 903DWARF-2 DW_AT_calling_convention function attribute.
c055b101
CV
904
905* The SH target utilizes the aforementioned change to distinguish between gcc
a0ef4274
DJ
906and Renesas calling convention. It also adds the new CLI commands
907`set/show sh calling-convention'.
c055b101 908
31fffb02
CS
909* GDB can now read compressed debug sections, as produced by GNU gold
910with the --compress-debug-sections=zlib flag.
911
88d8a8e0
JB
912* 64-bit core files are now supported on AIX.
913
7f99b190
JB
914* Thread switching is now supported on Tru64.
915
ccd213ac
DJ
916* Watchpoints can now be set on unreadable memory locations, e.g. addresses
917which will be allocated using malloc later in program execution.
918
1fddbabb 919* The qXfer:libraries:read remote procotol packet now allows passing a
31fffb02 920list of section offsets.
1fddbabb 921
a0ef4274
DJ
922* On GNU/Linux, GDB can now attach to stopped processes. Several race
923conditions handling signals delivered during attach or thread creation
924have also been fixed.
925
bfb8797a 926* GDB now supports the use of DWARF boolean types for Ada's type Boolean.
158c7665
PH
927From the user's standpoint, all unqualified instances of True and False
928are treated as the standard definitions, regardless of context.
bfb8797a 929
71c25dea
TT
930* GDB now parses C++ symbol and type names more flexibly. For
931example, given:
932
933 template<typename T> class C { };
934 C<char const *> c;
935
936GDB 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
ccd213ac
DJ
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
7ae0e2a2
UW
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
a6f3e723
SL
952 - gdbserver uses the new noack protocol mode for TCP connections to
953 reduce communications latency, if also supported and enabled in GDB.
954
da8bd9a3
DJ
955 - Support for the sparc64-linux-gnu target is now included in
956 gdbserver.
957
d70e31dd
DE
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
d57a3c85
TJB
965* Python scripting
966
967 GDB now has support for scripting using Python. Whether this is
968 available is determined at configure time.
969
d8906c6f
TJB
970 New GDB commands can now be written in Python.
971
aadc346a
JB
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
adb483fe
DJ
986* Support for user-defined prefixed commands. The "define" command can
987add new commands to existing prefixes, e.g. "target".
988
2277426b
PA
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
08d16641
PA
999* Target descriptions can now describe the target OS ABI. See the
1000"Target Description Format" section in the user manual for more
1001information.
1002
e35359c5
UW
1003* Target descriptions can now describe "compatible" architectures
1004to indicate that the target can execute applications for a different
1005architecture in addition to those for the main target architecture.
1006See the "Target Description Format" section in the user manual for
1007more information.
1008
85e747d2
UW
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
1018use both the PPU and SPU architectures. To enable support for hybrid
1019Cell/B.E. debugging, you need to configure GDB to support both the
1020powerpc-linux or powerpc64-linux and the spu-elf targets, using the
1021--enable-targets configure option.
1022
11ade57a
PA
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
d7713ae0 1037* New commands (for set/show, see "New options" below)
75feb17d 1038
a96d9b2e
SDJ
1039catch 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
08388c79
DE
1049find [/size-char] [/max-count] start-address, end-address|+search-space-size,
1050 val1 [, val2, ...]
1051 Search memory for a sequence of bytes.
1052
d57a3c85
TJB
1053maint set python print-stack
1054maint show python print-stack
1055 Show a stack trace when an error is encountered in a Python script.
1056
1057python [CODE]
1058 Invoke CODE by passing it to the Python interpreter.
1059
d7713ae0
EZ
1060macro define
1061macro list
1062macro undef
1063 These allow macros to be defined, undefined, and listed
1064 interactively.
1065
1066info os processes
1067 Show operating system information about processes.
1068
2277426b
PA
1069info inferiors
1070 List the inferiors currently under GDB's control.
1071
1072inferior NUM
1073 Switch focus to inferior number NUM.
1074
1075detach inferior NUM
1076 Detach from inferior number NUM.
1077
1078kill inferior NUM
1079 Kill inferior number NUM.
1080
d7713ae0
EZ
1081* New options
1082
3285f3fe
UW
1083set spu stop-on-load
1084show spu stop-on-load
1085 Control whether to stop for new SPE threads during Cell/B.E. debugging.
1086
ff1a52c6
UW
1087set spu auto-flush-cache
1088show spu auto-flush-cache
1089 Control whether to automatically flush the software-managed cache
1090 during Cell/B.E. debugging.
1091
d7713ae0
EZ
1092set sh calling-convention
1093show sh calling-convention
1094 Control the calling convention used when calling SH target functions.
1095
e0a3ce09 1096set debug timestamp
75feb17d 1097show debug timestamp
d7713ae0
EZ
1098 Control display of timestamps with GDB debugging output.
1099
1100set disassemble-next-line
1101show disassemble-next-line
1102 Control display of disassembled source lines or instructions when
1103 the debuggee stops.
1104
1105set remote noack-packet
1106show remote noack-packet
1107 Set/show the use of remote protocol QStartNoAckMode packet. See above
1108 under "New remote packets."
1109
1110set remote query-attached-packet
1111show remote query-attached-packet
1112 Control use of remote protocol `qAttached' (query-attached) packet.
1113
1114set remote read-siginfo-object
1115show remote read-siginfo-object
1116 Control use of remote protocol `qXfer:siginfo:read' (read-siginfo-object)
1117 packet.
1118
1119set remote write-siginfo-object
1120show remote write-siginfo-object
1121 Control use of remote protocol `qXfer:siginfo:write' (write-siginfo-object)
1122 packet.
1123
40ab02ce
MS
1124set remote reverse-continue
1125show remote reverse-continue
1126 Control use of remote protocol 'bc' (reverse-continue) packet.
1127
1128set remote reverse-step
1129show remote reverse-step
1130 Control use of remote protocol 'bs' (reverse-step) packet.
1131
d7713ae0
EZ
1132set displaced-stepping
1133show 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
1138set debug displaced
1139show debug displaced
1140 Control display of debugging info for displaced stepping.
1141
1142maint set internal-error
1143maint show internal-error
1144 Control what GDB does when an internal error is detected.
1145
1146maint set internal-warning
1147maint show internal-warning
1148 Control what GDB does when an internal warning is detected.
75feb17d 1149
ccd213ac
DJ
1150set exec-wrapper
1151show exec-wrapper
1152unset exec-wrapper
1153 Use a wrapper program to launch programs for debugging.
fa4727a6 1154
aad4b048
JB
1155set multiple-symbols (all|ask|cancel)
1156show 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
74960c60
VP
1161set breakpoint always-inserted
1162show 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
0428b8f5
DJ
1167set arm fallback-mode (arm|thumb|auto)
1168show arm fallback-mode
1169set arm force-mode (arm|thumb|auto)
1170show 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
10568435
JK
1176set disable-randomization
1177show 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
d7713ae0
EZ
1182set non-stop
1183show non-stop
1184 Control whether other threads are stopped or not when some thread hits
1185 a breakpoint.
1186
b3eb342c 1187set target-async
d7713ae0 1188show target-async
b3eb342c
VP
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
6c7a06a3
TT
1194set target-wide-charset
1195show 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
84603566
SL
1199set tcp auto-retry (on|off)
1200show tcp auto-retry
1201set tcp connect-timeout
1202show 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
17a37d48
PP
1207set libthread-db-search-path
1208show libthread-db-search-path
1209 Control list of directories which GDB will search for appropriate
1210 libthread_db.
1211
d4db2f36
PA
1212set schedule-multiple (on|off)
1213show schedule-multiple
1214 Allow GDB to resume all threads of all processes or only threads of
1215 the current process.
1216
4e5d721f
DE
1217set stack-cache
1218show 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
910c5da8
JB
1223set interactive-mode (on|off|auto)
1224show 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
2277426b
PA
1231* Removed commands
1232
1233info 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
1239fork 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
1244process 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
1249delete 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
1255detach 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
a80b95ba
TG
1261* New native configurations
1262
1263x86/x86_64 Darwin i[34567]86-*-darwin*
1264
b8bfd3ed
JB
1265x86_64 MinGW x86_64-*-mingw*
1266
75a2d5e7
TT
1267* New targets
1268
c28c63d8 1269Lattice Mico32 lm32-*
75a2d5e7 1270x86 DICOS i[34567]86-*-dicos*
4c1d2973 1271x86_64 DICOS x86_64-*-dicos*
5f814c3b 1272S+core 3 score-*-*
75a2d5e7 1273
6de3146c
PA
1274* The GDB remote stub, gdbserver, now supports x86 Windows CE
1275 (mingw32ce) debugging.
1276
d5cbbe6e
JB
1277* Removed commands
1278
1279catch load
1280catch unload
1281 These commands were actually not implemented on any target.
1282
75feb17d 1283*** Changes in GDB 6.8
f9ed52be 1284
af5ca30d
NH
1285* New native configurations
1286
1287NetBSD/hppa hppa*-*netbsd*
94a0e877 1288Xtensa GNU/Linux xtensa*-*-linux*
af5ca30d
NH
1289
1290* New targets
1291
1292NetBSD/hppa hppa*-*-netbsd*
94a0e877 1293Xtensa GNU/Lunux xtensa*-*-linux*
af5ca30d 1294
7a404eba
PA
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
430ebac9
PA
1302* GDB can now be built as a native debugger for debugging Windows x86
1303(mingw32) Portable Executable (PE) programs.
1304
fe6fbf8b 1305* Pending breakpoints no longer change their number when their address
8d5f9c6f 1306is resolved.
fe6fbf8b
VP
1307
1308* GDB now supports breakpoints with multiple locations,
8d5f9c6f
DJ
1309including breakpoints on C++ constructors, inside C++ templates,
1310and in inlined functions.
fe6fbf8b 1311
10665d76
JB
1312* GDB's ability to debug optimized code has been improved. GDB more
1313accurately identifies function bodies and lexical blocks that occupy
1314more than one contiguous range of addresses.
1315
7cc46491
DJ
1316* Target descriptions can now describe registers for PowerPC.
1317
d71340b8
DJ
1318* The GDB remote stub, gdbserver, now supports the AltiVec and SPE
1319registers on PowerPC targets.
1320
523c4513
DJ
1321* The GDB remote stub, gdbserver, now supports thread debugging on GNU/Linux
1322targets even when the libthread_db library is not available.
1323
a6b151f1
DJ
1324* The GDB remote stub, gdbserver, now supports the new file transfer
1325commands (remote put, remote get, and remote delete).
1326
2d717e4f
DJ
1327* The GDB remote stub, gdbserver, now supports run and attach in
1328extended-remote mode.
1329
24a836bd 1330* hppa*64*-*-hpux11* target broken
d001be7a
DJ
1331The debugger is unable to start a program and fails with the following
1332error: "Error trying to get information about dynamic linker".
1333The gdb-6.7 release is also affected.
24a836bd 1334
d0c678e6
UW
1335* GDB now supports the --enable-targets= configure option to allow
1336building a single GDB executable that supports multiple remote
1337target architectures.
1338
d64a946d
TJB
1339* GDB now supports debugging C and C++ programs which use the
1340Decimal Floating Point extension. In addition, the PowerPC target
1341now has a set of pseudo-registers to inspect decimal float values
1342stored in two consecutive float registers.
1343
ee163bf5
VP
1344* The -break-insert MI command can optionally create pending
1345breakpoints now.
1346
b93b6ca7 1347* Improved support for debugging Ada
d001be7a
DJ
1348Many improvements to the Ada language support have been made. These
1349include:
b93b6ca7
JB
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
d001be7a
DJ
1358* GDB on GNU/Linux and HP/UX can now debug through "exec" of a new
1359process.
1360
a6b151f1
DJ
1361* New commands
1362
6d53d0af
JB
1363set print frame-arguments (all|scalars|none)
1364show 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
a6b151f1
DJ
1368remote put
1369remote get
1370remote 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
1382vFile:open:
1383vFile:close:
1384vFile:pread:
1385vFile:pwrite:
1386vFile:unlink:
1387 Open, close, read, write, and delete files on the remote system.
d0c678e6 1388
2d717e4f
DJ
1389vAttach
1390 Attach to an existing process on the remote system, in extended-remote
1391 mode.
1392
1393vRun
1394 Run a new process on the remote system, in extended-remote mode.
1395
8d5f9c6f 1396*** Changes in GDB 6.7
6dd09645 1397
19d378fc
MS
1398* Resolved 101 resource leaks, null pointer dereferences, etc. in gdb,
1399bfd, libiberty and opcodes, as revealed by static analysis donated by
1400Coverity, Inc. (http://scan.coverity.com).
1401
3a40aaa0
UW
1402* When looking up multiply-defined global symbols, GDB will now prefer the
1403symbol definition in the current shared library if it was built using the
1404-Bsymbolic linker option.
1405
a6ec25f2
BW
1406* When the Text User Interface (TUI) is not configured, GDB will now
1407recognize the -tui command-line option and print a message that the TUI
1408is not supported.
1409
6dd09645
JB
1410* The GDB remote stub, gdbserver, now has lower overhead for high
1411frequency signals (e.g. SIGALRM) via the QPassSignals packet.
1412
c9bb8148
DJ
1413* GDB for MIPS targets now autodetects whether a remote target provides
141432-bit or 64-bit register values.
1415
0d5de010
DJ
1416* Support for C++ member pointers has been improved.
1417
23181151
DJ
1418* GDB now understands XML target descriptions, which specify the
1419target's overall architecture. GDB can read a description from
1420a local file or over the remote serial protocol.
1421
ea37ba09
DJ
1422* Vectors of single-byte data use a new integer type which is not
1423automatically displayed as character or string data.
1424
1425* The /s format now works with the print command. It displays
1426arrays of single-byte integers and pointers to single-byte integers
1427as strings.
e1f48ead 1428
123dc839
DJ
1429* Target descriptions can now describe target-specific registers,
1430for architectures which have implemented the support (currently
8d5f9c6f 1431only ARM, M68K, and MIPS).
123dc839 1432
05a4558a
DJ
1433* GDB and the GDB remote stub, gdbserver, now support the XScale
1434iWMMXt coprocessor.
fb1e4ffc 1435
7c963485
PA
1436* The GDB remote stub, gdbserver, has been updated to support
1437ARM Windows CE (mingw32ce) debugging, and GDB Windows CE support
1438has been rewritten to use the standard GDB remote protocol.
1439
b18be20d
DJ
1440* GDB can now step into C++ functions which are called through thunks.
1441
0ca420ce
UW
1442* GDB for the Cell/B.E. SPU now supports overlay debugging.
1443
31d99776
DJ
1444* The GDB remote protocol "qOffsets" packet can now honor ELF segment
1445layout. It also supports a TextSeg= and DataSeg= response when only
1446segment base addresses (rather than offsets) are available.
1447
a4642986
MR
1448* The /i format now outputs any trailing branch delay slot instructions
1449immediately following the last instruction within the count specified.
1450
cfa9d6d9
DJ
1451* The GDB remote protocol "T" stop reply packet now supports a
1452"library" response. Combined with the new "qXfer:libraries:read"
1453packet, this response allows GDB to debug shared libraries on targets
1454where the operating system manages the list of loaded libraries (e.g.
1455Windows and SymbianOS).
255e7678
DJ
1456
1457* The GDB remote stub, gdbserver, now supports dynamic link libraries
1458(DLLs) on Windows and Windows CE targets.
f5db8714
JK
1459
1460* GDB now supports a faster verification that a .debug file matches its binary
1461according to its build-id signature, if the signature is present.
cfa9d6d9 1462
c9bb8148
DJ
1463* New commands
1464
23776285
MR
1465set remoteflow
1466show remoteflow
1467 Enable or disable hardware flow control (RTS/CTS) on the serial port
1468 when debugging using remote targets.
1469
c9bb8148
DJ
1470set mem inaccessible-by-default
1471show 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
1478set breakpoint auto-hw
1479show 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
0e420bd8
JB
1487catch exception
1488catch exception unhandled
1489 Stop the program execution when Ada exceptions are raised.
1490
1491catch assert
1492 Stop the program execution when an Ada assertion failed.
1493
f822c95b
DJ
1494set sysroot
1495show 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
83cc5c53
UW
1500info 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
bd372731
MK
1505* New native configurations
1506
1507OpenBSD/sh sh*-*openbsd*
1508
23181151
DJ
1509set tdesc filename
1510unset tdesc filename
1511show 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
c9bb8148
DJ
1515* New targets
1516
54fe9172 1517OpenBSD/sh sh*-*-openbsd*
c9bb8148 1518MIPS64 GNU/Linux (gdbserver) mips64-linux-gnu
c077150c 1519Toshiba Media Processor mep-elf
c9bb8148 1520
6dd09645
JB
1521* New remote packets
1522
1523QPassSignals:
1524 Ignore the specified signals; pass them directly to the debugged program
1525 without stopping other threads or reporting them to GDB.
1526
23181151
DJ
1527qXfer:features:read:
1528 Read an XML target description from the target, which describes its
1529 features.
6dd09645 1530
83cc5c53
UW
1531qXfer:spu:read:
1532qXfer: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
cfa9d6d9
DJ
1536qXfer: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
483367ee
DJ
1542* Removed targets
1543
1544Support for these obsolete configurations has been removed.
1545
d08950c4
UW
1546alpha*-*-osf1*
1547alpha*-*-osf2*
7ce59000 1548d10v-*-*
483367ee
DJ
1549hppa*-*-hiux*
1550i[34567]86-ncr-*
1551i[34567]86-*-dgux*
1552i[34567]86-*-lynxos*
1553i[34567]86-*-netware*
1554i[34567]86-*-sco3.2v5*
1555i[34567]86-*-sco3.2v4*
1556i[34567]86-*-sco*
1557i[34567]86-*-sysv4.2*
1558i[34567]86-*-sysv4*
1559i[34567]86-*-sysv5*
1560i[34567]86-*-unixware2*
1561i[34567]86-*-unixware*
1562i[34567]86-*-sysv*
1563i[34567]86-*-isc*
1564m68*-cisco*-*
1565m68*-tandem-*
ad527d2e 1566mips*-*-pe
483367ee 1567rs6000-*-lynxos*
ad527d2e 1568sh*-*-pe
483367ee 1569
7ce59000
DJ
1570* Other removed features
1571
1572target abug
1573target cpu32bug
1574target est
1575target rom68k
1576
1577 Various m68k-only ROM monitors.
1578
ea35711c
DJ
1579target hms
1580target e7000
1581target sh3
1582target sh3e
1583
1584 Various Renesas ROM monitors and debugging interfaces for SH and
1585 H8/300.
1586
1587target 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
7ce59000
DJ
1593DWARF 1 support
1594
1595 A debug information format. The predecessor to DWARF 2 and
1596 DWARF 3, which are still supported.
1597
54d61198
DJ
1598Support 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
ea35711c
DJ
1605MIPS ".pdr" sections
1606
1607 A MIPS-specific format used to describe stack frame layout
1608 in debugging information.
1609
1610Scheme support
1611
1612 GDB could work with an older version of Guile to debug
1613 the interpreter and Scheme programs running in it.
1614
1a69e1e4
DJ
1615set mips stack-arg-size
1616set mips saved-gpreg-size
1617
1618 Use "set mips abi" to control parameter passing for MIPS.
1619
6dd09645 1620*** Changes in GDB 6.6
e374b601 1621
ca3bf3bd
DJ
1622* New targets
1623
1624Xtensa xtensa-elf
9c309e77 1625Cell Broadband Engine SPU spu-elf
ca3bf3bd 1626
6aec2e11
DJ
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
1629running 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
1632Cygwin debugging. Both single-threaded and multi-threaded programs are
1633supported.
1634
17218d91
DJ
1635* The "set trust-readonly-sections" command works again. This command was
1636broken in GDB 6.3, 6.4, and 6.5.
1637
9ebce043
DJ
1638* The "load" command now supports writing to flash memory, if the remote
1639stub provides the required support.
1640
7d3d3ece
DJ
1641* Support for GNU/Linux Thread Local Storage (TLS, per-thread variables) no
1642longer requires symbolic debug information (e.g. DWARF-2).
1643
4f8253f3
JB
1644* New commands
1645
1646set substitute-path
1647unset substitute-path
1648show 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
9fa66fd7
AS
1654set trace-commands
1655show 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
1f5befc1
DJ
1660* REMOVED features
1661
1662The ARM Demon monitor support (RDP protocol, "target rdp").
1663
2ec3381a
DJ
1664Kernel Object Display, an embedded debugging feature which only worked with
1665an obsolete version of Cisco IOS.
1666
3d00d119
DJ
1667The 'set download-write-size' and 'show download-write-size' commands.
1668
be2a5f71
DJ
1669* New remote packets
1670
1671qSupported:
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
0876f84a
DJ
1678qXfer: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
9ebce043
DJ
1682qXfer:memory-map:read:
1683 Fetch a memory map from the remote stub, including information about
1684 RAM, ROM, and flash memory devices.
1685
1686vFlashErase:
1687vFlashWrite:
1688vFlashDone:
1689 Erase and program a flash memory device.
1690
0876f84a
DJ
1691* Removed remote packets
1692
1693qPart: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
e374b601 1697*** Changes in GDB 6.5
53e5f3cf 1698
96309189
MS
1699* New targets
1700
1701Renesas M32C/M16C m32c-elf
1702
1703Morpho Technologies ms1 ms1-elf
1704
53e5f3cf
AS
1705* New commands
1706
1707init-if-undefined Initialize a convenience variable, but
1708 only if it doesn't already have a value.
1709
ac264b3b
MS
1710The following commands are presently only implemented for native GNU/Linux:
1711
1712checkpoint Save a snapshot of the program state.
1713
1714restart <n> Return the program state to a
1715 previously saved state.
1716
1717info checkpoints List currently saved checkpoints.
1718
1719delete-checkpoint <n> Delete a previously saved checkpoint.
1720
1721set|show detach-on-fork Tell gdb whether to detach from a newly
1722 forked process, or to keep debugging it.
1723
1724info forks List forks of the user program that
1725 are available to be debugged.
1726
1727fork <n> Switch to debugging one of several
1728 forks of the user program that are
1729 available to be debugged.
1730
1731delete-fork <n> Delete a fork from the list of forks
1732 that are available to be debugged (and
1733 kill the forked process).
1734
1735detach-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
3950dc3f
NS
1739* New architecture
1740
1741Morpho Technologies ms2 ms1-elf
1742
0ea3f30e
DJ
1743* Improved Windows host support
1744
1745GDB now builds as a cross debugger hosted on i686-mingw32, including
1746native console support, and remote communications using either
1747network sockets or serial ports.
1748
f79daebb
GM
1749* Improved Modula-2 language support
1750
1751GDB can now print most types in the Modula-2 syntax. This includes:
1752basic types, set types, record types, enumerated types, range types,
1753pointer types and ARRAY types. Procedure var parameters are correctly
1754printed and hexadecimal addresses and character constants are also
1755written in the Modula-2 syntax. Best results can be obtained by using
1756GNU Modula-2 together with the -gdwarf-2 command line option.
1757
acab6ab2
MM
1758* REMOVED features
1759
1760The ARM rdi-share module.
1761
f4267320
DJ
1762The Netware NLM debug server.
1763
53e5f3cf 1764*** Changes in GDB 6.4
156a53ca 1765
e0ecbda1
MK
1766* New native configurations
1767
02a677ac 1768OpenBSD/arm arm*-*-openbsd*
e0ecbda1
MK
1769OpenBSD/mips64 mips64-*-openbsd*
1770
d64a6579
KB
1771* New targets
1772
1773Morpho Technologies ms1 ms1-elf
1774
b33a6190
AS
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
11dced61
AC
1785* Deprecated commands removed
1786
1787The following commands, that were deprecated in 2000, have been
1788removed:
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
6fe85783
MK
1798* New BSD user-level threads support
1799
1800It is now possible to debug programs using the user-level threads
1801library on OpenBSD and FreeBSD. Currently supported (target)
1802configurations are:
1803
1804FreeBSD/amd64 x86_64-*-freebsd*
1805FreeBSD/i386 i386-*-freebsd*
1806OpenBSD/i386 i386-*-openbsd*
1807
1808Note that the new kernel threads libraries introduced in FreeBSD 5.x
1809are not yet supported.
1810
5260ca71
MS
1811* New support for Matsushita MN10300 w/sim added
1812(Work in progress). mn10300-elf.
1813
e84ecc99
AC
1814* REMOVED configurations and files
1815
1816VxWorks and the XDR protocol *-*-vxworks
9445aa30 1817Motorola MCORE mcore-*-*
9445aa30 1818National Semiconductor NS32000 ns32k-*-*
156a53ca 1819
31e35378
JB
1820* New "set print array-indexes" command
1821
1822After turning this setting "on", GDB prints the index of each element
1823when displaying arrays. The default is "off" to preserve the previous
1824behavior.
1825
e85e5c83
MK
1826* VAX floating point support
1827
1828GDB now supports the not-quite-ieee VAX F and D floating point formats.
1829
d91e9901
AS
1830* User-defined command support
1831
1832In addition to using $arg0..$arg9 for argument passing, it is now possible
1833to use $argc to determine now many arguments have been passed. See the
1834section on user-defined commands in the user manual for more information.
1835
f2cb65ca
MC
1836*** Changes in GDB 6.3:
1837
f47b1503
AS
1838* New command line option
1839
1840GDB now accepts -l followed by a number to set the timeout for remote
1841debugging.
1842
f2cb65ca
MC
1843* GDB works with GCC -feliminate-dwarf2-dups
1844
1845GDB now supports a more compact representation of DWARF-2 debug
1846information using DW_FORM_ref_addr references. These are produced
1847by GCC with the option -feliminate-dwarf2-dups and also by some
1848proprietary compilers. With GCC, you must use GCC 3.3.4 or later
1849to use -feliminate-dwarf2-dups.
860660cb 1850
d08c0230
AC
1851* Internationalization
1852
1853When supported by the host system, GDB will be built with
1854internationalization (libintl). The task of marking up the sources is
1855continued, we're looking forward to our first translation.
1856
117ea3cf
PH
1857* Ada
1858
1859Initial support for debugging programs compiled with the GNAT
1860implementation of the Ada programming language has been integrated
1861into GDB. In this release, support is limited to expression evaluation.
1862
d08c0230
AC
1863* New native configurations
1864
1865GNU/Linux/m32r m32r-*-linux-gnu
1866
1867* Remote 'p' packet
1868
1869GDB's remote protocol now includes support for the 'p' packet. This
1870packet is used to fetch individual registers from a remote inferior.
1871
1872* END-OF-LIFE registers[] compatibility module
1873
1874GDB's internal register infrastructure has been completely rewritten.
1875The new infrastructure making possible the implementation of key new
1876features including 32x64 (e.g., 64-bit amd64 GDB debugging a 32-bit
1877i386 application).
1878
1879GDB 6.3 will be the last release to include the the registers[]
1880compatibility module that allowed out-of-date configurations to
1881continue to work. This change directly impacts the following
1882configurations:
1883
1884hppa-*-hpux
1885ia64-*-aix
1886mips-*-irix*
1887*-*-lynx
1888mips-*-linux-gnu
1889sds protocol
1890xdr protocol
1891powerpc bdm protocol
1892
1893Unless there is activity to revive these configurations, they will be
1894made OBSOLETE in GDB 6.4, and REMOVED from GDB 6.5.
1895
1896* OBSOLETE configurations and files
1897
1898Configurations that have been declared obsolete in this release have
1899been commented out. Unless there is activity to revive these
1900configurations, the next release of GDB will have their sources
1901permanently REMOVED.
1902
1903h8300-*-*
1904mcore-*-*
1905mn10300-*-*
1906ns32k-*-*
1907sh64-*-*
1908v850-*-*
1909
ebb7c577
AC
1910*** Changes in GDB 6.2.1:
1911
1912* MIPS `break main; run' gave an heuristic-fence-post warning
1913
1914When attempting to run even a simple program, a warning about
1915heuristic-fence-post being hit would be reported. This problem has
1916been fixed.
1917
1918* MIPS IRIX 'long double' crashed GDB
1919
1920When examining a long double variable, GDB would get a segmentation
1921fault. The crash has been fixed (but GDB 6.2 cannot correctly examine
1922IRIX long double values).
1923
1924* VAX and "next"
1925
1926A bug in the VAX stack code was causing problems with the "next"
1927command. This problem has been fixed.
1928
860660cb 1929*** Changes in GDB 6.2:
faae5abe 1930
0dea2468
AC
1931* Fix for ``many threads''
1932
1933On GNU/Linux systems that use the NPTL threads library, a program
1934rapidly creating and deleting threads would confuse GDB leading to the
1935error message:
1936
1937 ptrace: No such process.
1938 thread_db_get_info: cannot get thread info: generic error
1939
1940This problem has been fixed.
1941
2c07db7a
AC
1942* "-async" and "-noasync" options removed.
1943
1944Support for the broken "-noasync" option has been removed (it caused
1945GDB to dump core).
1946
c23968a2
JB
1947* New ``start'' command.
1948
1949This command runs the program until the begining of the main procedure.
1950
71009278
MK
1951* New BSD Kernel Data Access Library (libkvm) interface
1952
1953Using ``target kvm'' it is now possible to debug kernel core dumps and
1954live kernel memory images on various FreeBSD, NetBSD and OpenBSD
1955platforms. Currently supported (native-only) configurations are:
1956
1957FreeBSD/amd64 x86_64-*-freebsd*
1958FreeBSD/i386 i?86-*-freebsd*
1959NetBSD/i386 i?86-*-netbsd*
1960NetBSD/m68k m68*-*-netbsd*
1961NetBSD/sparc sparc-*-netbsd*
1962OpenBSD/amd64 x86_64-*-openbsd*
1963OpenBSD/i386 i?86-*-openbsd*
1964OpenBSD/m68k m68*-openbsd*
1965OpenBSD/sparc sparc-*-openbsd*
1966
3c0b7db2
AC
1967* Signal trampoline code overhauled
1968
1969Many generic problems with GDB's signal handling code have been fixed.
1970These include: backtraces through non-contiguous stacks; recognition
1971of sa_sigaction signal trampolines; backtrace from a NULL pointer
1972call; backtrace through a signal trampoline; step into and out of
1973signal handlers; and single-stepping in the signal trampoline.
1974
73cc75f3
AC
1975Please note that kernel bugs are a limiting factor here. These
1976features have been shown to work on an s390 GNU/Linux system that
1977include a 2.6.8-rc1 kernel. Ref PR breakpoints/1702.
3c0b7db2 1978
7243600a
BF
1979* Cygwin support for DWARF 2 added.
1980
6f606e1c
MK
1981* New native configurations
1982
97dc871c 1983GNU/Linux/hppa hppa*-*-linux*
0e56aeaf 1984OpenBSD/hppa hppa*-*-openbsd*
bf2ca189
MK
1985OpenBSD/m68k m68*-*-openbsd*
1986OpenBSD/m88k m88*-*-openbsd*
d195bc9f 1987OpenBSD/powerpc powerpc-*-openbsd*
6f606e1c 1988NetBSD/vax vax-*-netbsd*
9f076e7a 1989OpenBSD/vax vax-*-openbsd*
6f606e1c 1990
a1b461bf
AC
1991* END-OF-LIFE frame compatibility module
1992
1993GDB's internal frame infrastructure has been completely rewritten.
1994The new infrastructure making it possible to support key new features
1995including DWARF 2 Call Frame Information. To aid in the task of
1996migrating old configurations to this new infrastructure, a
1997compatibility module, that allowed old configurations to continue to
1998work, was also included.
1999
2000GDB 6.2 will be the last release to include this frame compatibility
2001module. This change directly impacts the following configurations:
2002
2003h8300-*-*
2004mcore-*-*
2005mn10300-*-*
2006ns32k-*-*
2007sh64-*-*
2008v850-*-*
2009xstormy16-*-*
2010
2011Unless there is activity to revive these configurations, they will be
2012made OBSOLETE in GDB 6.3, and REMOVED from GDB 6.4.
2013
3c7012f5
AC
2014* REMOVED configurations and files
2015
2016Sun 3, running SunOS 3 m68*-*-sunos3*
2017Sun 3, running SunOS 4 m68*-*-sunos4*
2018Sun 2, running SunOS 3 m68000-*-sunos3*
2019Sun 2, running SunOS 4 m68000-*-sunos4*
2020Motorola 680x0 running LynxOS m68*-*-lynxos*
2021AT&T 3b1/Unix pc m68*-att-*
2022Bull DPX2 (68k, System V release 3) m68*-bull-sysv*
2023decstation mips-dec-* mips-little-*
2024riscos mips-*-riscos* mips-*-sysv*
2025sonymips mips-sony-*
2026sysv mips*-*-sysv4* (IRIX 5/6 not included)
2027
e5fe55f7
AC
2028*** Changes in GDB 6.1.1:
2029
2030* TUI (Text-mode User Interface) built-in (also included in GDB 6.1)
2031
2032The TUI (Text-mode User Interface) is now built as part of a default
2033GDB configuration. It is enabled by either selecting the TUI with the
2034command line option "-i=tui" or by running the separate "gdbtui"
2035program. For more information on the TUI, see the manual "Debugging
2036with GDB".
2037
2038* Pending breakpoint support (also included in GDB 6.1)
2039
2040Support has been added to allow you to specify breakpoints in shared
2041libraries that have not yet been loaded. If a breakpoint location
2042cannot be found, and the "breakpoint pending" option is set to auto,
2043GDB queries you if you wish to make the breakpoint pending on a future
2044shared-library load. If and when GDB resolves the breakpoint symbol,
2045the pending breakpoint is removed as one or more regular breakpoints
2046are created.
2047
2048Pending breakpoints are very useful for GCJ Java debugging.
2049
2050* Fixed ISO-C build problems
2051
2052The files bfd/elf-bfd.h, gdb/dictionary.c and gdb/types.c contained
2053non ISO-C code that stopped them being built using a more strict ISO-C
2054compiler (e.g., IBM's C compiler).
2055
2056* Fixed build problem on IRIX 5
2057
2058Due to header problems with <sys/proc.h>, the file gdb/proc-api.c
2059wasn't able to compile compile on an IRIX 5 system.
2060
2061* Added execute permission to gdb/gdbserver/configure
2062
2063The shell script gdb/testsuite/gdb.stabs/configure lacked execute
2064permission. This bug would cause configure to fail on a number of
2065systems (Solaris, IRIX). Ref: server/519.
2066
2067* Fixed build problem on hpux2.0w-hp-hpux11.00 using the HP ANSI C compiler
2068
2069Older HPUX ANSI C compilers did not accept variable array sizes. somsolib.c
2070has been updated to use constant array sizes.
2071
2072* Fixed a panic in the DWARF Call Frame Info code on Solaris 2.7
2073
2074GCC 3.3.2, on Solaris 2.7, includes the DW_EH_PE_funcrel encoding in
2075its generated DWARF Call Frame Info. This encoding was causing GDB to
2076panic, that panic has been fixed. Ref: gdb/1628.
2077
2078* Fixed a problem when examining parameters in shared library code.
2079
2080When examining parameters in optimized shared library code generated
2081by a mainline GCC, GDB would incorrectly report ``Variable "..." is
2082not available''. GDB now correctly displays the variable's value.
2083
faae5abe 2084*** Changes in GDB 6.1:
f2c06f52 2085
9175c9a3
MC
2086* Removed --with-mmalloc
2087
2088Support for the mmalloc memory manager has been removed, as it
2089conflicted with the internal gdb byte cache.
2090
3cc87ec0
MK
2091* Changes in AMD64 configurations
2092
2093The AMD64 target now includes the %cs and %ss registers. As a result
2094the AMD64 remote protocol has changed; this affects the floating-point
2095and SSE registers. If you rely on those registers for your debugging,
2096you should upgrade gdbserver on the remote side.
2097
f0424ef6
MK
2098* Revised SPARC target
2099
2100The SPARC target has been completely revised, incorporating the
2101FreeBSD/sparc64 support that was added for GDB 6.0. As a result
03cebad2
MK
2102support for LynxOS and SunOS 4 has been dropped. Calling functions
2103from within GDB on operating systems with a non-executable stack
2104(Solaris, OpenBSD) now works.
f0424ef6 2105
59659be2
ILT
2106* New C++ demangler
2107
2108GDB has a new C++ demangler which does a better job on the mangled
2109names generated by current versions of g++. It also runs faster, so
2110with this and other changes gdb should now start faster on large C++
2111programs.
2112
9e08b29b
DJ
2113* DWARF 2 Location Expressions
2114
2115GDB support for location expressions has been extended to support function
2116arguments and frame bases. Older versions of GDB could crash when they
2117encountered these.
2118
8dfe8985
DC
2119* C++ nested types and namespaces
2120
2121GDB's support for nested types and namespaces in C++ has been
2122improved, especially if you use the DWARF 2 debugging format. (This
2123is the default for recent versions of GCC on most platforms.)
2124Specifically, if you have a class "Inner" defined within a class or
2125namespace "Outer", then GDB realizes that the class's name is
2126"Outer::Inner", not simply "Inner". This should greatly reduce the
2127frequency of complaints about not finding RTTI symbols. In addition,
2128if you are stopped at inside of a function defined within a namespace,
2129GDB modifies its name lookup accordingly.
2130
cced5e27
MK
2131* New native configurations
2132
2133NetBSD/amd64 x86_64-*-netbsd*
27d1e716 2134OpenBSD/amd64 x86_64-*-openbsd*
2031c21a 2135OpenBSD/alpha alpha*-*-openbsd*
f2cab569
MK
2136OpenBSD/sparc sparc-*-openbsd*
2137OpenBSD/sparc64 sparc64-*-openbsd*
cced5e27 2138
b4b4b794
KI
2139* New debugging protocols
2140
2141M32R with SDI protocol m32r-*-elf*
2142
7989c619
AC
2143* "set prompt-escape-char" command deleted.
2144
2145The command "set prompt-escape-char" has been deleted. This command,
2146and its very obscure effet on GDB's prompt, was never documented,
2147tested, nor mentioned in the NEWS file.
2148
5994185b
AC
2149* OBSOLETE configurations and files
2150
2151Configurations that have been declared obsolete in this release have
2152been commented out. Unless there is activity to revive these
2153configurations, the next release of GDB will have their sources
2154permanently REMOVED.
2155
2156Sun 3, running SunOS 3 m68*-*-sunos3*
2157Sun 3, running SunOS 4 m68*-*-sunos4*
2158Sun 2, running SunOS 3 m68000-*-sunos3*
2159Sun 2, running SunOS 4 m68000-*-sunos4*
2160Motorola 680x0 running LynxOS m68*-*-lynxos*
2161AT&T 3b1/Unix pc m68*-att-*
2162Bull DPX2 (68k, System V release 3) m68*-bull-sysv*
0748d941
AC
2163decstation mips-dec-* mips-little-*
2164riscos mips-*-riscos* mips-*-sysv*
2165sonymips mips-sony-*
2166sysv mips*-*-sysv4* (IRIX 5/6 not included)
5994185b 2167
0ddabb4c
AC
2168* REMOVED configurations and files
2169
2170SGI Irix-4.x mips-sgi-irix4 or iris4
2171SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
4a8269c0
AC
2172Z8000 simulator z8k-zilog-none or z8ksim
2173Matsushita MN10200 w/simulator mn10200-*-*
2174H8/500 simulator h8500-hitachi-hms or h8500hms
2175HP/PA running BSD hppa*-*-bsd*
2176HP/PA running OSF/1 hppa*-*-osf*
2177HP/PA Pro target hppa*-*-pro*
2178PMAX (MIPS) running Mach 3.0 mips*-*-mach3*
cf7c5c23 2179386BSD i[3456]86-*-bsd*
4a8269c0
AC
2180Sequent family i[3456]86-sequent-sysv4*
2181 i[3456]86-sequent-sysv*
2182 i[3456]86-sequent-bsd*
f0424ef6
MK
2183SPARC running LynxOS sparc-*-lynxos*
2184SPARC running SunOS 4 sparc-*-sunos4*
4a8269c0
AC
2185Tsqware Sparclet sparclet-*-*
2186Fujitsu SPARClite sparclite-fujitsu-none or sparclite
0ddabb4c 2187
c7f1390e
DJ
2188*** Changes in GDB 6.0:
2189
1fe43d45
AC
2190* Objective-C
2191
2192Support for debugging the Objective-C programming language has been
2193integrated into GDB.
2194
e6beb428
AC
2195* New backtrace mechanism (includes DWARF 2 Call Frame Information).
2196
2197DWARF 2's Call Frame Information makes available compiler generated
2198information that more exactly describes the program's run-time stack.
2199By using this information, GDB is able to provide more robust stack
2200backtraces.
2201
2202The i386, amd64 (nee, x86-64), Alpha, m68hc11, ia64, and m32r targets
2203have been updated to use a new backtrace mechanism which includes
2204DWARF 2 CFI support.
2205
2206* Hosted file I/O.
2207
2208GDB's remote protocol has been extended to include support for hosted
2209file I/O (where the remote target uses GDB's file system). See GDB's
2210remote protocol documentation for details.
2211
2212* All targets using the new architecture framework.
2213
2214All of GDB's targets have been updated to use the new internal
2215architecture framework. The way is now open for future GDB releases
2216to include cross-architecture native debugging support (i386 on amd64,
2217ppc32 on ppc64).
2218
2219* GNU/Linux's Thread Local Storage (TLS)
2220
2221GDB now includes support for for the GNU/Linux implementation of
2222per-thread variables.
2223
2224* GNU/Linux's Native POSIX Thread Library (NPTL)
2225
2226GDB's thread code has been updated to work with either the new
2227GNU/Linux NPTL thread library or the older "LinuxThreads" library.
2228
2229* Separate debug info.
2230
2231GDB, in conjunction with BINUTILS, now supports a mechanism for
2232automatically loading debug information from a separate file. Instead
2233of shipping full debug and non-debug versions of system libraries,
2234system integrators can now instead ship just the stripped libraries
2235and optional debug files.
2236
2237* DWARF 2 Location Expressions
2238
2239DWARF 2 Location Expressions allow the compiler to more completely
2240describe the location of variables (even in optimized code) to the
2241debugger.
2242
2243GDB now includes preliminary support for location expressions (support
2244for DW_OP_piece is still missing).
2245
2246* Java
2247
2248A number of long standing bugs that caused GDB to die while starting a
2249Java application have been fixed. GDB's Java support is now
2250considered "useable".
2251
85f8f974
DJ
2252* GNU/Linux support for fork, vfork, and exec.
2253
2254The "catch fork", "catch exec", "catch vfork", and "set follow-fork-mode"
2255commands are now implemented for GNU/Linux. They require a 2.5.x or later
2256kernel.
2257
0fac0b41
DJ
2258* GDB supports logging output to a file
2259
2260There are two new commands, "set logging" and "show logging", which can be
2261used to capture GDB's output to a file.
f2c06f52 2262
6ad8ae5c
DJ
2263* The meaning of "detach" has changed for gdbserver
2264
2265The "detach" command will now resume the application, as documented. To
2266disconnect from gdbserver and leave it stopped, use the new "disconnect"
2267command.
2268
e286caf2 2269* d10v, m68hc11 `regs' command deprecated
5f601589
AC
2270
2271The `info registers' command has been updated so that it displays the
2272registers using a format identical to the old `regs' command.
2273
d28f9cdf
DJ
2274* Profiling support
2275
2276A new command, "maint set profile on/off", has been added. This command can
2277be used to enable or disable profiling while running GDB, to profile a
2278session 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
2280data, for more informative profiling results.
2281
da0f9dcd
AC
2282* Default MI syntax changed to "mi2".
2283
2284The default MI (machine interface) syntax, enabled by the command line
2285option "-i=mi", has been changed to "mi2". The previous MI syntax,
b68767c1 2286"mi1", can be enabled by specifying the option "-i=mi1".
da0f9dcd
AC
2287
2288Support for the original "mi0" syntax (included in GDB 5.0) has been
2289removed.
2290
fb9b6b35
JJ
2291Fix for gdb/192: removed extraneous space when displaying frame level.
2292Fix for gdb/672: update changelist is now output in mi list format.
2293Fix for gdb/702: a -var-assign that updates the value now shows up
2294 in a subsequent -var-update.
2295
954a4db8
MK
2296* New native configurations.
2297
2298FreeBSD/amd64 x86_64-*-freebsd*
2299
6760f9e6
JB
2300* Multi-arched targets.
2301
b4263afa 2302HP/PA HPUX11 hppa*-*-hpux*
85a453d5 2303Renesas M32R/D w/simulator m32r-*-elf*
6760f9e6 2304
1b831c93
AC
2305* OBSOLETE configurations and files
2306
2307Configurations that have been declared obsolete in this release have
2308been commented out. Unless there is activity to revive these
2309configurations, the next release of GDB will have their sources
2310permanently REMOVED.
2311
8b0e5691 2312Z8000 simulator z8k-zilog-none or z8ksim
67f16606 2313Matsushita MN10200 w/simulator mn10200-*-*
fd2299bd 2314H8/500 simulator h8500-hitachi-hms or h8500hms
56056df7
AC
2315HP/PA running BSD hppa*-*-bsd*
2316HP/PA running OSF/1 hppa*-*-osf*
2317HP/PA Pro target hppa*-*-pro*
78c43945 2318PMAX (MIPS) running Mach 3.0 mips*-*-mach3*
2fbce691
AC
2319Sequent family i[3456]86-sequent-sysv4*
2320 i[3456]86-sequent-sysv*
2321 i[3456]86-sequent-bsd*
f81824a9
AC
2322Tsqware Sparclet sparclet-*-*
2323Fujitsu SPARClite sparclite-fujitsu-none or sparclite
fd2299bd 2324
5835abe7
NC
2325* REMOVED configurations and files
2326
2327V850EA ISA
1b831c93
AC
2328Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
2329IBM AIX PS/2 i[3456]86-*-aix
2330i386 running Mach 3.0 i[3456]86-*-mach3*
2331i386 running Mach i[3456]86-*-mach*
2332i386 running OSF/1 i[3456]86-*osf1mk*
2333HP/Apollo 68k Family m68*-apollo*-sysv*,
2334 m68*-apollo*-bsd*,
2335 m68*-hp-bsd*, m68*-hp-hpux*
2336Argonaut Risc Chip (ARC) arc-*-*
2337Mitsubishi D30V d30v-*-*
2338Fujitsu FR30 fr30-*-elf*
2339OS/9000 i[34]86-*-os9k
2340I960 with MON960 i960-*-coff
5835abe7 2341
a094c6fb
AC
2342* MIPS $fp behavior changed
2343
2344The convenience variable $fp, for the MIPS, now consistently returns
2345the address of the current frame's base. Previously, depending on the
2346context, $fp could refer to either $sp or the current frame's base
2347address. See ``8.10 Registers'' in the manual ``Debugging with GDB:
2348The GNU Source-Level Debugger''.
2349
299ffc64 2350*** Changes in GDB 5.3:
37057839 2351
46248966
AC
2352* GNU/Linux shared library multi-threaded performance improved.
2353
2354When debugging a multi-threaded application on GNU/Linux, GDB now uses
2355`/proc', in preference to `ptrace' for memory reads. This may result
2356in an improvement in the start-up time of multi-threaded, shared
2357library applications when run under GDB. One GDB user writes: ``loads
2358shared libs like mad''.
2359
b9d14705 2360* ``gdbserver'' now supports multi-threaded applications on some targets
6da02953 2361
b9d14705
DJ
2362Support for debugging multi-threaded applications which use
2363the GNU/Linux LinuxThreads package has been added for
2364arm*-*-linux*-gnu*, i[3456]86-*-linux*-gnu*, mips*-*-linux*-gnu*,
2365powerpc*-*-linux*-gnu*, and sh*-*-linux*-gnu*.
6da02953 2366
e0e9281e
JB
2367* GDB now supports C/C++ preprocessor macros.
2368
2369GDB now expands preprocessor macro invocations in C/C++ expressions,
2370and provides various commands for showing macro definitions and how
2371they expand.
2372
dd73b9bb
AC
2373The new command `macro expand EXPRESSION' expands any macro
2374invocations in expression, and shows the result.
2375
2376The new command `show macro MACRO-NAME' shows the definition of the
2377macro named MACRO-NAME, and where it was defined.
2378
e0e9281e
JB
2379Most compilers don't include information about macros in the debugging
2380information by default. In GCC 3.1, for example, you need to compile
2381your program with the options `-gdwarf-2 -g3'. If the macro
2382information is present in the executable, GDB will read it.
2383
2250ee0c
CV
2384* Multi-arched targets.
2385
6e3ba3b8
JT
2386DEC Alpha (partial) alpha*-*-*
2387DEC VAX (partial) vax-*-*
2250ee0c 2388NEC V850 v850-*-*
6e3ba3b8 2389National Semiconductor NS32000 (partial) ns32k-*-*
a1789893
GS
2390Motorola 68000 (partial) m68k-*-*
2391Motorola MCORE mcore-*-*
2250ee0c 2392
cd9bfe15 2393* New targets.
e33ce519 2394
456f8b9d
DB
2395Fujitsu FRV architecture added by Red Hat frv*-*-*
2396
e33ce519 2397
da8ca43d
JT
2398* New native configurations
2399
2400Alpha NetBSD alpha*-*-netbsd*
029923d4 2401SH NetBSD sh*-*-netbsdelf*
45888261 2402MIPS NetBSD mips*-*-netbsd*
9ce5c36a 2403UltraSPARC NetBSD sparc64-*-netbsd*
da8ca43d 2404
cd9bfe15
AC
2405* OBSOLETE configurations and files
2406
2407Configurations that have been declared obsolete in this release have
2408been commented out. Unless there is activity to revive these
2409configurations, the next release of GDB will have their sources
2410permanently REMOVED.
2411
92eb23c5 2412Mitsubishi D30V d30v-*-*
a99a9e1b 2413OS/9000 i[34]86-*-os9k
1c7cc583 2414IBM AIX PS/2 i[3456]86-*-aix
7a3085c1 2415Fujitsu FR30 fr30-*-elf*
7fb623f7 2416Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
eb4c54a2 2417Argonaut Risc Chip (ARC) arc-*-*
d8ee244c
MK
2418i386 running Mach 3.0 i[3456]86-*-mach3*
2419i386 running Mach i[3456]86-*-mach*
2420i386 running OSF/1 i[3456]86-*osf1mk*
822e978b
AC
2421HP/Apollo 68k Family m68*-apollo*-sysv*,
2422 m68*-apollo*-bsd*,
2423 m68*-hp-bsd*, m68*-hp-hpux*
4d210288 2424I960 with MON960 i960-*-coff
92eb23c5 2425
db034ac5
AC
2426* OBSOLETE languages
2427
2428CHILL, a Pascal like language used by telecommunications companies.
2429
cd9bfe15
AC
2430* REMOVED configurations and files
2431
2432AMD 29k family via UDI a29k-amd-udi, udi29k
2433A29K VxWorks a29k-*-vxworks
2434AMD 29000 embedded, using EBMON a29k-none-none
2435AMD 29000 embedded with COFF a29k-none-coff
2436AMD 29000 embedded with a.out a29k-none-aout
2437
2438testsuite/gdb.hp/gdb.threads-hp/ directory
2439
20f01a46
DH
2440* New command "set max-user-call-depth <nnn>"
2441
2442This command allows the user to limit the call depth of user-defined
2443commands. The default is 1024.
2444
a5941fbf
MK
2445* Changes in FreeBSD/i386 native debugging.
2446
2447Support for the "generate-core-file" has been added.
2448
89743e04
MS
2449* New commands "dump", "append", and "restore".
2450
2451These commands allow data to be copied from target memory
2452to a bfd-format or binary file (dump and append), and back
2453from a file into memory (restore).
37057839 2454
9fb14e79
JB
2455* Improved "next/step" support on multi-processor Alpha Tru64.
2456
2457The previous single-step mechanism could cause unpredictable problems,
2458including the random appearance of SIGSEGV or SIGTRAP signals. The use
2459of a software single-step mechanism prevents this.
2460
2037aebb
AC
2461*** Changes in GDB 5.2.1:
2462
2463* New targets.
2464
2465Atmel AVR avr*-*-*
2466
2467* Bug fixes
2468
2469gdb/182: gdb/323: gdb/237: On alpha, gdb was reporting:
2470mdebugread.c:2443: gdb-internal-error: sect_index_data not initialized
2471Fix, by Joel Brobecker imported from mainline.
2472
2473gdb/439: gdb/291: On some ELF object files, gdb was reporting:
2474dwarf2read.c:1072: gdb-internal-error: sect_index_text not initialize
2475Fix, by Fred Fish, imported from mainline.
2476
2477Dwarf2 .debug_frame & .eh_frame handler improved in many ways.
2478Surprisingly enough, it works now.
2479By Michal Ludvig, imported from mainline.
2480
2481i386 hardware watchpoint support:
2482avoid misses on second run for some targets.
2483By Pierre Muller, imported from mainline.
2484
37057839 2485*** Changes in GDB 5.2:
eb7cedd9 2486
1a703748
MS
2487* New command "set trust-readonly-sections on[off]".
2488
2489This command is a hint that tells gdb that read-only sections
2490really are read-only (ie. that their contents will not change).
2491In this mode, gdb will go to the object file rather than the
2492target to read memory from read-only sections (such as ".text").
2493This can be a significant performance improvement on some
2494(notably embedded) targets.
2495
cefd4ef5
MS
2496* New command "generate-core-file" (or "gcore").
2497
55241689
AC
2498This new gdb command allows the user to drop a core file of the child
2499process state at any time. So far it's been implemented only for
2500GNU/Linux and Solaris, but should be relatively easily ported to other
2501hosts. Argument is core file name (defaults to core.<pid>).
cefd4ef5 2502
352ed7b4
MS
2503* New command line option
2504
2505GDB now accepts --pid or -p followed by a process id.
2506
2507* Change in command line behavior -- corefiles vs. process ids.
2508
2509There is a subtle behavior in the way in which GDB handles
2510command line arguments. The first non-flag argument is always
2511a program to debug, but the second non-flag argument may either
2512be a corefile or a process id. Previously, GDB would attempt to
2513open the second argument as a corefile, and if that failed, would
2514issue a superfluous error message and then attempt to attach it as
2515a process. Now, if the second argument begins with a non-digit,
2516it will be treated as a corefile. If it begins with a digit,
2517GDB will attempt to attach it as a process, and if no such process
2518is found, will then attempt to open it as a corefile.
2519
fe419ffc
RE
2520* Changes in ARM configurations.
2521
2522Multi-arch support is enabled for all ARM configurations. The ARM/NetBSD
2523configuration is fully multi-arch.
2524
eb7cedd9
MK
2525* New native configurations
2526
fe419ffc 2527ARM NetBSD arm*-*-netbsd*
eb7cedd9 2528x86 OpenBSD i[3456]86-*-openbsd*
55241689 2529AMD x86-64 running GNU/Linux x86_64-*-linux-*
768f0842 2530Sparc64 running FreeBSD sparc64-*-freebsd*
eb7cedd9 2531
c9f63e6b
CV
2532* New targets
2533
2534Sanyo XStormy16 xstormy16-elf
2535
9b4ff276
AC
2536* OBSOLETE configurations and files
2537
2538Configurations that have been declared obsolete in this release have
2539been commented out. Unless there is activity to revive these
2540configurations, the next release of GDB will have their sources
2541permanently REMOVED.
2542
2543AMD 29k family via UDI a29k-amd-udi, udi29k
2544A29K VxWorks a29k-*-vxworks
2545AMD 29000 embedded, using EBMON a29k-none-none
2546AMD 29000 embedded with COFF a29k-none-coff
2547AMD 29000 embedded with a.out a29k-none-aout
2548
b4ceaee6 2549testsuite/gdb.hp/gdb.threads-hp/ directory
9b4ff276 2550
e2caac18
AC
2551* REMOVED configurations and files
2552
2553TI TMS320C80 tic80-*-*
7bc65f05 2554WDC 65816 w65-*-*
7768dd6c
AC
2555PowerPC Solaris powerpcle-*-solaris*
2556PowerPC Windows NT powerpcle-*-cygwin32
2557PowerPC Netware powerpc-*-netware*
5e734e1f 2558Harris/CXUX m88k m88*-harris-cxux*
1406caf7
AC
2559Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-*
2560 ns32k-utek-sysv* ns32k-utek-*
7e24f0b1 2561SunOS 4.0.Xi on i386 i[3456]86-*-sunos*
9b567150 2562Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern*
3680c638
AC
2563Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news
2564ISI Optimum V (3.05) under 4.3bsd. m68*-isi-*
a752853e 2565Apple Macintosh (MPW) host and target N/A host, powerpc-*-macos*
e2caac18 2566
c2a727fa
TT
2567* Changes to command line processing
2568
2569The new `--args' feature can be used to specify command-line arguments
2570for the inferior from gdb's command line.
2571
467d8519
TT
2572* Changes to key bindings
2573
2574There is a new `operate-and-get-next' function bound to `C-o'.
2575
7072a954
AC
2576*** Changes in GDB 5.1.1
2577
2578Fix compile problem on DJGPP.
2579
2580Fix a problem with floating-point registers on the i386 being
2581corrupted.
2582
2583Fix to stop GDB crashing on .debug_str debug info.
2584
2585Numerous documentation fixes.
2586
2587Numerous testsuite fixes.
2588
34f47bc4 2589*** Changes in GDB 5.1:
139760b7
MK
2590
2591* New native configurations
2592
2593Alpha FreeBSD alpha*-*-freebsd*
2594x86 FreeBSD 3.x and 4.x i[3456]86*-freebsd[34]*
55241689 2595MIPS GNU/Linux mips*-*-linux*
e23194cb
EZ
2596MIPS SGI Irix 6.x mips*-sgi-irix6*
2597ia64 AIX ia64-*-aix*
55241689 2598s390 and s390x GNU/Linux {s390,s390x}-*-linux*
139760b7 2599
bf64bfd6
AC
2600* New targets
2601
def90278 2602Motorola 68HC11 and 68HC12 m68hc11-elf
24be5c34 2603CRIS cris-axis
55241689 2604UltraSparc running GNU/Linux sparc64-*-linux*
def90278 2605
17e78a56 2606* OBSOLETE configurations and files
bf64bfd6
AC
2607
2608x86 FreeBSD before 2.2 i[3456]86*-freebsd{1,2.[01]}*,
9b9c068d 2609Harris/CXUX m88k m88*-harris-cxux*
bb19ff3b
AC
2610Most ns32k hosts and targets ns32k-*-mach3* ns32k-umax-*
2611 ns32k-utek-sysv* ns32k-utek-*
76f4ea53
AC
2612TI TMS320C80 tic80-*-*
2613WDC 65816 w65-*-*
4a1968f4 2614Ultracomputer (29K) running Sym1 a29k-nyu-sym1 a29k-*-kern*
1b2b2c16
AC
2615PowerPC Solaris powerpcle-*-solaris*
2616PowerPC Windows NT powerpcle-*-cygwin32
2617PowerPC Netware powerpc-*-netware*
24f89b68 2618SunOS 4.0.Xi on i386 i[3456]86-*-sunos*
514e603d
AC
2619Sony NEWS (68K) running NEWSOS 3.x m68*-sony-sysv news
2620ISI Optimum V (3.05) under 4.3bsd. m68*-isi-*
d036b4d9 2621Apple Macintosh (MPW) host N/A
bf64bfd6 2622
17e78a56
AC
2623stuff.c (Program to stuff files into a specially prepared space in kdb)
2624kdb-start.c (Main loop for the standalone kernel debugger)
2625
7fcca85b
AC
2626Configurations that have been declared obsolete in this release have
2627been commented out. Unless there is activity to revive these
2628configurations, the next release of GDB will have their sources
2629permanently REMOVED.
2630
a196c81c 2631* REMOVED configurations and files
7fcca85b
AC
2632
2633Altos 3068 m68*-altos-*
2634Convex c1-*-*, c2-*-*
2635Pyramid pyramid-*-*
2636ARM RISCix arm-*-* (as host)
2637Tahoe tahoe-*-*
a196c81c 2638ser-ocd.c *-*-*
bf64bfd6 2639
6d6b80e5 2640* GDB has been converted to ISO C.
e23194cb 2641
6d6b80e5 2642GDB's source code has been converted to ISO C. In particular, the
e23194cb
EZ
2643sources are fully protoized, and rely on standard headers being
2644present.
2645
bf64bfd6
AC
2646* Other news:
2647
e23194cb
EZ
2648* "info symbol" works on platforms which use COFF, ECOFF, XCOFF, and NLM.
2649
2650* The MI enabled by default.
2651
2652The new machine oriented interface (MI) introduced in GDB 5.0 has been
2653revised and enabled by default. Packages which use GDB as a debugging
2654engine behind a UI or another front end are encouraged to switch to
2655using the GDB/MI interface, instead of the old annotations interface
2656which is now deprecated.
2657
2658* Support for debugging Pascal programs.
2659
2660GDB now includes support for debugging Pascal programs. The following
2661main 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
2672However, 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
2687Commands such as `shell', `run' and `set args', which pass arguments
2688to inferior programs, now complete on file names, similar to what
2689users expect at the shell prompt.
2690
2691Commands which accept locations, such as `disassemble', `print',
2692`breakpoint', `until', etc. now complete on filenames as well as
2693program symbols. Thus, if you type "break foob TAB", and the source
2694files linked into the programs include `foobar.c', that file name will
2695be one of the candidates for completion. However, file names are not
2696considered for completion after you typed a colon that delimits a file
2697name 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
2703It is now possible to define a post-hook for a command as well as a
2704hook that runs before the command. For more details, see the
2705documentation of `hookpost' in the GDB manual.
2706
2707* Changes in GNU/Linux native debugging.
2708
d7275149
MK
2709Support for debugging multi-threaded programs has been completely
2710revised for all platforms except m68k and sparc. You can now debug as
2711many threads as your system allows you to have.
2712
e23194cb
EZ
2713Attach/detach is supported for multi-threaded programs.
2714
d7275149
MK
2715Support for SSE registers was added for x86. This doesn't work for
2716multi-threaded programs though.
e23194cb
EZ
2717
2718* Changes in MIPS configurations.
bf64bfd6
AC
2719
2720Multi-arch support is enabled for all MIPS configurations.
2721
e23194cb
EZ
2722GDB can now be built as native debugger on SGI Irix 6.x systems for
2723debugging n32 executables. (Debugging 64-bit executables is not yet
2724supported.)
2725
2726* Unified support for hardware watchpoints in all x86 configurations.
2727
2728Most (if not all) native x86 configurations support hardware-assisted
2729breakpoints and watchpoints in a unified manner. This support
2730implements debug register sharing between watchpoints, which allows to
2731put a virtually infinite number of watchpoints on the same address,
2732and also supports watching regions up to 16 bytes with several debug
2733registers.
2734
2735The new maintenance command `maintenance show-debug-regs' toggles
2736debugging print-outs in functions that insert, remove, and test
2737watchpoints and hardware breakpoints.
2738
2739* Changes in the DJGPP native configuration.
2740
2741New command ``info dos sysinfo'' displays assorted information about
2742the CPU, OS, memory, and DPMI server.
2743
2744New commands ``info dos gdt'', ``info dos ldt'', and ``info dos idt''
2745display information about segment descriptors stored in GDT, LDT, and
2746IDT.
2747
2748New commands ``info dos pde'' and ``info dos pte'' display entries
2749from Page Directory and Page Tables (for now works with CWSDPMI only).
2750New command ``info dos address-pte'' displays the Page Table entry for
2751a given linear address.
2752
2753GDB can now pass command lines longer than 126 characters to the
2754program being debugged (requires an update to the libdbg.a library
2755which is part of the DJGPP development kit).
2756
2757DWARF2 debug info is now supported.
2758
6c56c069
EZ
2759It is now possible to `step' and `next' through calls to `longjmp'.
2760
e23194cb
EZ
2761* Changes in documentation.
2762
2763All GDB documentation was converted to GFDL, the GNU Free
2764Documentation License.
2765
2766Tracepoints-related commands are now fully documented in the GDB
2767manual.
2768
2769TUI, the Text-mode User Interface, is now documented in the manual.
2770
2771Tracepoints-related commands are now fully documented in the GDB
2772manual.
2773
2774The "GDB Internals" manual now has an index. It also includes
2775documentation of `ui_out' functions, GDB coding standards, x86
2776hardware watchpoints, and memory region attributes.
2777
5d6640b1
AC
2778* GDB's version number moved to ``version.in''
2779
2780The Makefile variable VERSION has been replaced by the file
2781``version.in''. People creating GDB distributions should update the
2782contents of this file.
2783
1a1d8446
AC
2784* gdba.el deleted
2785
2786GUD support is now a standard part of the EMACS distribution.
139760b7 2787
9debab2f 2788*** Changes in GDB 5.0:
7a292a7a 2789
c63ce875
EZ
2790* Improved support for debugging FP programs on x86 targets
2791
2792Unified and much-improved support for debugging floating-point
2793programs on all x86 targets. In particular, ``info float'' now
2794displays the FP registers in the same format on all x86 targets, with
2795greater level of detail.
2796
2797* Improvements and bugfixes in hardware-assisted watchpoints
2798
2799It is now possible to watch array elements, struct members, and
2800bitfields with hardware-assisted watchpoints. Data-read watchpoints
2801on x86 targets no longer erroneously trigger when the address is
2802written.
2803
2804* Improvements in the native DJGPP version of GDB
2805
2806The distribution now includes all the scripts and auxiliary files
2807necessary to build the native DJGPP version on MS-DOS/MS-Windows
2808machines ``out of the box''.
2809
2810The DJGPP version can now debug programs that use signals. It is
2811possible to catch signals that happened in the debuggee, deliver
2812signals to it, interrupt it with Ctrl-C, etc. (Previously, a signal
2813would kill the program being debugged.) Programs that hook hardware
2814interrupts (keyboard, timer, etc.) can also be debugged.
2815
2816It is now possible to debug DJGPP programs that redirect their
2817standard handles or switch them to raw (as opposed to cooked) mode, or
2818even close them. The command ``run < foo > bar'' works as expected,
2819and ``info terminal'' reports useful information about the debuggee's
2820terminal, including raw/cooked mode, redirection, etc.
2821
2822The DJGPP version now uses termios functions for console I/O, which
2823enables debugging graphics programs. Interrupting GDB with Ctrl-C
2824also works.
2825
2826DOS-style file names with drive letters are now fully supported by
2827GDB.
2828
2829It is now possible to debug DJGPP programs that switch their working
2830directory. It is also possible to rerun the debuggee any number of
2831times without restarting GDB; thus, you can use the same setup,
2832breakpoints, etc. for many debugging sessions.
2833
ed9a39eb
JM
2834* New native configurations
2835
2836ARM GNU/Linux arm*-*-linux*
afc05dd4 2837PowerPC GNU/Linux powerpc-*-linux*
ed9a39eb 2838
7a292a7a
SS
2839* New targets
2840
96baa820 2841Motorola MCore mcore-*-*
adf40b2e
JM
2842x86 VxWorks i[3456]86-*-vxworks*
2843PowerPC VxWorks powerpc-*-vxworks*
7a292a7a
SS
2844TI TMS320C80 tic80-*-*
2845
085dd6e6
JM
2846* OBSOLETE configurations
2847
2848Altos 3068 m68*-altos-*
2849Convex c1-*-*, c2-*-*
9846de1b 2850Pyramid pyramid-*-*
ed9a39eb 2851ARM RISCix arm-*-* (as host)
104c1213 2852Tahoe tahoe-*-*
7a292a7a 2853
9debab2f
AC
2854Configurations that have been declared obsolete will be commented out,
2855but the code will be left in place. If there is no activity to revive
2856these configurations before the next release of GDB, the sources will
2857be permanently REMOVED.
2858
5330533d
SS
2859* Gould support removed
2860
2861Support for the Gould PowerNode and NP1 has been removed.
2862
bc9e5bbf
AC
2863* New features for SVR4
2864
2865On SVR4 native platforms (such as Solaris), if you attach to a process
2866without first loading a symbol file, GDB will now attempt to locate and
2867load symbols from the running process's executable file.
2868
2869* Many C++ enhancements
2870
2871C++ support has been greatly improved. Overload resolution now works properly
2872in almost all cases. RTTI support is on the way.
2873
adf40b2e
JM
2874* Remote targets can connect to a sub-program
2875
2876A popen(3) style serial-device has been added. This device starts a
2877sub-process (such as a stand-alone simulator) and then communicates
2878with 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
43e526b9
JM
2884* MIPS 64 remote protocol
2885
2886A long standing bug in the mips64 remote protocol where by GDB
2887expected certain 32 bit registers (ex SR) to be transfered as 32
2888instead of 64 bits has been fixed.
2889
2890The command ``set remote-mips64-transfers-32bit-regs on'' has been
2891added to provide backward compatibility with older versions of GDB.
2892
96baa820
JM
2893* ``set remotebinarydownload'' replaced by ``set remote X-packet''
2894
2895The command ``set remotebinarydownload'' command has been replaced by
2896``set remote X-packet''. Other commands in ``set remote'' family
2897include ``set remote P-packet''.
2898
11cf8741
JM
2899* Breakpoint commands accept ranges.
2900
2901The breakpoint commands ``enable'', ``disable'', and ``delete'' now
2902accept a range of breakpoints, e.g. ``5-7''. The tracepoint command
2903``tracepoint passcount'' also accepts a range of tracepoints.
2904
7876dd43
DB
2905* ``apropos'' command added.
2906
2907The ``apropos'' command searches through command names and
2908documentation strings, printing out matches, making it much easier to
2909try to find a command that does what you are looking for.
2910
bc9e5bbf
AC
2911* New MI interface
2912
2913A new machine oriented interface (MI) has been added to GDB. This
2914interface is designed for debug environments running GDB as a separate
7162c0ca
EZ
2915process. 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
2917enabled by configuring with:
bc9e5bbf
AC
2918
2919 .../configure --enable-gdbmi
2920
c906108c
SS
2921*** Changes in GDB-4.18:
2922
2923* New native configurations
2924
2925HP-UX 10.20 hppa*-*-hpux10.20
2926HP-UX 11.x hppa*-*-hpux11.0*
55241689 2927M68K GNU/Linux m68*-*-linux*
c906108c
SS
2928
2929* New targets
2930
2931Fujitsu FR30 fr30-*-elf*
2932Intel StrongARM strongarm-*-*
2933Mitsubishi D30V d30v-*-*
2934
2935* OBSOLETE configurations
2936
2937Gould PowerNode, NP1 np1-*-*, pn-*-*
2938
2939Configurations that have been declared obsolete will be commented out,
2940but the code will be left in place. If there is no activity to revive
2941these configurations before the next release of GDB, the sources will
2942be permanently REMOVED.
2943
2944* ANSI/ISO C
2945
2946As a compatibility experiment, GDB's source files buildsym.h and
2947buildsym.c have been converted to pure standard C, no longer
2948containing any K&R compatibility code. We believe that all systems in
2949use today either come with a standard C compiler, or have a GCC port
2950available. If this is not true, please report the affected
2951configuration to bug-gdb@gnu.org immediately. See the README file for
2952information about getting a standard C compiler if you don't have one
2953already.
2954
2955* Readline 2.2
2956
2957GDB now uses readline 2.2.
2958
2959* set extension-language
2960
2961You can now control the mapping between filename extensions and source
2962languages by using the `set extension-language' command. For instance,
2963you can ask GDB to treat .c files as C++ by saying
2964 set extension-language .c c++
2965The command `info extensions' lists all of the recognized extensions
2966and their associated languages.
2967
2968* Setting processor type for PowerPC and RS/6000
2969
2970When GDB is configured for a powerpc*-*-* or an rs6000*-*-* target,
2971you can use the `set processor' command to specify what variant of the
2972PowerPC family you are debugging. The command
2973
2974 set processor NAME
2975
2976sets the PowerPC/RS6000 variant to NAME. GDB knows about the
2977following 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
2991At the moment, this command just tells GDB what to name the
2992special-purpose processor registers. Since almost all the affected
2993registers are inaccessible to user-level programs, this command is
2994only useful for remote debugging in its present form.
2995
2996* HP-UX support
2997
2998Thanks to a major code donation from Hewlett-Packard, GDB now has much
2999more extensive support for HP-UX. Added features include shared
3000library support, kernel threads and hardware watchpoints for 11.00,
3001support for HP's ANSI C and C++ compilers, and a compatibility mode
3002for xdb and dbx commands.
3003
3004* Catchpoints
3005
3006HP's donation includes the new concept of catchpoints, which is a
3007generalization of the old catch command. On HP-UX, it is now possible
3008to catch exec, fork, and vfork, as well as library loading.
3009
3010This means that the existing catch command has changed; its first
3011argument now specifies the type of catch to be set up. See the
3012output of "help catch" for a list of catchpoint types.
3013
3014* Debugging across forks
3015
3016On HP-UX, you can choose which process to debug when a fork() happens
3017in the inferior.
3018
3019* TUI
3020
3021HP has donated a curses-based terminal user interface (TUI). To get
3022it, build with --enable-tui. Although this can be enabled for any
3023configuration, at present it only works for native HP debugging.
3024
3025* GDB remote protocol additions
3026
3027A new protocol packet 'X' that writes binary data is now available.
3028Default behavior is to try 'X', then drop back to 'M' if the stub
3029fails to respond. The settable variable `remotebinarydownload'
3030allows explicit control over the use of 'X'.
3031
3032For 64-bit targets, the memory packets ('M' and 'm') can now contain a
3033full 64-bit address. The command
3034
3035 set remoteaddresssize 32
3036
3037can be used to revert to the old behaviour. For existing remote stubs
3038the change should not be noticed, as the additional address information
3039will be discarded.
3040
3041In order to assist in debugging stubs, you may use the maintenance
3042command `packet' to send any text string to the stub. For instance,
3043
3044 maint packet heythere
3045
3046sends the packet "$heythere#<checksum>". Note that it is very easy to
3047disrupt a debugging session by sending the wrong packet at the wrong
3048time.
3049
3050The compare-sections command allows you to compare section data on the
3051target to what is in the executable file without uploading or
3052downloading, by comparing CRC checksums.
3053
3054* Tracing can collect general expressions
3055
3056You may now collect general expressions at tracepoints. This requires
3057further additions to the target-side stub; see tracepoint.c and
3058doc/agentexpr.texi for further details.
3059
3060* mask-address variable for Mips
3061
3062For Mips targets, you may control the zeroing of the upper 32 bits of
3063a 64-bit address by entering `set mask-address on'. This is mainly
3064of interest to users of embedded R4xxx and R5xxx processors.
3065
3066* Higher serial baud rates
3067
3068GDB's serial code now allows you to specify baud rates 57600, 115200,
3069230400, and 460800 baud. (Note that your host system may not be able
3070to achieve all of these rates.)
3071
3072* i960 simulator
3073
3074The i960 configuration now includes an initial implementation of a
3075builtin simulator, contributed by Jim Wilson.
3076
3077
3078*** Changes in GDB-4.17:
3079
3080* New native configurations
3081
3082Alpha GNU/Linux alpha*-*-linux*
3083Unixware 2.x i[3456]86-unixware2*
3084Irix 6.x mips*-sgi-irix6*
3085PowerPC GNU/Linux powerpc-*-linux*
3086PowerPC Solaris powerpcle-*-solaris*
3087Sparc GNU/Linux sparc-*-linux*
3088Motorola sysV68 R3V7.1 m68k-motorola-sysv
3089
3090* New targets
3091
3092Argonaut Risc Chip (ARC) arc-*-*
3093Hitachi H8/300S h8300*-*-*
3094Matsushita MN10200 w/simulator mn10200-*-*
3095Matsushita MN10300 w/simulator mn10300-*-*
3096MIPS NEC VR4100 mips64*vr4100*{,el}-*-elf*
3097MIPS NEC VR5000 mips64*vr5000*{,el}-*-elf*
3098MIPS Toshiba TX39 mips64*tx39*{,el}-*-elf*
3099Mitsubishi D10V w/simulator d10v-*-*
3100Mitsubishi M32R/D w/simulator m32r-*-elf*
3101Tsqware Sparclet sparclet-*-*
3102NEC V850 w/simulator v850-*-*
3103
3104* New debugging protocols
3105
3106ARM with RDI protocol arm*-*-*
3107M68K with dBUG monitor m68*-*-{aout,coff,elf}
3108DDB and LSI variants of PMON protocol mips*-*-*
3109PowerPC with DINK32 monitor powerpc{,le}-*-eabi
3110PowerPC with SDS protocol powerpc{,le}-*-eabi
3111Macraigor OCD (Wiggler) devices powerpc{,le}-*-eabi
3112
3113* DWARF 2
3114
3115All configurations can now understand and use the DWARF 2 debugging
3116format. The choice is automatic, if the symbol file contains DWARF 2
3117information.
3118
3119* Java frontend
3120
3121GDB now includes basic Java language support. This support is
3122only useful with Java compilers that produce native machine code.
3123
3124* solib-absolute-prefix and solib-search-path
3125
3126For SunOS and SVR4 shared libraries, you may now set the prefix for
3127loading absolute shared library symbol files, and the search path for
3128locating non-absolute shared library symbol files.
3129
3130* Live range splitting
3131
3132GDB can now effectively debug code for which GCC has performed live
3133range splitting as part of its optimization. See gdb/doc/LRS for
3134more details on the expected format of the stabs information.
3135
3136* Hurd support
3137
3138GDB's support for the GNU Hurd, including thread debugging, has been
3139updated to work with current versions of the Hurd.
3140
3141* ARM Thumb support
3142
3143GDB's ARM target configuration now handles the ARM7T (Thumb) 16-bit
3144instruction set. ARM GDB automatically detects when Thumb
3145instructions are in use, and adjusts disassembly and backtracing
3146accordingly.
3147
3148* MIPS16 support
3149
3150GDB's MIPS target configurations now handle the MIP16 16-bit
3151instruction set.
3152
3153* Overlay support
3154
3155GDB now includes support for overlays; if an executable has been
3156linked such that multiple sections are based at the same address, GDB
3157will decide which section to use for symbolic info. You can choose to
3158control the decision manually, using overlay commands, or implement
3159additional target-side support and use "overlay load-target" to bring
3160in the overlay mapping. Do "help overlay" for more detail.
3161
3162* info symbol
3163
3164The command "info symbol <address>" displays information about
3165the symbol at the specified address.
3166
3167* Trace support
3168
3169The standard remote protocol now includes an extension that allows
3170asynchronous collection and display of trace data. This requires
3171extensive support in the target-side debugging stub. Tracing mode
3172includes a new interaction mode in GDB and new commands: see the
3173file tracepoint.c for more details.
3174
3175* MIPS simulator
3176
3177Configurations for embedded MIPS now include a simulator contributed
3178by Cygnus Solutions. The simulator supports the instruction sets
3179of most MIPS variants.
3180
3181* Sparc simulator
3182
3183Sparc configurations may now include the ERC32 simulator contributed
3184by the European Space Agency. The simulator is not built into
3185Sparc targets by default; configure with --enable-sim to include it.
3186
3187* set architecture
3188
3189For target configurations that may include multiple variants of a
3190basic architecture (such as MIPS and SH), you may now set the
3191architecture explicitly. "set arch" sets, "info arch" lists
3192the possible architectures.
3193
3194*** Changes in GDB-4.16:
3195
3196* New native configurations
3197
3198Windows 95, x86 Windows NT i[345]86-*-cygwin32
3199M68K NetBSD m68k-*-netbsd*
3200PowerPC AIX 4.x powerpc-*-aix*
3201PowerPC MacOS powerpc-*-macos*
3202PowerPC Windows NT powerpcle-*-cygwin32
3203RS/6000 AIX 4.x rs6000-*-aix4*
3204
3205* New targets
3206
3207ARM with RDP protocol arm-*-*
3208I960 with MON960 i960-*-coff
3209MIPS VxWorks mips*-*-vxworks*
3210MIPS VR4300 with PMON mips64*vr4300{,el}-*-elf*
3211PowerPC with PPCBUG monitor powerpc{,le}-*-eabi*
3212Hitachi SH3 sh-*-*
3213Matra Sparclet sparclet-*-*
3214
3215* PowerPC simulator
3216
3217The powerpc-eabi configuration now includes the PSIM simulator,
3218contributed by Andrew Cagney, with assistance from Mike Meissner.
3219PSIM is a very elaborate model of the PowerPC, including not only
3220basic instruction set execution, but also details of execution unit
3221performance and I/O hardware. See sim/ppc/README for more details.
3222
3223* Solaris 2.5
3224
3225GDB now works with Solaris 2.5.
3226
3227* Windows 95/NT native
3228
3229GDB will now work as a native debugger on Windows 95 and Windows NT.
3230To build it from source, you must use the "gnu-win32" environment,
3231which uses a DLL to emulate enough of Unix to run the GNU tools.
3232Further information, binaries, and sources are available at
3233ftp.cygnus.com, under pub/gnu-win32.
3234
3235* dont-repeat command
3236
3237If a user-defined command includes the command `dont-repeat', then the
3238command will not be repeated if the user just types return. This is
3239useful if the command is time-consuming to run, so that accidental
3240extra keystrokes don't run the same command many times.
3241
3242* Send break instead of ^C
3243
3244The standard remote protocol now includes an option to send a break
3245rather than a ^C to the target in order to interrupt it. By default,
3246GDB will send ^C; to send a break, set the variable `remotebreak' to 1.
3247
3248* Remote protocol timeout
3249
3250The standard remote protocol includes a new variable `remotetimeout'
3251that allows you to set the number of seconds before GDB gives up trying
3252to read from the target. The default value is 2.
3253
3254* Automatic tracking of dynamic object loading (HPUX and Solaris only)
3255
3256By default GDB will automatically keep track of objects as they are
3257loaded and unloaded by the dynamic linker. By using the command `set
3258stop-on-solib-events 1' you can arrange for GDB to stop the inferior
3259when shared library events occur, thus allowing you to set breakpoints
3260in shared libraries which are explicitly loaded by the inferior.
3261
3262Note this feature does not work on hpux8. On hpux9 you must link
3263/usr/lib/end.o into your program. This feature should work
3264automatically on hpux10.
3265
3266* Irix 5.x hardware watchpoint support
3267
3268Irix 5 configurations now support the use of hardware watchpoints.
3269
3270* Mips protocol "SYN garbage limit"
3271
3272When debugging a Mips target using the `target mips' protocol, you
3273may set the number of characters that GDB will ignore by setting
3274the `syn-garbage-limit'. A value of -1 means that GDB will ignore
3275every character. The default value is 1050.
3276
3277* Recording and replaying remote debug sessions
3278
3279If you set `remotelogfile' to the name of a file, gdb will write to it
3280a recording of a remote debug session. This recording may then be
3281replayed back to gdb using "gdbreplay". See gdbserver/README for
3282details. This is useful when you have a problem with GDB while doing
3283remote debugging; you can make a recording of the session and send it
3284to someone else, who can then recreate the problem.
3285
3286* Speedups for remote debugging
3287
3288GDB includes speedups for downloading and stepping MIPS systems using
3289the IDT monitor, fast downloads to the Hitachi SH E7000 emulator,
3290and more efficient S-record downloading.
3291
3292* Memory use reductions and statistics collection
3293
3294GDB now uses less memory and reports statistics about memory usage.
3295Try the `maint print statistics' command, for example.
3296
3297*** Changes in GDB-4.15:
3298
3299* Psymtabs for XCOFF
3300
3301The symbol reader for AIX GDB now uses partial symbol tables. This
3302can greatly improve startup time, especially for large executables.
3303
3304* Remote targets use caching
3305
3306Remote targets now use a data cache to speed up communication with the
3307remote side. The data cache could lead to incorrect results because
3308it doesn't know about volatile variables, thus making it impossible to
3309debug targets which use memory mapped I/O devices. `set remotecache
3310off' turns the the data cache off.
3311
3312* Remote targets may have threads
3313
3314The standard remote protocol now includes support for multiple threads
3315in the target system, using new protocol commands 'H' and 'T'. See
3316gdb/remote.c for details.
3317
3318* NetROM support
3319
3320If GDB is configured with `--enable-netrom', then it will include
3321support for the NetROM ROM emulator from XLNT Designs. The NetROM
3322acts as though it is a bank of ROM on the target board, but you can
3323write into it over the network. GDB's support consists only of
3324support for fast loading into the emulated ROM; to debug, you must use
3325another protocol, such as standard remote protocol. The usual
3326sequence is something like
3327
3328 target nrom <netrom-hostname>
3329 load <prog>
3330 target remote <netrom-hostname>:1235
3331
3332* Macintosh host
3333
3334GDB now includes support for the Apple Macintosh, as a host only. It
3335may be run as either an MPW tool or as a standalone application, and
3336it can debug through the serial port. All the usual GDB commands are
3337available, but to the target command, you must supply "serial" as the
3338device type instead of "/dev/ttyXX". See mpw-README in the main
3339directory for more information on how to build. The MPW configuration
3340scripts */mpw-config.in support only a few targets, and only the
3341mips-idt-ecoff target has been tested.
3342
3343* Autoconf
3344
3345GDB configuration now uses autoconf. This is not user-visible,
3346but does simplify configuration and building.
3347
3348* hpux10
3349
3350GDB now supports hpux10.
3351
3352*** Changes in GDB-4.14:
3353
3354* New native configurations
3355
3356x86 FreeBSD i[345]86-*-freebsd
3357x86 NetBSD i[345]86-*-netbsd
3358NS32k NetBSD ns32k-*-netbsd
3359Sparc NetBSD sparc-*-netbsd
3360
3361* New targets
3362
3363A29K VxWorks a29k-*-vxworks
3364HP PA PRO embedded (WinBond W89K & Oki OP50N) hppa*-*-pro*
3365CPU32 EST-300 emulator m68*-*-est*
3366PowerPC ELF powerpc-*-elf
3367WDC 65816 w65-*-*
3368
3369* Alpha OSF/1 support for procfs
3370
3371GDB now supports procfs under OSF/1-2.x and higher, which makes it
3372possible to attach to running processes. As the mounting of the /proc
3373filesystem is optional on the Alpha, GDB automatically determines
3374the availability of /proc during startup. This can lead to problems
3375if /proc is unmounted after GDB has been started.
3376
3377* Arguments to user-defined commands
3378
3379User commands may accept up to 10 arguments separated by whitespace.
3380Arguments are accessed within the user command via $arg0..$arg9. A
3381trivial example:
3382define adder
3383 print $arg0 + $arg1 + $arg2
3384
3385To execute the command use:
3386adder 1 2 3
3387
3388Defines the command "adder" which prints the sum of its three arguments.
3389Note the arguments are text substitutions, so they may reference variables,
3390use complex expressions, or even perform inferior function calls.
3391
3392* New `if' and `while' commands
3393
3394This makes it possible to write more sophisticated user-defined
3395commands. Both commands take a single argument, which is the
3396expression to evaluate, and must be followed by the commands to
3397execute, one per line, if the expression is nonzero, the list being
3398terminated by the word `end'. The `if' command list may include an
3399`else' word, which causes the following commands to be executed only
3400if the expression is zero.
3401
3402* Fortran source language mode
3403
3404GDB now includes partial support for Fortran 77. It will recognize
3405Fortran programs and can evaluate a subset of Fortran expressions, but
3406variables and functions may not be handled correctly. GDB will work
3407with G77, but does not yet know much about symbols emitted by other
3408Fortran compilers.
3409
3410* Better HPUX support
3411
3412Most debugging facilities now work on dynamic executables for HPPAs
3413running hpux9 or later. You can attach to running dynamically linked
3414processes, but by default the dynamic libraries will be read-only, so
3415for instance you won't be able to put breakpoints in them. To change
3416that behavior do the following before running the program:
3417
3418 adb -w a.out
3419 __dld_flags?W 0x5
3420 control-d
3421
3422This will cause the libraries to be mapped private and read-write.
3423To revert to the normal behavior, do this:
3424
3425 adb -w a.out
3426 __dld_flags?W 0x4
3427 control-d
3428
3429You cannot set breakpoints or examine data in the library until after
3430the library is loaded if the function/data symbols do not have
3431external linkage.
3432
3433GDB can now also read debug symbols produced by the HP C compiler on
3434HPPAs (sorry, no C++, Fortran or 68k support).
3435
3436* Target byte order now dynamically selectable
3437
3438You can choose which byte order to use with a target system, via the
3439commands "set endian big" and "set endian little", and you can see the
3440current setting by using "show endian". You can also give the command
3441"set endian auto", in which case GDB will use the byte order
3442associated with the executable. Currently, only embedded MIPS
3443configurations support dynamic selection of target byte order.
3444
3445* New DOS host serial code
3446
3447This version uses DPMI interrupts to handle buffered I/O, so you
3448no longer need to run asynctsr when debugging boards connected to
3449a PC's serial port.
3450
3451*** Changes in GDB-4.13:
3452
3453* New "complete" command
3454
3455This lists all the possible completions for the rest of the line, if it
3456were 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
3461allows 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
3466has been hit. This is especially useful in conjunction with "ignore"; you
3467can ignore a large number of breakpoint hits, look at the breakpoint info
3468to see how many times the breakpoint was hit, then run again, ignoring one
3469less than that number, and this will get you quickly to the last hit of
3470that 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
3475an array when the first NULL is encountered. This is useful when large
3476arrays actually contain only short strings.
3477
3478* Shared library breakpoints
3479
3480In SunOS 4.x, SVR4, and Alpha OSF/1 configurations, you can now set
3481breakpoints in shared libraries before the executable is run.
3482
3483* Hardware watchpoints
3484
3485There is a new hardware breakpoint for the watch command for sparclite
3486targets. See gdb/sparclite/hw_breakpoint.note.
3487
55241689 3488Hardware watchpoints are also now supported under GNU/Linux.
c906108c
SS
3489
3490* Annotations
3491
3492Annotations have been added. These are for use with graphical interfaces,
3493and are still experimental. Currently only gdba.el uses these.
3494
3495* Improved Irix 5 support
3496
3497GDB now works properly with Irix 5.2.
3498
3499* Improved HPPA support
3500
3501GDB now works properly with the latest GCC and GAS.
3502
3503* New native configurations
3504
3505Sequent PTX4 i[34]86-sequent-ptx4
3506HPPA running OSF/1 hppa*-*-osf*
3507Atari TT running SVR4 m68*-*-sysv4*
3508RS/6000 LynxOS rs6000-*-lynxos*
3509
3510* New targets
3511
3512OS/9000 i[34]86-*-os9k
3513MIPS R4000 mips64*{,el}-*-{ecoff,elf}
3514Sparc64 sparc64-*-*
3515
3516* Hitachi SH7000 and E7000-PC ICE support
3517
3518There is now support for communicating with the Hitachi E7000-PC ICE.
3519This is available automatically when GDB is configured for the SH.
3520
3521* Fixes
3522
3523As usual, a variety of small fixes and improvements, both generic
3524and 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
3532GDB-4.12 on the HPPA has a number of changes which make it unable
3533to debug the output from the currently released versions of GCC and
3534GAS (GCC 2.5.8 and GAS-2.2 or PAGAS-1.36). Until the next major release
3535of GCC and GAS, versions of these tools designed to work with GDB-4.12
3536can 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
3545The "set remotedebug" option is now consistent between the mips remote
3546target, remote targets using the gdb-specific protocol, UDI (AMD's
3547debug protocol for the 29k) and the 88k bug monitor. It is now an
3548integer specifying a debug level (normally 0 or 1, but 2 means more
3549debugging info for the mips target).
3550
3551* DEC Alpha native support
3552
3553GDB now works on the DEC Alpha. GCC 2.4.5 does not produce usable
3554debug info, but GDB works fairly well with the DEC compiler and should
3555work with a future GCC release. See the README file for a few
3556Alpha-specific notes.
3557
3558* Preliminary thread implementation
3559
3560GDB now has preliminary thread support for both SGI/Irix and LynxOS.
3561
3562* LynxOS native and target support for 386
3563
3564This release has been hosted on LynxOS 2.2, and also can be configured
3565to remotely debug programs running under LynxOS (see gdb/gdbserver/README
3566for details).
3567
3568* Improvements in C++ mangling/demangling.
3569
3570This release has much better g++ debugging, specifically in name
3571mangling/demangling, virtual function calls, print virtual table,
3572call methods, ...etc.
3573
3574*** Changes in GDB-4.10:
3575
3576 * User visible changes:
3577
3578Remote debugging using the GDB-specific (`target remote') protocol now
3579supports the `load' command. This is only useful if you have some
3580other way of getting the stub to the target system, and you can put it
3581somewhere in memory where it won't get clobbered by the download.
3582
3583Filename completion now works.
3584
3585When run under emacs mode, the "info line" command now causes the
3586arrow to point to the line specified. Also, "info line" prints
3587addresses in symbolic form (as well as hex).
3588
3589All vxworks based targets now support a user settable option, called
3590vxworks-timeout. This option represents the number of seconds gdb
3591should wait for responses to rpc's. You might want to use this if
3592your vxworks target is, perhaps, a slow software simulator or happens
3593to be on the far side of a thin network line.
3594
3595 * DEC alpha support
3596
3597This release contains support for using a DEC alpha as a GDB host for
3598cross debugging. Native alpha debugging is not supported yet.
3599
3600
3601*** Changes in GDB-4.9:
3602
3603 * Testsuite
3604
3605This is the first GDB release which is accompanied by a matching testsuite.
3606The testsuite requires installation of dejagnu, which should be available
3607via 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
3612emphasize that it was written from the specifications in the C++ Annotated
3613Reference Manual, not necessarily to be compatible with AT&T cfront. Despite
3614disclaimers, it still generated too much confusion with users attempting to
3615use gdb with AT&T cfront.
3616
3617 * Simulators
3618
3619GDB now uses a standard remote interface to a simulator library.
3620So far, the library contains simulators for the Zilog Z8001/2, the
3621Hitachi H8/300, H8/500 and Super-H.
3622
3623 * New targets supported
3624
3625H8/300 simulator h8300-hitachi-hms or h8300hms
3626H8/500 simulator h8500-hitachi-hms or h8500hms
3627SH simulator sh-hitachi-hms or sh
3628Z8000 simulator z8k-zilog-none or z8ksim
3629IDT MIPS board over serial line mips-idt-ecoff
3630
3631Cross-debugging to GO32 targets is supported. It requires a custom
3632version of the i386-stub.c module which is integrated with the
3633GO32 memory extender.
3634
3635 * New remote protocols
3636
3637MIPS remote debugging protocol.
3638
3639 * New source languages supported
3640
3641This version includes preliminary support for Chill, a Pascal like language
3642used by telecommunications companies. Chill support is also being integrated
3643into 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
3650GDB now supports HP PA-RISC machines running HPUX. A preliminary
3651version of this support was available as a set of patches from the
3652University of Utah. GDB does not support debugging of programs
3653compiled with the HP compiler, because HP will not document their file
3654format. 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
3657Many problems in the preliminary version have been fixed.
3658
3659 * Faster and better demangling
3660
3661We have improved template demangling and fixed numerous bugs in the GNU style
3662demangler. It can now handle type modifiers such as `static' or `const'. Wide
3663character types (wchar_t) are now supported. Demangling of each symbol is now
3664only done once, and is cached when the symbol table for a file is read in.
3665This results in a small increase in memory usage for C programs, a moderate
3666increase in memory usage for C++ programs, and a fantastic speedup in
3667symbol lookups.
3668
3669`Cfront' style demangling still doesn't work with AT&T cfront. It was written
3670from the specifications in the Annotated Reference Manual, which AT&T's
3671compiler does not actually implement.
3672
3673 * G++ multiple inheritance compiler problem
3674
3675In the 2.3.2 release of gcc/g++, how the compiler resolves multiple
3676inheritance lattices was reworked to properly discover ambiguities. We
3677recently found an example which causes this new algorithm to fail in a
3678very subtle way, producing bad debug information for those classes.
3679The file 'gcc.patch' (in this directory) can be applied to gcc to
3680circumvent the problem. A future GCC release will contain a complete
3681fix.
3682
3683The previous G++ debug info problem (mentioned below for the gdb-4.7
3684release) is fixed in gcc version 2.3.2.
3685
3686 * Improved configure script
3687
3688The `configure' script will now attempt to guess your system type if
3689you don't supply a host system type. The old scheme of supplying a
3690host system triplet is preferable over using this. All the magic is
3691done in the new `config.guess' script. Examine it for details.
3692
3693We have also brought our configure script much more in line with the FSF's
3694version. It now supports the --with-xxx options. In particular,
3695`--with-minimal-bfd' can be used to make the GDB binary image smaller.
3696The resulting GDB will not be able to read arbitrary object file formats --
3697only the format ``expected'' to be used on the configured target system.
3698We hope to make this the default in a future release.
3699
3700 * Documentation improvements
3701
3702There's new internal documentation on how to modify GDB, and how to
3703produce clean changes to the code. We implore people to read it
3704before submitting changes.
3705
3706The GDB manual uses new, sexy Texinfo conditionals, rather than arcane
3707M4 macros. The new texinfo.tex is provided in this release. Pre-built
3708`info' files are also provided. To build `info' files from scratch,
3709you will need the latest `makeinfo' release, which will be available in
3710a future texinfo-X.Y release.
3711
3712*NOTE* The new texinfo.tex can cause old versions of TeX to hang.
3713We're not sure exactly which versions have this problem, but it has
3714been seen in 3.0. We highly recommend upgrading to TeX version 3.141
3715or better. If that isn't possible, there is a patch in
3716`texinfo/tex3patch' that will modify `texinfo/texinfo.tex' to work
3717around this problem.
3718
3719 * New features
3720
3721GDB now supports array constants that can be used in expressions typed in by
3722the 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
3724the target program.
3725
3726The new directory `gdb/sparclite' contains a program that demonstrates
3727how the sparc-stub.c remote stub runs on a Fujitsu SPARClite processor.
3728
3729 * New native hosts supported
3730
3731HP/PA-RISC under HPUX using GNU tools hppa1.1-hp-hpux
3732386 CPUs running SCO Unix 3.2v4 i386-unknown-sco3.2v4
3733
3734 * New targets supported
3735
3736AMD 29k family via UDI a29k-amd-udi or udi29k
3737
3738 * New file formats supported
3739
3740BFD now supports reading HP/PA-RISC executables (SOM file format?),
3741HPUX core files, and SCO 3.2v2 core files.
3742
3743 * Major bug fixes
3744
3745Attaching to processes now works again; thanks for the many bug reports.
3746
3747We have also stomped on a bunch of core dumps caused by
3748printf_filtered("%s") problems.
3749
3750We eliminated a copyright problem on the rpc and ptrace header files
3751for VxWorks, which was discovered at the last minute during the 4.7
3752release. You should now be able to build a VxWorks GDB.
3753
3754You can now interrupt gdb while an attached process is running. This
3755will cause the attached process to stop, and give control back to GDB.
3756
3757We fixed problems caused by using too many file descriptors
3758for reading symbols from object files and libraries. This was
3759especially a problem for programs that used many (~100) shared
3760libraries.
3761
3762The `step' command now only enters a subroutine if there is line number
3763information for the subroutine. Otherwise it acts like the `next'
3764command. Previously, `step' would enter subroutines if there was
3765any debugging information about the routine. This avoids problems
3766when using `cc -g1' on MIPS machines.
3767
3768 * Internal improvements
3769
3770GDB's internal interfaces have been improved to make it easier to support
3771debugging of multiple languages in the future.
3772
3773GDB now uses a common structure for symbol information internally.
3774Minimal symbols (derived from linkage symbols in object files), partial
3775symbols (from a quick scan of debug information), and full symbols
3776contain a common subset of information, making it easier to write
3777shared code that handles any of them.
3778
3779 * New command line options
3780
3781We now accept --silent as an alias for --quiet.
3782
3783 * Mmalloc licensing
3784
3785The memory-mapped-malloc library is now licensed under the GNU Library
3786General Public License.
3787
3788*** Changes in GDB-4.7:
3789
3790 * Host/native/target split
3791
3792GDB has had some major internal surgery to untangle the support for
3793hosts and remote targets. Now, when you configure GDB for a remote
3794target, it will no longer load in all of the support for debugging
3795local programs on the host. When fully completed and tested, this will
3796ensure that arbitrary host/target combinations are possible.
3797
3798The primary conceptual shift is to separate the non-portable code in
3799GDB into three categories. Host specific code is required any time GDB
3800is compiled on that host, regardless of the target. Target specific
3801code relates to the peculiarities of the target, but can be compiled on
3802any host. Native specific code is everything else: it can only be
3803built when the host and target are the same system. Child process
3804handling and core file support are two common `native' examples.
3805
3806GDB's use of /proc for controlling Unix child processes is now cleaner.
3807It has been split out into a single module under the `target_ops' vector,
3808plus two native-dependent functions for each system that uses /proc.
3809
3810 * New hosts supported
3811
3812HP/Apollo 68k (under the BSD domain) m68k-apollo-bsd or apollo68bsd
3813386 CPUs running various BSD ports i386-unknown-bsd or 386bsd
3814386 CPUs running SCO Unix i386-unknown-scosysv322 or i386sco
3815
3816 * New targets supported
3817
3818Fujitsu SPARClite sparclite-fujitsu-none or sparclite
381968030 and CPU32 m68030-*-*, m68332-*-*
3820
3821 * New native hosts supported
3822
3823386 CPUs running various BSD ports i386-unknown-bsd or 386bsd
3824 (386bsd is not well tested yet)
3825386 CPUs running SCO Unix i386-unknown-scosysv322 or sco
3826
3827 * New file formats supported
3828
3829BFD now supports COFF files for the Zilog Z8000 microprocessor. It
3830supports reading of `a.out.adobe' object files, which are an a.out
3831format 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'.
3837These were renamed for consistency. The old commands continue to work.
3838
3839`info handle' is a new alias for `info signals'.
3840
3841You can now define pre-command hooks, which attach arbitrary command
3842scripts to any command. The commands in the hook will be executed
3843prior to the user's command. You can also create a hook which will be
3844executed whenever the program stops. See gdb.texinfo.
3845
3846 * C++ improvements
3847
3848We now deal with Cfront style name mangling, and can even extract type
3849info from mangled symbols. GDB can automatically figure out which
3850symbol mangling style your C++ compiler uses.
3851
3852Calling of methods and virtual functions has been improved as well.
3853
3854 * Major bug fixes
3855
3856The crash that occured when debugging Sun Ansi-C compiled binaries is
3857fixed. This was due to mishandling of the extra N_SO stabs output
3858by the compiler.
3859
3860We also finally got Ultrix 4.2 running in house, and fixed core file
3861support, with help from a dozen people on the net.
3862
3863John M. Farrell discovered that the reason that single-stepping was so
3864slow on all of the Mips based platforms (primarily SGI and DEC) was
3865that we were trying to demangle and lookup a symbol used for internal
3866purposes on every instruction that was being stepped through. Changing
3867the name of that symbol so that it couldn't be mistaken for a C++
3868mangled symbol sped things up a great deal.
3869
3870Rich Pixley sped up symbol lookups in general by getting much smarter
3871about when C++ symbol mangling is necessary. This should make symbol
3872completion (TAB on the command line) much faster. It's not as fast as
3873we'd like, but it's significantly faster than gdb-4.6.
3874
3875 * AMD 29k support
3876
3877A new user controllable variable 'call_scratch_address' can
3878specify the location of a scratch area to be used when GDB
3879calls a function in the target. This is necessary because the
3880usual method of putting the scratch area on the stack does not work
3881in systems that have separate instruction and data spaces.
3882
3883We integrated changes to support the 29k UDI (Universal Debugger
3884Interface), but discovered at the last minute that we didn't have all
3885of the appropriate copyright paperwork. We are working with AMD to
3886resolve this, and hope to have it available soon.
3887
3888 * Remote interfaces
3889
3890We have sped up the remote serial line protocol, especially for targets
3891with lots of registers. It now supports a new `expedited status' ('T')
3892message which can be used in place of the existing 'S' status message.
3893This allows the remote stub to send only the registers that GDB
3894needs to make a quick decision about single-stepping or conditional
3895breakpoints, eliminating the need to fetch the entire register set for
3896each instruction being stepped through.
3897
3898The GDB remote serial protocol now implements a write-through cache for
3899registers, only re-reading the registers if the target has run.
3900
3901There is also a new remote serial stub for SPARC processors. You can
3902find it in gdb-4.7/gdb/sparc-stub.c. This was written to support the
3903Fujitsu SPARClite processor, but will run on any stand-alone SPARC
3904processor with a serial port.
3905
3906 * Configuration
3907
3908Configure.in files have become much easier to read and modify. A new
3909`table driven' format makes it more obvious what configurations are
3910supported, and what files each one uses.
3911
3912 * Library changes
3913
3914There is a new opcodes library which will eventually contain all of the
3915disassembly routines and opcode tables. At present, it only contains
3916Sparc and Z8000 routines. This will allow the assembler, debugger, and
3917disassembler (binutils/objdump) to share these routines.
3918
3919The libiberty library is now copylefted under the GNU Library General
3920Public License. This allows more liberal use, and was done so libg++
3921can use it. This makes no difference to GDB, since the Library License
3922grants all the rights from the General Public License.
3923
3924 * Documentation
3925
3926The file gdb-4.7/gdb/doc/stabs.texinfo is a (relatively) complete
3927reference to the stabs symbol info used by the debugger. It is (as far
3928as we know) the only published document on this fascinating topic. We
3929encourage you to read it, compare it to the stabs information on your
3930system, and send improvements on the document in general (to
3931bug-gdb@prep.ai.mit.edu).
3932
3933And, of course, many bugs have been fixed.
3934
3935
3936*** Changes in GDB-4.6:
3937
3938 * Better support for C++ function names
3939
3940GDB now accepts as input the "demangled form" of C++ overloaded function
3941names 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
3943single quotes. Examples are 'func (int, long)' and 'obj::operator==(obj&)'.
3944Make use of command completion, it is your friend.
3945
3946GDB also now accepts a variety of C++ mangled symbol formats. They are
3947the GNU g++ style, the Cfront (ARM) style, and the Lucid (lcc) style.
3948You can tell GDB which format to use by doing a 'set demangle-style {gnu,
3949lucid, cfront, auto}'. 'gnu' is the default. Do a 'set demangle-style foo'
3950for the list of formats.
3951
3952 * G++ symbol mangling problem
3953
3954Recent versions of gcc have a bug in how they emit debugging information for
3955C++ methods (when using dbx-style stabs). The file 'gcc.patch' (in this
3956directory) can be applied to gcc to fix the problem. Alternatively, if you
3957can't fix gcc, you can #define GCC_MANGLE_BUG when compling gdb/symtab.c. The
3958usual symptom is difficulty with setting breakpoints on methods. GDB complains
3959about the method being non-existent. (We believe that version 2.2.2 of GCC has
3960this problem.)
3961
3962 * New 'maintenance' command
3963
3964All of the commands related to hacking GDB internals have been moved out of
3965the main command set, and now live behind the 'maintenance' command. This
3966can 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
3975The 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
3983We 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
3985be set, which will apply during the symbol reading. The ./.gdbinit is still
3986read after argv processing.
3987
3988 * New hosts supported
3989
3990Solaris-2.0 !!! sparc-sun-solaris2 or sun4sol2
3991
55241689 3992GNU/Linux support i386-unknown-linux or linux
c906108c
SS
3993
3994We are also including code to support the HP/PA running BSD and HPUX. This
3995is almost guaranteed not to work, as we didn't have time to test or build it
3996for this release. We are including it so that the more adventurous (or
3997masochistic) of you can play with it. We also had major problems with the
3998fact that the compiler that we got from HP doesn't support the -g option.
3999It costs extra.
4000
4001 * New targets supported
4002
4003Hitachi H8/300 h8300-hitachi-hms or h8300hms
4004
4005 * More smarts about finding #include files
4006
4007GDB now remembers the compilation directory for all include files, and for
4008all files from which C is generated (like yacc and lex sources). This
4009greatly improves GDB's ability to find yacc/lex sources, and include files,
4010especially if you are debugging your program from a directory different from
4011the one that contains your sources.
4012
4013We also fixed a bug which caused difficulty with listing and setting
4014breakpoints in include files which contain C code. (In the past, you had to
4015try twice in order to list an include file that you hadn't looked at before.)
4016
4017 * Interesting infernals change
4018
4019GDB now deals with arbitrary numbers of sections, where the symbols for each
4020section must be relocated relative to that section's landing place in the
4021target's address space. This work was needed to support ELF with embedded
4022stabs used by Solaris-2.0.
4023
4024 * Bug fixes (of course!)
4025
4026There 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
4030See the ChangeLog for details.
4031
4032*** Changes in GDB-4.5:
4033
4034 * New machines supported (host and target)
4035
4036IBM RS6000 running AIX rs6000-ibm-aix or rs6000
4037
4038SGI Irix-4.x mips-sgi-irix4 or iris4
4039
4040 * New malloc package
4041
4042GDB now uses a new memory manager called mmalloc, based on gmalloc.
4043Mmalloc is capable of handling mutiple heaps of memory. It is also
4044capable of saving a heap to a file, and then mapping it back in later.
4045This can be used to greatly speedup the startup of GDB by using a
4046pre-parsed symbol table which lives in a mmalloc managed heap. For
4047more details, please read mmalloc/mmalloc.texi.
4048
4049 * info proc
4050
4051The '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
4056The code that reads MIPS symbol table format is now supported on all hosts.
4057Thanks to MIPS for releasing the sym.h and symconst.h files to make this
4058possible.
4059
4060 * File name changes for MS-DOS
4061
4062Many files in the config directories have been renamed to make it easier to
4063support GDB on MS-DOSe systems (which have very restrictive file name
4064conventions :-( ). MS-DOSe host support (under DJ Delorie's GO32
4065environment) is close to working but has some remaining problems. Note
4066that debugging of DOS programs is not supported, due to limitations
4067in the ``operating system'', but it can be used to host cross-debugging.
4068
4069 * Cross byte order fixes
4070
4071Many fixes have been made to support cross debugging of Sparc and MIPS
4072targets from hosts whose byte order differs.
4073
4074 * New -mapped and -readnow options
4075
4076If memory-mapped files are available on your system through the 'mmap'
4077system call, you can use the -mapped option on the `file' or
4078`symbol-file' commands to cause GDB to write the symbols from your
4079program into a reusable file. If the program you are debugging is
4080called `/path/fred', the mapped symbol file will be `./fred.syms'.
4081Future GDB debugging sessions will notice the presence of this file,
4082and will quickly map in symbol information from it, rather than reading
4083the symbol table from the executable program. Using the '-mapped'
4084option in a GDB `file' or `symbol-file' command has the same effect as
4085starting GDB with the '-mapped' command-line option.
4086
4087You can cause GDB to read the entire symbol table immediately by using
4088the '-readnow' option with any of the commands that load symbol table
4089information (or on the GDB command line). This makes the command
4090slower, but makes future operations faster.
4091
4092The -mapped and -readnow options are typically combined in order to
4093build a `fred.syms' file that contains complete symbol information.
4094A simple GDB invocation to do nothing but build a `.syms' file for future
4095use is:
4096
4097 gdb -batch -nx -mapped -readnow programname
4098
4099The `.syms' file is specific to the host machine on which GDB is run.
4100It holds an exact image of GDB's internal symbol table. It cannot be
4101shared across multiple host platforms.
4102
4103 * longjmp() handling
4104
4105GDB is now capable of stepping and nexting over longjmp(), _longjmp(), and
4106siglongjmp() without losing control. This feature has not yet been ported to
4107all systems. It currently works on many 386 platforms, all MIPS-based
4108platforms (SGI, DECstation, etc), and Sun3/4.
4109
4110 * Solaris 2.0
4111
4112Preliminary work has been put in to support the new Solaris OS from Sun. At
4113this time, it can control and debug processes, but it is not capable of
4114reading symbols.
4115
4116 * Bug fixes
4117
4118As always, many many bug fixes. The major areas were with g++, and mipsread.
4119People using the MIPS-based platforms should experience fewer mysterious
4120crashes and trashed symbol tables.
4121
4122*** Changes in GDB-4.4:
4123
4124 * New machines supported (host and target)
4125
4126SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
4127 (except core files)
4128BSD Reno on Vax vax-dec-bsd
4129Ultrix on Vax vax-dec-ultrix
4130
4131 * New machines supported (target)
4132
4133AMD 29000 embedded, using EBMON a29k-none-none
4134
4135 * C++ support
4136
4137GDB continues to improve its handling of C++. `References' work better.
4138The demangler has also been improved, and now deals with symbols mangled as
4139per the Annotated C++ Reference Guide.
4140
4141GDB also now handles `stabs' symbol information embedded in MIPS
4142`ecoff' symbol tables. Since the ecoff format was not easily
4143extensible to handle new languages such as C++, this appeared to be a
4144good way to put C++ debugging info into MIPS binaries. This option
4145will be supported in the GNU C compiler, version 2, when it is
4146released.
4147
4148 * New features for SVR4
4149
4150GDB now handles SVR4 shared libraries, in the same fashion as SunOS
4151shared libraries. Debugging dynamically linked programs should present
4152only minor differences from debugging statically linked programs.
4153
4154The `info proc' command will print out information about any process
4155on an SVR4 system (including the one you are debugging). At the moment,
4156it prints the address mappings of the process.
4157
4158If you bring up GDB on another SVR4 system, please send mail to
4159bug-gdb@prep.ai.mit.edu to let us know what changes were reqired (if any).
4160
4161 * Better dynamic linking support in SunOS
4162
4163Reading symbols from shared libraries which contain debugging symbols
4164now works properly. However, there remain issues such as automatic
4165skipping of `transfer vector' code during function calls, which
4166make it harder to debug code in a shared library, than to debug the
4167same code linked statically.
4168
4169 * New Getopt
4170
4171GDB is now using the latest `getopt' routines from the FSF. This
4172version accepts the -- prefix for options with long names. GDB will
4173continue to accept the old forms (-option and +option) as well.
4174Various single letter abbreviations for options have been explicity
4175added to the option table so that they won't get overshadowed in the
4176future by other options that begin with the same letter.
4177
4178 * Bugs fixed
4179
4180The `cleanup_undefined_types' bug that many of you noticed has been squashed.
4181Many assorted bugs have been handled. Many more remain to be handled.
4182See 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
4189Amiga 3000 running Amix m68k-cbm-svr4 or amix
4190NCR 3000 386 running SVR4 i386-ncr-svr4 or ncr3000
4191Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
4192
4193 * Almost SCO Unix support
4194
4195We had hoped to support:
4196SCO 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
4198that it has problems with process groups that render gdb unusable. Sorry
4199about that. I encourage people to fix it and post the fixes.
4200
4201 * Preliminary ELF and DWARF support
4202
4203GDB can read ELF object files on System V Release 4, and can handle
4204debugging records for C, in DWARF format, in ELF files. This support
4205is preliminary. If you bring up GDB on another SVR4 system, please
4206send mail to bug-gdb@prep.ai.mit.edu to let us know what changes were
4207reqired (if any).
4208
4209 * New Readline
4210
4211GDB now uses the latest `readline' library. One user-visible change
4212is that two tabs will list possible command completions, which previously
4213required typing M-? (meta-question mark, or ESC ?).
4214
4215 * Bugs fixed
4216
4217The `stepi' bug that many of you noticed has been squashed.
4218Many bugs in C++ have been handled. Many more remain to be handled.
4219See the various ChangeLog files (primarily in gdb and bfd) for details.
4220
4221 * State of the MIPS world (in case you wondered):
4222
4223GDB can understand the symbol tables emitted by the compilers
4224supplied by most vendors of MIPS-based machines, including DEC. These
4225symbol tables are in a format that essentially nobody else uses.
4226
4227Some versions of gcc come with an assembler post-processor called
4228mips-tfile. This program is required if you want to do source-level
4229debugging of gcc-compiled programs. I believe FSF does not ship
4230mips-tfile with gcc version 1, but it will eventually come with gcc
4231version 2.
4232
4233Debugging of g++ output remains a problem. g++ version 1.xx does not
4234really support it at all. (If you're lucky, you should be able to get
4235line numbers and stack traces to work, but no parameters or local
4236variables.) With some work it should be possible to improve the
4237situation somewhat.
4238
4239When gcc version 2 is released, you will have somewhat better luck.
4240However, even then you will get confusing results for inheritance and
4241methods.
4242
4243We will eventually provide full debugging of g++ output on
4244DECstations. This will probably involve some kind of stabs-in-ecoff
4245encapulation, but the details have not been worked out yet.
4246
4247
4248*** Changes in GDB-4.2:
4249
4250 * Improved configuration
4251
4252Only one copy of `configure' exists now, and it is not self-modifying.
4253Porting BFD is simpler.
4254
4255 * Stepping improved
4256
4257The `step' and `next' commands now only stop at the first instruction
4258of a source line. This prevents the multiple stops that used to occur
4259in switch statements, for-loops, etc. `Step' continues to stop if a
4260function that has debugging information is called within the line.
4261
4262 * Bug fixing
4263
4264Lots of small bugs fixed. More remain.
4265
4266 * New host supported (not target)
4267
4268Intel 386 PC clone running Mach i386-none-mach
4269
4270
4271*** Changes in GDB-4.1:
4272
4273 * Multiple source language support
4274
4275GDB now has internal scaffolding to handle several source languages.
4276It determines the type of each source file from its filename extension,
4277and will switch expression parsing and number formatting to match the
4278language of the function in the currently selected stack frame.
4279You 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
4284GDB now has preliminary support for the GNU Modula-2 compiler,
4285currently under development at the State University of New York at
4286Buffalo. Development of both GDB and the GNU Modula-2 compiler will
4287continue through the fall of 1991 and into 1992.
4288
4289Other Modula-2 compilers are currently not supported, and attempting to
4290debug programs compiled with them will likely result in an error as the
4291symbol table is read. Feel free to work on it, though!
4292
4293There are hooks in GDB for strict type checking and range checking,
4294in the `Modula-2 philosophy', but they do not currently work.
4295
4296 * set write on/off
4297
4298GDB can now write to executable and core files (e.g. patch
4299a variable's value). You must turn this switch on, specify
4300the file ("exec foo" or "core foo"), *then* modify it, e.g.
4301by assigning a new value to a variable. Modifications take
4302effect immediately.
4303
4304 * Automatic SunOS shared library reading
4305
4306When you run your program, GDB automatically determines where its
4307shared libraries (if any) have been loaded, and reads their symbols.
4308The `share' command is no longer needed. This also works when
4309examining core files.
4310
4311 * set listsize
4312
4313You can specify the number of lines that the `list' command shows.
4314The default is 10.
4315
4316 * New machines supported (host and target)
4317
4318SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
4319Sony NEWS (68K) running NEWSOS 3.x: m68k-sony-sysv or news
4320Ultracomputer (29K) running Sym1: a29k-nyu-sym1 or ultra3
4321
4322 * New hosts supported (not targets)
4323
4324IBM RT/PC: romp-ibm-aix or rtpc
4325
4326 * New targets supported (not hosts)
4327
4328AMD 29000 embedded with COFF a29k-none-coff
4329AMD 29000 embedded with a.out a29k-none-aout
4330Ultracomputer remote kernel debug a29k-nyu-kern
4331
4332 * New remote interfaces
4333
4334AMD 29000 Adapt
4335AMD 29000 Minimon
4336
4337
4338*** Changes in GDB-4.0:
4339
4340 * New Facilities
4341
4342Wide output is wrapped at good places to make the output more readable.
4343
4344Gdb now supports cross-debugging from a host machine of one type to a
4345target machine of another type. Communication with the target system
4346is over serial lines. The ``target'' command handles connecting to the
4347remote system; the ``load'' command will download a program into the
4348remote system. Serial stubs for the m68k and i386 are provided. Gdb
4349also supports debugging of realtime processes running under VxWorks,
4350using SunRPC Remote Procedure Calls over TCP/IP to talk to a debugger
4351stub on the target system.
4352
4353New CPUs supported include the AMD 29000 and Intel 960.
4354
4355GDB now reads object files and symbol tables via a ``binary file''
4356library, which allows a single copy of GDB to debug programs of multiple
4357object file types such as a.out and coff.
4358
4359There is now a GDB reference card in "doc/refcard.tex". (Make targets
4360refcard.dvi and refcard.ps are available to format it).
4361
4362
4363 * Control-Variable user interface simplified
4364
4365All variables that control the operation of the debugger can be set
4366by the ``set'' command, and displayed by the ``show'' command.
4367
4368For example, ``set prompt new-gdb=>'' will change your prompt to new-gdb=>.
4369``Show prompt'' produces the response:
4370Gdb's prompt is new-gdb=>.
4371
4372What follows are the NEW set commands. The command ``help set'' will
4373print a complete list of old and new set commands. ``help set FOO''
4374will give a longer description of the variable FOO. ``show'' will show
4375all of the variable descriptions and their current settings.
4376
4377confirm 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
4381editing 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
4387history 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
4392history 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
4396history 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
4400history 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
4404radix 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
4408height 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
4413width 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
4418Note: ``set screensize'' is obsolete. Use ``set height'' and
4419``set width'' instead.
4420
4421print 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
4426print array on/off: Prettyprint arrays. New convenient format! Default
4427 is OFF.
4428
4429print demangle on/off: Print C++ symbols in "source" form if on,
4430 "raw" form if off.
4431
4432print asm-demangle on/off: Same, for assembler level printouts
4433 like instructions.
4434
4435print vtbl on/off: Prettyprint C++ virtual function tables. Default is OFF.
4436
4437
4438 * Support for Epoch Environment.
4439
4440The epoch environment is a version of Emacs v18 with windowing. One
4441new command, ``inspect'', is identical to ``print'', except that if you
4442are running in the epoch environment, the value is printed in its own
4443window.
4444
4445
4446 * Support for Shared Libraries
4447
4448GDB can now debug programs and core files that use SunOS shared libraries.
4449Symbols from a shared library cannot be referenced
4450before the shared library has been linked with the program (this
4451happens after you type ``run'' and before the function main() is entered).
4452At any time after this linking (including when examining core files
4453from dynamically linked programs), gdb reads the symbols from each
4454shared library when you type the ``sharedlibrary'' command.
4455It can be abbreviated ``share''.
4456
4457sharedlibrary 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
4461info sharedlibrary: Status of loaded shared libraries.
4462
4463
4464 * Watchpoints
4465
4466A watchpoint stops execution of a program whenever the value of an
4467expression changes. Checking for this slows down execution
4468tremendously whenever you are in the scope of the expression, but is
4469quite useful for catching tough ``bit-spreader'' or pointer misuse
4470problems. Some machines such as the 386 have hardware for doing this
4471more quickly, and future versions of gdb will use this hardware.
4472
4473watch EXP: Set a watchpoint (breakpoint) for an expression.
4474
4475info watchpoints: Information about your watchpoints.
4476
4477delete N: Deletes watchpoint number N (same as breakpoints).
4478disable N: Temporarily turns off watchpoint number N (same as breakpoints).
4479enable N: Re-enables watchpoint number N (same as breakpoints).
4480
4481
4482 * C++ multiple inheritance
4483
4484When used with a GCC version 2 compiler, GDB supports multiple inheritance
4485for C++ programs.
4486
4487 * C++ exception handling
4488
4489Gdb now supports limited C++ exception handling. Besides the existing
4490ability to breakpoint on an exception handler, gdb can breakpoint on
4491the raising of an exception (before the stack is peeled back to the
4492handler's context).
4493
4494catch 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
4498info catch: Lists all exceptions which may be caught in the
4499 current stack frame.
4500
4501
4502 * Minor command changes
4503
4504The command ``call func (arg, arg, ...)'' now acts like the print
4505command, except it does not print or save a value if the function's result
4506is void. This is similar to dbx usage.
4507
4508The ``up'' and ``down'' commands now always print the frame they end up
4509at; ``up-silently'' and `down-silently'' can be used in scripts to change
4510frames without printing.
4511
4512 * New directory command
4513
4514'dir' now adds directories to the FRONT of the source search path.
4515The path starts off empty. Source files that contain debug information
4516about the directory in which they were compiled can be found even
4517with an empty path; Sun CC and GCC include this information. If GDB can't
4518find your source file in the current directory, type "dir .".
4519
4520 * Configuring GDB for compilation
4521
4522For normal use, type ``./configure host''. See README or gdb.texinfo
4523for more details.
4524
4525GDB now handles cross debugging. If you are remotely debugging between
4526two different machines, type ``./configure host -target=targ''.
4527Host is the machine where GDB will run; targ is the machine
4528where the program that you are debugging will run.
This page took 0.936642 seconds and 4 git commands to generate.