* alldeps.mak, depend: Update.
[deliverable/binutils-gdb.git] / gdb / WHATS.NEW
CommitLineData
94d86c7c 1 What has changed since GDB-3.5?
24db5b87 2 (Organized release by release)
94d86c7c 3
6b53bf34
FF
4*** Changes in GDB-4.6:
5
6 * Better support for C++ function names
7
8GDB now accepts as input the "demangled form" of C++ overloaded function
9names and member function names, and can do command completion on such names
10(using TAB, TAB-TAB, and ESC-?). The names have to be quoted with a pair of
11single quotes. Examples are 'func (int, long)' and 'obj::operator==(obj&)'.
12Make use of command completion, it is your friend.
13
b69ce5ab
SG
14*** Changes in GDB-4.5:
15
16 * New machines supported (host and target)
17
18IBM RS6000 running AIX rs6000-ibm-aix or rs6000
19
20SGI Irix-4.x mips-sgi-irix4 or iris4
21
22 * New malloc package
23
24GDB now uses a new memory manager called mmalloc, based on gmalloc.
25Mmalloc is capable of handling mutiple heaps of memory. It is also
26capable of saving a heap to a file, and then mapping it back in later.
27This can be used to greatly speedup the startup of GDB by using a
28pre-parsed symbol table which lives in a mmalloc managed heap. For
29more details, please read mmalloc/mmalloc.texi.
30
31 * info proc
32
33The 'info proc' command (SVR4 only) has been enhanced quite a bit. See
34'help info proc' for details.
35
36 * MIPS ecoff symbol table format
37
38The code that reads MIPS symbol table format is now supported on all hosts.
39Thanks to MIPS for releasing the sym.h and symconst.h files to make this
40possible.
41
42 * File name changes for MS-DOS
43
44Many files in the config directories have been renamed to make it easier to
45support GDB on MS-DOSe systems (which have very restrictive file name
46conventions :-( ). MS-DOSe host support (under DJ Delorie's GO32
47environment) is close to working but has some remaining problems. Note
48that debugging of DOS programs is not supported, due to limitations
49in the ``operating system'', but it can be used to host cross-debugging.
50
51 * Cross byte order fixes
52
53Many fixes have been made to support cross debugging of Sparc and MIPS
54targets from hosts whose byte order differs.
55
56 * New -mapped and -readnow options
57
58If memory-mapped files are available on your system through the 'mmap'
59system call, you can use the -mapped option on the `file' or
60`symbol-file' commands to cause GDB to write the symbols from your
61program into a reusable file. If the program you are debugging is
3bc82410 62called `/path/fred', the mapped symbol file will be `./fred.syms'.
b69ce5ab
SG
63Future GDB debugging sessions will notice the presence of this file,
64and will quickly map in symbol information from it, rather than reading
65the symbol table from the executable program. Using the '-mapped'
66option in a GDB `file' or `symbol-file' command has the same effect as
67starting GDB with the '-mapped' command-line option.
68
69You can cause GDB to read the entire symbol table immediately by using
70the '-readnow' option with any of the commands that load symbol table
71information (or on the GDB command line). This makes the command
72slower, but makes future operations faster.
73
74The -mapped and -readnow options are typically combined in order to
75build a `fred.syms' file that contains complete symbol information.
76A simple GDB invocation to do nothing but build a `.syms' file for future
77use is:
78
79 gdb -batch -nx -mapped -readnow programname
80
81The `.syms' file is specific to the host machine on which GDB is run.
82It holds an exact image of GDB's internal symbol table. It cannot be
83shared across multiple host platforms.
84
85 * longjmp() handling
86
87GDB is now capable of stepping and nexting over longjmp(), _longjmp(), and
88siglongjmp() without losing control. This feature has not yet been ported to
89all systems. It currently works on many 386 platforms, all MIPS-based
90platforms (SGI, DECstation, etc), and Sun3/4.
91
92 * Solaris 2.0
93
94Preliminary work has been put in to support the new Solaris OS from Sun. At
95this time, it can control and debug processes, but it is not capable of
96reading symbols.
97
98 * Bug fixes
99
100As always, many many bug fixes. The major areas were with g++, and mipsread.
101People using the MIPS-based platforms should experience fewer mysterious
102crashes and trashed symbol tables.
103
f006dac1
JG
104*** Changes in GDB-4.4:
105
106 * New machines supported (host and target)
107
108SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
109 (except core files)
75c86b57
JG
110BSD Reno on Vax vax-dec-bsd
111Ultrix on Vax vax-dec-ultrix
a8cd573f 112
f006dac1
JG
113 * New machines supported (target)
114
115AMD 29000 embedded, using EBMON a29k-none-none
116
75c86b57
JG
117 * C++ support
118
119GDB continues to improve its handling of C++. `References' work better.
120The demangler has also been improved, and now deals with symbols mangled as
121per the Annotated C++ Reference Guide.
a8cd573f 122
75c86b57
JG
123GDB also now handles `stabs' symbol information embedded in MIPS
124`ecoff' symbol tables. Since the ecoff format was not easily
125extensible to handle new languages such as C++, this appeared to be a
126good way to put C++ debugging info into MIPS binaries. This option
127will be supported in the GNU C compiler, version 2, when it is
128released.
a8cd573f
SG
129
130 * New features for SVR4
131
75c86b57
JG
132GDB now handles SVR4 shared libraries, in the same fashion as SunOS
133shared libraries. Debugging dynamically linked programs should present
134only minor differences from debugging statically linked programs.
a8cd573f 135
75c86b57
JG
136The `info proc' command will print out information about any process
137on an SVR4 system (including the one you are debugging). At the moment,
138it prints the address mappings of the process.
a8cd573f 139
75c86b57
JG
140If you bring up GDB on another SVR4 system, please send mail to
141bug-gdb@prep.ai.mit.edu to let us know what changes were reqired (if any).
a8cd573f 142
75c86b57 143 * Better dynamic linking support in SunOS
a8cd573f 144
75c86b57
JG
145Reading symbols from shared libraries which contain debugging symbols
146now works properly. However, there remain issues such as automatic
147skipping of `transfer vector' code during function calls, which
148make it harder to debug code in a shared library, than to debug the
149same code linked statically.
f006dac1 150
a8cd573f 151 * New Getopt
f006dac1 152
75c86b57
JG
153GDB is now using the latest `getopt' routines from the FSF. This
154version accepts the -- prefix for options with long names. GDB will
155continue to accept the old forms (-option and +option) as well.
156Various single letter abbreviations for options have been explicity
157added to the option table so that they won't get overshadowed in the
158future by other options that begin with the same letter.
f006dac1 159
75c86b57 160 * Bugs fixed
f006dac1 161
75c86b57
JG
162The `cleanup_undefined_types' bug that many of you noticed has been squashed.
163Many assorted bugs have been handled. Many more remain to be handled.
f006dac1
JG
164See the various ChangeLog files (primarily in gdb and bfd) for details.
165
f006dac1 166
fbda4193
JG
167*** Changes in GDB-4.3:
168
169 * New machines supported (host and target)
170
fbda4193
JG
171Amiga 3000 running Amix m68k-cbm-svr4 or amix
172NCR 3000 386 running SVR4 i386-ncr-svr4 or ncr3000
173Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
174
4882e5dc
JG
175 * Almost SCO Unix support
176
177We had hoped to support:
178SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
179(except for core file support), but we discovered very late in the release
180that it has problems with process groups that render gdb unusable. Sorry
181about that. I encourage people to fix it and post the fixes.
fbda4193
JG
182
183 * Preliminary ELF and DWARF support
184
185GDB can read ELF object files on System V Release 4, and can handle
186debugging records for C, in DWARF format, in ELF files. This support
187is preliminary. If you bring up GDB on another SVR4 system, please
188send mail to bug-gdb@prep.ai.mit.edu to let us know what changes were
189reqired (if any).
190
4882e5dc
JG
191 * New Readline
192
193GDB now uses the latest `readline' library. One user-visible change
194is that two tabs will list possible command completions, which previously
195required typing M-? (meta-question mark, or ESC ?).
196
fbda4193
JG
197 * Bugs fixed
198
199The `stepi' bug that many of you noticed has been squashed.
200Many bugs in C++ have been handled. Many more remain to be handled.
201See the various ChangeLog files (primarily in gdb and bfd) for details.
202
203 * State of the MIPS world (in case you wondered):
204
205GDB can understand the symbol tables emitted by the compilers
206supplied by most vendors of MIPS-based machines, including DEC. These
207symbol tables are in a format that essentially nobody else uses.
208
209Some versions of gcc come with an assembler post-processor called
210mips-tfile. This program is required if you want to do source-level
211debugging of gcc-compiled programs. I believe FSF does not ship
212mips-tfile with gcc version 1, but it will eventually come with gcc
213version 2.
214
215Debugging of g++ output remains a problem. g++ version 1.xx does not
216really support it at all. (If you're lucky, you should be able to get
217line numbers and stack traces to work, but no parameters or local
218variables.) With some work it should be possible to improve the
219situation somewhat.
220
221When gcc version 2 is released, you will have somewhat better luck.
222However, even then you will get confusing results for inheritance and
223methods.
224
225We will eventually provide full debugging of g++ output on
226DECstations. This will probably involve some kind of stabs-in-ecoff
227encapulation, but the details have not been worked out yet.
228
229
b1dcd6ac
JG
230*** Changes in GDB-4.2:
231
232 * Improved configuration
233
234Only one copy of `configure' exists now, and it is not self-modifying.
235Porting BFD is simpler.
236
237 * Stepping improved
238
239The `step' and `next' commands now only stop at the first instruction
240of a source line. This prevents the multiple stops that used to occur
241in switch statements, for-loops, etc. `Step' continues to stop if a
242function that has debugging information is called within the line.
243
244 * Bug fixing
245
246Lots of small bugs fixed. More remain.
247
248 * New host supported (not target)
249
250Intel 386 PC clone running Mach i386-none-mach
251
252
24db5b87
JG
253*** Changes in GDB-4.1:
254
255 * Multiple source language support
256
257GDB now has internal scaffolding to handle several source languages.
258It determines the type of each source file from its filename extension,
259and will switch expression parsing and number formatting to match the
260language of the function in the currently selected stack frame.
261You can also specifically set the language to be used, with
262`set language c' or `set language modula-2'.
94d86c7c
JG
263
264 * GDB and Modula-2
265
266GDB now has preliminary support for the GNU Modula-2 compiler,
267currently under development at the State University of New York at
268Buffalo. Development of both GDB and the GNU Modula-2 compiler will
269continue through the fall of 1991 and into 1992.
270
271Other Modula-2 compilers are currently not supported, and attempting to
272debug programs compiled with them will likely result in an error as the
24db5b87
JG
273symbol table is read. Feel free to work on it, though!
274
275There are hooks in GDB for strict type checking and range checking,
276in the `Modula-2 philosophy', but they do not currently work.
277
278 * set write on/off
279
280GDB can now write to executable and core files (e.g. patch
281a variable's value). You must turn this switch on, specify
282the file ("exec foo" or "core foo"), *then* modify it, e.g.
283by assigning a new value to a variable. Modifications take
284effect immediately.
285
286 * Automatic SunOS shared library reading
287
288When you run your program, GDB automatically determines where its
289shared libraries (if any) have been loaded, and reads their symbols.
290The `share' command is no longer needed. This also works when
291examining core files.
292
293 * set listsize
294
295You can specify the number of lines that the `list' command shows.
296The default is 10.
297
298 * New machines supported (host and target)
299
300SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
301Sony NEWS (68K) running NEWSOS 3.x: m68k-sony-sysv or news
302Ultracomputer (29K) running Sym1: a29k-nyu-sym1 or ultra3
303
304 * New hosts supported (not targets)
305
306IBM RT/PC: romp-ibm-aix or rtpc
307
308 * New targets supported (not hosts)
309
310AMD 29000 embedded with COFF a29k-none-coff
311AMD 29000 embedded with a.out a29k-none-aout
312Ultracomputer remote kernel debug a29k-nyu-kern
313
314 * New remote interfaces
315
316AMD 29000 Adapt
317AMD 29000 Minimon
318
319
320*** Changes in GDB-4.0:
dd3b648e
RP
321
322 * New Facilities
323
81049e47 324Wide output is wrapped at good places to make the output more readable.
dd3b648e
RP
325
326Gdb now supports cross-debugging from a host machine of one type to a
327target machine of another type. Communication with the target system
328is over serial lines. The ``target'' command handles connecting to the
329remote system; the ``load'' command will download a program into the
81049e47
JG
330remote system. Serial stubs for the m68k and i386 are provided. Gdb
331also supports debugging of realtime processes running under VxWorks,
332using SunRPC Remote Procedure Calls over TCP/IP to talk to a debugger
333stub on the target system.
dd3b648e
RP
334
335New CPUs supported include the AMD 29000 and Intel 960.
336
337GDB now reads object files and symbol tables via a ``binary file''
338library, which allows a single copy of GDB to debug programs of multiple
339object file types such as a.out and coff.
340
d7c2f2dd
RP
341There is now a GDB reference card in "doc/refcard.tex". (Make targets
342refcard.dvi and refcard.ps are available to format it).
dd3b648e
RP
343
344
345 * Control-Variable user interface simplified
346
347All variables that control the operation of the debugger can be set
348by the ``set'' command, and displayed by the ``show'' command.
349
350For example, ``set prompt new-gdb=>'' will change your prompt to new-gdb=>.
351``Show prompt'' produces the response:
352Gdb's prompt is new-gdb=>.
353
354What follows are the NEW set commands. The command ``help set'' will
355print a complete list of old and new set commands. ``help set FOO''
adf2bb58
JG
356will give a longer description of the variable FOO. ``show'' will show
357all of the variable descriptions and their current settings.
dd3b648e 358
a1002e9a 359confirm on/off: Enables warning questions for operations that are
dd3b648e
RP
360 hard to recover from, e.g. rerunning the program while
361 it is already running. Default is ON.
362
363editing on/off: Enables EMACS style command line editing
364 of input. Previous lines can be recalled with
365 control-P, the current line can be edited with control-B,
366 you can search for commands with control-R, etc.
367 Default is ON.
368
369history filename NAME: NAME is where the gdb command history
370 will be stored. The default is .gdb_history,
371 or the value of the environment variable
372 GDBHISTFILE.
373
374history size N: The size, in commands, of the command history. The
375 default is 256, or the value of the environment variable
376 HISTSIZE.
377
90262bf9 378history save on/off: If this value is set to ON, the history file will
dd3b648e
RP
379 be saved after exiting gdb. If set to OFF, the
380 file will not be saved. The default is OFF.
381
382history expansion on/off: If this value is set to ON, then csh-like
383 history expansion will be performed on
384 command line input. The default is OFF.
385
386radix N: Sets the default radix for input and output. It can be set
387 to 8, 10, or 16. Note that the argument to "radix" is interpreted
388 in the current radix, so "set radix 10" is always a no-op.
389
adf2bb58
JG
390height N: This integer value is the number of lines on a page. Default
391 is 24, the current `stty rows'' setting, or the ``li#''
392 setting from the termcap entry matching the environment
393 variable TERM.
dd3b648e 394
adf2bb58
JG
395width N: This integer value is the number of characters on a line.
396 Default is 80, the current `stty cols'' setting, or the ``co#''
397 setting from the termcap entry matching the environment
398 variable TERM.
dd3b648e 399
a1002e9a
JK
400Note: ``set screensize'' is obsolete. Use ``set height'' and
401``set width'' instead.
dd3b648e 402
a1002e9a 403print address on/off: Print memory addresses in various command displays,
dd3b648e
RP
404 such as stack traces and structure values. Gdb looks
405 more ``symbolic'' if you turn this off; it looks more
406 ``machine level'' with it on. Default is ON.
407
a1002e9a 408print array on/off: Prettyprint arrays. New convenient format! Default
dd3b648e
RP
409 is OFF.
410
a1002e9a
JK
411print demangle on/off: Print C++ symbols in "source" form if on,
412 "raw" form if off.
dd3b648e 413
a1002e9a
JK
414print asm-demangle on/off: Same, for assembler level printouts
415 like instructions.
dd3b648e 416
a1002e9a 417print vtbl on/off: Prettyprint C++ virtual function tables. Default is OFF.
dd3b648e
RP
418
419
420 * Support for Epoch Environment.
421
422The epoch environment is a version of Emacs v18 with windowing. One
423new command, ``inspect'', is identical to ``print'', except that if you
424are running in the epoch environment, the value is printed in its own
425window.
426
427
428 * Support for Shared Libraries
429
430GDB can now debug programs and core files that use SunOS shared libraries.
431Symbols from a shared library cannot be referenced
432before the shared library has been linked with the program (this
433happens after you type ``run'' and before the function main() is entered).
434At any time after this linking (including when examining core files
435from dynamically linked programs), gdb reads the symbols from each
436shared library when you type the ``sharedlibrary'' command.
437It can be abbreviated ``share''.
438
439sharedlibrary REGEXP: Load shared object library symbols for files
440 matching a unix regular expression. No argument
441 indicates to load symbols for all shared libraries.
442
443info sharedlibrary: Status of loaded shared libraries.
444
445
446 * Watchpoints
447
448A watchpoint stops execution of a program whenever the value of an
449expression changes. Checking for this slows down execution
450tremendously whenever you are in the scope of the expression, but is
451quite useful for catching tough ``bit-spreader'' or pointer misuse
452problems. Some machines such as the 386 have hardware for doing this
453more quickly, and future versions of gdb will use this hardware.
454
455watch EXP: Set a watchpoint (breakpoint) for an expression.
456
457info watchpoints: Information about your watchpoints.
458
459delete N: Deletes watchpoint number N (same as breakpoints).
460disable N: Temporarily turns off watchpoint number N (same as breakpoints).
461enable N: Re-enables watchpoint number N (same as breakpoints).
462
463
464 * C++ multiple inheritance
465
466When used with a GCC version 2 compiler, GDB supports multiple inheritance
467for C++ programs.
468
469 * C++ exception handling
470
471Gdb now supports limited C++ exception handling. Besides the existing
472ability to breakpoint on an exception handler, gdb can breakpoint on
473the raising of an exception (before the stack is peeled back to the
474handler's context).
475
476catch FOO: If there is a FOO exception handler in the dynamic scope,
477 set a breakpoint to catch exceptions which may be raised there.
478 Multiple exceptions (``catch foo bar baz'') may be caught.
479
480info catch: Lists all exceptions which may be caught in the
481 current stack frame.
482
483
484 * Minor command changes
485
486The command ``call func (arg, arg, ...)'' now acts like the print
487command, except it does not print or save a value if the function's result
488is void. This is similar to dbx usage.
489
490The ``up'' and ``down'' commands now always print the frame they end up
491at; ``up-silently'' and `down-silently'' can be used in scripts to change
492frames without printing.
493
494 * New directory command
495
496'dir' now adds directories to the FRONT of the source search path.
497The path starts off empty. Source files that contain debug information
498about the directory in which they were compiled can be found even
adf2bb58
JG
499with an empty path; Sun CC and GCC include this information. If GDB can't
500find your source file in the current directory, type "dir .".
dd3b648e
RP
501
502 * Configuring GDB for compilation
503
adf2bb58
JG
504For normal use, type ``./configure host''. See README or gdb.texinfo
505for more details.
dd3b648e
RP
506
507GDB now handles cross debugging. If you are remotely debugging between
adf2bb58 508two different machines, type ``./configure host -target=targ''.
75c86b57 509Host is the machine where GDB will run; targ is the machine
dd3b648e 510where the program that you are debugging will run.
This page took 0.074912 seconds and 4 git commands to generate.