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