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