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