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