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