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