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