Desupport i386sco, and mention the new readline.
[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
fbda4193
JG
4*** Changes in GDB-4.3:
5
6 * New machines supported (host and target)
7
fbda4193
JG
8Amiga 3000 running Amix m68k-cbm-svr4 or amix
9NCR 3000 386 running SVR4 i386-ncr-svr4 or ncr3000
10Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
11
4882e5dc
JG
12 * Almost SCO Unix support
13
14We had hoped to support:
15SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
16(except for core file support), but we discovered very late in the release
17that it has problems with process groups that render gdb unusable. Sorry
18about that. I encourage people to fix it and post the fixes.
fbda4193
JG
19
20 * Preliminary ELF and DWARF support
21
22GDB can read ELF object files on System V Release 4, and can handle
23debugging records for C, in DWARF format, in ELF files. This support
24is preliminary. If you bring up GDB on another SVR4 system, please
25send mail to bug-gdb@prep.ai.mit.edu to let us know what changes were
26reqired (if any).
27
4882e5dc
JG
28 * New Readline
29
30GDB now uses the latest `readline' library. One user-visible change
31is that two tabs will list possible command completions, which previously
32required typing M-? (meta-question mark, or ESC ?).
33
fbda4193
JG
34 * Bugs fixed
35
36The `stepi' bug that many of you noticed has been squashed.
37Many bugs in C++ have been handled. Many more remain to be handled.
38See the various ChangeLog files (primarily in gdb and bfd) for details.
39
40 * State of the MIPS world (in case you wondered):
41
42GDB can understand the symbol tables emitted by the compilers
43supplied by most vendors of MIPS-based machines, including DEC. These
44symbol tables are in a format that essentially nobody else uses.
45
46Some versions of gcc come with an assembler post-processor called
47mips-tfile. This program is required if you want to do source-level
48debugging of gcc-compiled programs. I believe FSF does not ship
49mips-tfile with gcc version 1, but it will eventually come with gcc
50version 2.
51
52Debugging of g++ output remains a problem. g++ version 1.xx does not
53really support it at all. (If you're lucky, you should be able to get
54line numbers and stack traces to work, but no parameters or local
55variables.) With some work it should be possible to improve the
56situation somewhat.
57
58When gcc version 2 is released, you will have somewhat better luck.
59However, even then you will get confusing results for inheritance and
60methods.
61
62We will eventually provide full debugging of g++ output on
63DECstations. This will probably involve some kind of stabs-in-ecoff
64encapulation, but the details have not been worked out yet.
65
66
b1dcd6ac
JG
67*** Changes in GDB-4.2:
68
69 * Improved configuration
70
71Only one copy of `configure' exists now, and it is not self-modifying.
72Porting BFD is simpler.
73
74 * Stepping improved
75
76The `step' and `next' commands now only stop at the first instruction
77of a source line. This prevents the multiple stops that used to occur
78in switch statements, for-loops, etc. `Step' continues to stop if a
79function that has debugging information is called within the line.
80
81 * Bug fixing
82
83Lots of small bugs fixed. More remain.
84
85 * New host supported (not target)
86
87Intel 386 PC clone running Mach i386-none-mach
88
89
24db5b87
JG
90*** Changes in GDB-4.1:
91
92 * Multiple source language support
93
94GDB now has internal scaffolding to handle several source languages.
95It determines the type of each source file from its filename extension,
96and will switch expression parsing and number formatting to match the
97language of the function in the currently selected stack frame.
98You can also specifically set the language to be used, with
99`set language c' or `set language modula-2'.
94d86c7c
JG
100
101 * GDB and Modula-2
102
103GDB now has preliminary support for the GNU Modula-2 compiler,
104currently under development at the State University of New York at
105Buffalo. Development of both GDB and the GNU Modula-2 compiler will
106continue through the fall of 1991 and into 1992.
107
108Other Modula-2 compilers are currently not supported, and attempting to
109debug programs compiled with them will likely result in an error as the
24db5b87
JG
110symbol table is read. Feel free to work on it, though!
111
112There are hooks in GDB for strict type checking and range checking,
113in the `Modula-2 philosophy', but they do not currently work.
114
115 * set write on/off
116
117GDB can now write to executable and core files (e.g. patch
118a variable's value). You must turn this switch on, specify
119the file ("exec foo" or "core foo"), *then* modify it, e.g.
120by assigning a new value to a variable. Modifications take
121effect immediately.
122
123 * Automatic SunOS shared library reading
124
125When you run your program, GDB automatically determines where its
126shared libraries (if any) have been loaded, and reads their symbols.
127The `share' command is no longer needed. This also works when
128examining core files.
129
130 * set listsize
131
132You can specify the number of lines that the `list' command shows.
133The default is 10.
134
135 * New machines supported (host and target)
136
137SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
138Sony NEWS (68K) running NEWSOS 3.x: m68k-sony-sysv or news
139Ultracomputer (29K) running Sym1: a29k-nyu-sym1 or ultra3
140
141 * New hosts supported (not targets)
142
143IBM RT/PC: romp-ibm-aix or rtpc
144
145 * New targets supported (not hosts)
146
147AMD 29000 embedded with COFF a29k-none-coff
148AMD 29000 embedded with a.out a29k-none-aout
149Ultracomputer remote kernel debug a29k-nyu-kern
150
151 * New remote interfaces
152
153AMD 29000 Adapt
154AMD 29000 Minimon
155
156
157*** Changes in GDB-4.0:
dd3b648e
RP
158
159 * New Facilities
160
81049e47 161Wide output is wrapped at good places to make the output more readable.
dd3b648e
RP
162
163Gdb now supports cross-debugging from a host machine of one type to a
164target machine of another type. Communication with the target system
165is over serial lines. The ``target'' command handles connecting to the
166remote system; the ``load'' command will download a program into the
81049e47
JG
167remote system. Serial stubs for the m68k and i386 are provided. Gdb
168also supports debugging of realtime processes running under VxWorks,
169using SunRPC Remote Procedure Calls over TCP/IP to talk to a debugger
170stub on the target system.
dd3b648e
RP
171
172New CPUs supported include the AMD 29000 and Intel 960.
173
174GDB now reads object files and symbol tables via a ``binary file''
175library, which allows a single copy of GDB to debug programs of multiple
176object file types such as a.out and coff.
177
d7c2f2dd
RP
178There is now a GDB reference card in "doc/refcard.tex". (Make targets
179refcard.dvi and refcard.ps are available to format it).
dd3b648e
RP
180
181
182 * Control-Variable user interface simplified
183
184All variables that control the operation of the debugger can be set
185by the ``set'' command, and displayed by the ``show'' command.
186
187For example, ``set prompt new-gdb=>'' will change your prompt to new-gdb=>.
188``Show prompt'' produces the response:
189Gdb's prompt is new-gdb=>.
190
191What follows are the NEW set commands. The command ``help set'' will
192print a complete list of old and new set commands. ``help set FOO''
adf2bb58
JG
193will give a longer description of the variable FOO. ``show'' will show
194all of the variable descriptions and their current settings.
dd3b648e 195
a1002e9a 196confirm on/off: Enables warning questions for operations that are
dd3b648e
RP
197 hard to recover from, e.g. rerunning the program while
198 it is already running. Default is ON.
199
200editing on/off: Enables EMACS style command line editing
201 of input. Previous lines can be recalled with
202 control-P, the current line can be edited with control-B,
203 you can search for commands with control-R, etc.
204 Default is ON.
205
206history filename NAME: NAME is where the gdb command history
207 will be stored. The default is .gdb_history,
208 or the value of the environment variable
209 GDBHISTFILE.
210
211history size N: The size, in commands, of the command history. The
212 default is 256, or the value of the environment variable
213 HISTSIZE.
214
90262bf9 215history save on/off: If this value is set to ON, the history file will
dd3b648e
RP
216 be saved after exiting gdb. If set to OFF, the
217 file will not be saved. The default is OFF.
218
219history expansion on/off: If this value is set to ON, then csh-like
220 history expansion will be performed on
221 command line input. The default is OFF.
222
223radix N: Sets the default radix for input and output. It can be set
224 to 8, 10, or 16. Note that the argument to "radix" is interpreted
225 in the current radix, so "set radix 10" is always a no-op.
226
adf2bb58
JG
227height N: This integer value is the number of lines on a page. Default
228 is 24, the current `stty rows'' setting, or the ``li#''
229 setting from the termcap entry matching the environment
230 variable TERM.
dd3b648e 231
adf2bb58
JG
232width N: This integer value is the number of characters on a line.
233 Default is 80, the current `stty cols'' setting, or the ``co#''
234 setting from the termcap entry matching the environment
235 variable TERM.
dd3b648e 236
a1002e9a
JK
237Note: ``set screensize'' is obsolete. Use ``set height'' and
238``set width'' instead.
dd3b648e 239
a1002e9a 240print address on/off: Print memory addresses in various command displays,
dd3b648e
RP
241 such as stack traces and structure values. Gdb looks
242 more ``symbolic'' if you turn this off; it looks more
243 ``machine level'' with it on. Default is ON.
244
a1002e9a 245print array on/off: Prettyprint arrays. New convenient format! Default
dd3b648e
RP
246 is OFF.
247
a1002e9a
JK
248print demangle on/off: Print C++ symbols in "source" form if on,
249 "raw" form if off.
dd3b648e 250
a1002e9a
JK
251print asm-demangle on/off: Same, for assembler level printouts
252 like instructions.
dd3b648e 253
a1002e9a 254print vtbl on/off: Prettyprint C++ virtual function tables. Default is OFF.
dd3b648e
RP
255
256
257 * Support for Epoch Environment.
258
259The epoch environment is a version of Emacs v18 with windowing. One
260new command, ``inspect'', is identical to ``print'', except that if you
261are running in the epoch environment, the value is printed in its own
262window.
263
264
265 * Support for Shared Libraries
266
267GDB can now debug programs and core files that use SunOS shared libraries.
268Symbols from a shared library cannot be referenced
269before the shared library has been linked with the program (this
270happens after you type ``run'' and before the function main() is entered).
271At any time after this linking (including when examining core files
272from dynamically linked programs), gdb reads the symbols from each
273shared library when you type the ``sharedlibrary'' command.
274It can be abbreviated ``share''.
275
276sharedlibrary REGEXP: Load shared object library symbols for files
277 matching a unix regular expression. No argument
278 indicates to load symbols for all shared libraries.
279
280info sharedlibrary: Status of loaded shared libraries.
281
282
283 * Watchpoints
284
285A watchpoint stops execution of a program whenever the value of an
286expression changes. Checking for this slows down execution
287tremendously whenever you are in the scope of the expression, but is
288quite useful for catching tough ``bit-spreader'' or pointer misuse
289problems. Some machines such as the 386 have hardware for doing this
290more quickly, and future versions of gdb will use this hardware.
291
292watch EXP: Set a watchpoint (breakpoint) for an expression.
293
294info watchpoints: Information about your watchpoints.
295
296delete N: Deletes watchpoint number N (same as breakpoints).
297disable N: Temporarily turns off watchpoint number N (same as breakpoints).
298enable N: Re-enables watchpoint number N (same as breakpoints).
299
300
301 * C++ multiple inheritance
302
303When used with a GCC version 2 compiler, GDB supports multiple inheritance
304for C++ programs.
305
306 * C++ exception handling
307
308Gdb now supports limited C++ exception handling. Besides the existing
309ability to breakpoint on an exception handler, gdb can breakpoint on
310the raising of an exception (before the stack is peeled back to the
311handler's context).
312
313catch FOO: If there is a FOO exception handler in the dynamic scope,
314 set a breakpoint to catch exceptions which may be raised there.
315 Multiple exceptions (``catch foo bar baz'') may be caught.
316
317info catch: Lists all exceptions which may be caught in the
318 current stack frame.
319
320
321 * Minor command changes
322
323The command ``call func (arg, arg, ...)'' now acts like the print
324command, except it does not print or save a value if the function's result
325is void. This is similar to dbx usage.
326
327The ``up'' and ``down'' commands now always print the frame they end up
328at; ``up-silently'' and `down-silently'' can be used in scripts to change
329frames without printing.
330
331 * New directory command
332
333'dir' now adds directories to the FRONT of the source search path.
334The path starts off empty. Source files that contain debug information
335about the directory in which they were compiled can be found even
adf2bb58
JG
336with an empty path; Sun CC and GCC include this information. If GDB can't
337find your source file in the current directory, type "dir .".
dd3b648e
RP
338
339 * Configuring GDB for compilation
340
adf2bb58
JG
341For normal use, type ``./configure host''. See README or gdb.texinfo
342for more details.
dd3b648e
RP
343
344GDB now handles cross debugging. If you are remotely debugging between
adf2bb58
JG
345two different machines, type ``./configure host -target=targ''.
346Host is the machine where gdb will run; targ is the machine
dd3b648e 347where the program that you are debugging will run.
This page took 0.054467 seconds and 4 git commands to generate.