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