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