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