* command.c (shell_escape, make_command, _initialze_command):
[deliverable/binutils-gdb.git] / gdb / NEWS
CommitLineData
3ddcdc59
SG
1 What has changed since GDB-3.5?
2 (Organized release by release)
3
76ba9b5b
SG
4*** Changes in GDB-4.7:
5
c00d8242
JG
6 * Host/native/target split
7
8GDB has had some major internal surgery to untangle the support for
9hosts and remote targets. Now, when you configure GDB for a remote
10target, it will no longer load in all of the support for debugging
11local programs on the host. When fully completed and tested, this will
12ensure that arbitrary host/target combinations are possible.
13
14The primary conceptual shift is to separate the non-portable code in
15GDB into three categories. Host specific code is required any time GDB
16is compiled on that host, regardless of the target. Target specific
17code relates to the peculiarities of the target, but can be compiled on
18any host. Native specific code is everything else: it can only be
19built when the host and target are the same system. Child process
20handling and core file support are two common `native' examples.
21
22GDB's use of /proc for controlling Unix child processes is now cleaner.
23It has been split out into a single module under the `target_ops' vector,
24plus two native-dependent functions for each system that uses /proc.
25
26 * New hosts supported
27
28HP/Apollo 68k (under the BSD domain) m68k-apollo-bsd or apollo68bsd
29386 CPUs running various BSD ports i386-unknown-bsd or 386bsd
30386 CPUs running SCO Unix i386-unknown-scosysv322 or i386sco
31
32 * New targets supported
76ba9b5b 33
c00d8242
JG
34Fujitsu SPARClite sparclite-fujitsu-none or sparclite
3568030 and CPU32 m68030-*-*, m68332-*-*
5f5be54c 36
c00d8242 37 * New native hosts supported
5f5be54c 38
c00d8242
JG
39386 CPUs running various BSD ports i386-unknown-bsd or 386bsd
40 (386bsd is not well tested yet)
41386 CPUs running SCO Unix i386-unknown-scosysv322 or sco
5f5be54c 42
c00d8242 43 * New file formats supported
5f5be54c 44
c00d8242
JG
45BFD now supports COFF files for the Zilog Z8000 microprocessor. It
46supports reading of `a.out.adobe' object files, which are an a.out
47format extended with minimal information about multiple sections.
5f5be54c 48
c00d8242 49 * New commands
5f5be54c 50
c00d8242
JG
51`show copying' is the same as the old `info copying'.
52`show warranty' is the same as `info warrantee'.
53These were renamed for consistency. The old commands continue to work.
5f5be54c 54
c00d8242 55`info handle' is a new alias for `info signals'.
5f5be54c 56
c00d8242
JG
57You can now define pre-command hooks, which attach arbitrary command
58scripts to any command. The commands in the hook will be executed
59prior to the user's command. You can also create a hook which will be
60executed whenever the program stops. See gdb.texinfo.
61
62 * C++ improvements
63
64We now deal with Cfront style name mangling, and can even extract type
65info from mangled symbols. GDB can automatically figure out which
66symbol mangling style your C++ compiler uses.
67
68Calling of methods and virtual functions has been improved as well.
5f5be54c
SG
69
70 * Major bug fixes
71
c00d8242
JG
72The crash that occured when debugging Sun Ansi-C compiled binaries is
73fixed. This was due to mishandling of the extra N_SO stabs output
74by the compiler.
5f5be54c 75
c00d8242
JG
76We also finally got Ultrix 4.2 running in house, and fixed core file
77support, with help from a dozen people on the net.
78
79John M. Farrell discovered that the reason that single-stepping was so
80slow on all of the Mips based platforms (primarily SGI and DEC) was
81that we were trying to demangle and lookup a symbol used for internal
82purposes on every instruction that was being stepped through. Changing
83the name of that symbol so that it couldn't be mistaken for a C++
84mangled symbol sped things up a great deal.
85
86Rich Pixley sped up symbol lookups in general by getting much smarter
87about when C++ symbol mangling is necessary. This should make symbol
88completion (TAB on the command line) much faster. It's not as fast as
89we'd like, but it's significantly faster than gdb-4.6.
90
91 * AMD 29k support
5f5be54c 92
c00d8242
JG
93A new user controllable variable 'call_scratch_address' can
94specify the location of a scratch area to be used when GDB
95calls a function in the target. This is necessary because the
96usual method of putting the scratch area on the stack does not work
97in systems that have separate instruction and data spaces.
98
99We integrated changes to support the 29k UDI (Universal Debugger
100Interface), but discovered at the last minute that we didn't have all
101of the appropriate copyright paperwork. We are working with AMD to
102resolve this, and hope to have it available soon.
103
104 * Remote interfaces
105
106We have sped up the remote serial line protocol, especially for targets
107with lots of registers. It now supports a new `expedited status' ('T')
108message which can be used in place of the existing 'S' status message.
109This allows the remote stub to send only the registers that GDB
110needs to make a quick decision about single-stepping or conditional
111breakpoints, eliminating the need to fetch the entire register set for
112each instruction being stepped through.
113
114The GDB remote serial protocol now implements a write-through cache for
115registers, only re-reading the registers if the target has run.
116
117There is also a new remote serial stub for SPARC processors. You can
118find it in gdb-4.7/gdb/sparc-stub.c. This was written to support the
119Fujitsu SPARClite processor, but will run on any stand-alone SPARC
120processor with a serial port.
121
122 * Configuration
123
124Configure.in files have become much easier to read and modify. A new
125`table driven' format makes it more obvious what configurations are
126supported, and what files each one uses.
127
128 * Library changes
129
130There is a new opcodes library which will eventually contain all of the
131disassembly routines and opcode tables. At present, it only contains
132Sparc and Z8000 routines. This will allow the assembler, debugger, and
133disassembler (binutils/objdump) to share these routines.
134
135The libiberty library is now copylefted under the GNU Library General
136Public License. This allows more liberal use, and was done so libg++
137can use it. This makes no difference to GDB, since the Library License
138grants all the rights from the General Public License.
139
140 * Documentation
141
142The file gdb-4.7/gdb/doc/stabs.texinfo is a (relatively) complete
143reference to the stabs symbol info used by the debugger. It is (as far
144as we know) the only published document on this fascinating topic. We
145encourage you to read it, compare it to the stabs information on your
146system, and send improvements on the document in general (to
147bug-gdb@prep.ai.mit.edu).
5f5be54c
SG
148
149And, of course, many bugs have been fixed.
76ba9b5b 150
c00d8242 151
3ddcdc59
SG
152*** Changes in GDB-4.6:
153
154 * Better support for C++ function names
155
156GDB now accepts as input the "demangled form" of C++ overloaded function
157names and member function names, and can do command completion on such names
158(using TAB, TAB-TAB, and ESC-?). The names have to be quoted with a pair of
159single quotes. Examples are 'func (int, long)' and 'obj::operator==(obj&)'.
160Make use of command completion, it is your friend.
161
162GDB also now accepts a variety of C++ mangled symbol formats. They are
163the GNU g++ style, the Cfront (ARM) style, and the Lucid (lcc) style.
164You can tell GDB which format to use by doing a 'set demangle-style {gnu,
165lucid, cfront, auto}'. 'gnu' is the default. Do a 'set demangle-style foo'
166for the list of formats.
167
168 * G++ symbol mangling problem
169
170Recent versions of gcc have a bug in how they emit debugging information for
171C++ methods (when using dbx-style stabs). The file 'gcc.patch' (in this
172directory) can be applied to gcc to fix the problem. Alternatively, if you
173can't fix gcc, you can #define GCC_MANGLE_BUG when compling gdb/symtab.c. The
174usual symptom is difficulty with setting breakpoints on methods. GDB complains
175about the method being non-existent. (We believe that version 2.2.2 of GCC has
176this problem.)
177
178 * New 'maintenance' command
179
180All of the commands related to hacking GDB internals have been moved out of
181the main command set, and now live behind the 'maintenance' command. This
182can also be abbreviated as 'mt'. The following changes were made:
183
184 dump-me -> maintenance dump-me
185 info all-breakpoints -> maintenance info breakpoints
186 printmsyms -> maintenance print msyms
187 printobjfiles -> maintenance print objfiles
188 printpsyms -> maintenance print psymbols
189 printsyms -> maintenance print symbols
190
191The following commands are new:
192
193 maintenance demangle Call internal GDB demangler routine to
194 demangle a C++ link name and prints the result.
195 maintenance print type Print a type chain for a given symbol
196
197 * Change to .gdbinit file processing
198
199We now read the $HOME/.gdbinit file before processing the argv arguments
200(e.g. reading symbol files or core files). This allows global parameters to
201be set, which will apply during the symbol reading. The ./.gdbinit is still
202read after argv processing.
203
204 * New hosts supported
205
206Solaris-2.0 !!! sparc-sun-solaris2 or sun4sol2
207
208Linux support i386-unknown-linux or linux
209
210We are also including code to support the HP/PA running BSD and HPUX. This
211is almost guaranteed not to work, as we didn't have time to test or build it
212for this release. We are including it so that the more adventurous (or
213masochistic) of you can play with it. We also had major problems with the
214fact that the compiler that we got from HP doesn't support the -g option.
215It costs extra.
216
217 * New targets supported
218
219Hitachi H8/300 h8300-hitachi-hms or h8300hms
220
221 * More smarts about finding #include files
222
223GDB now remembers the compilation directory for all include files, and for
224all files from which C is generated (like yacc and lex sources). This
225greatly improves GDB's ability to find yacc/lex sources, and include files,
226especially if you are debugging your program from a directory different from
227the one that contains your sources.
228
229We also fixed a bug which caused difficulty with listing and setting
230breakpoints in include files which contain C code. (In the past, you had to
231try twice in order to list an include file that you hadn't looked at before.)
232
233 * Interesting infernals change
234
235GDB now deals with arbitrary numbers of sections, where the symbols for each
236section must be relocated relative to that section's landing place in the
237target's address space. This work was needed to support ELF with embedded
238stabs used by Solaris-2.0.
239
240 * Bug fixes (of course!)
241
242There have been loads of fixes for the following things:
243 mips, rs6000, 29k/udi, m68k, g++, type handling, elf/dwarf, m88k,
244 i960, stabs, DOS(GO32), procfs, etc...
245
246See the ChangeLog for details.
247
248*** Changes in GDB-4.5:
249
250 * New machines supported (host and target)
251
252IBM RS6000 running AIX rs6000-ibm-aix or rs6000
253
254SGI Irix-4.x mips-sgi-irix4 or iris4
255
256 * New malloc package
257
258GDB now uses a new memory manager called mmalloc, based on gmalloc.
259Mmalloc is capable of handling mutiple heaps of memory. It is also
260capable of saving a heap to a file, and then mapping it back in later.
261This can be used to greatly speedup the startup of GDB by using a
262pre-parsed symbol table which lives in a mmalloc managed heap. For
263more details, please read mmalloc/mmalloc.texi.
264
265 * info proc
266
267The 'info proc' command (SVR4 only) has been enhanced quite a bit. See
268'help info proc' for details.
269
270 * MIPS ecoff symbol table format
271
272The code that reads MIPS symbol table format is now supported on all hosts.
273Thanks to MIPS for releasing the sym.h and symconst.h files to make this
274possible.
275
276 * File name changes for MS-DOS
277
278Many files in the config directories have been renamed to make it easier to
279support GDB on MS-DOSe systems (which have very restrictive file name
280conventions :-( ). MS-DOSe host support (under DJ Delorie's GO32
281environment) is close to working but has some remaining problems. Note
282that debugging of DOS programs is not supported, due to limitations
283in the ``operating system'', but it can be used to host cross-debugging.
284
285 * Cross byte order fixes
286
287Many fixes have been made to support cross debugging of Sparc and MIPS
288targets from hosts whose byte order differs.
289
290 * New -mapped and -readnow options
291
292If memory-mapped files are available on your system through the 'mmap'
293system call, you can use the -mapped option on the `file' or
294`symbol-file' commands to cause GDB to write the symbols from your
295program into a reusable file. If the program you are debugging is
296called `/path/fred', the mapped symbol file will be `./fred.syms'.
297Future GDB debugging sessions will notice the presence of this file,
298and will quickly map in symbol information from it, rather than reading
299the symbol table from the executable program. Using the '-mapped'
300option in a GDB `file' or `symbol-file' command has the same effect as
301starting GDB with the '-mapped' command-line option.
302
303You can cause GDB to read the entire symbol table immediately by using
304the '-readnow' option with any of the commands that load symbol table
305information (or on the GDB command line). This makes the command
306slower, but makes future operations faster.
307
308The -mapped and -readnow options are typically combined in order to
309build a `fred.syms' file that contains complete symbol information.
310A simple GDB invocation to do nothing but build a `.syms' file for future
311use is:
312
313 gdb -batch -nx -mapped -readnow programname
314
315The `.syms' file is specific to the host machine on which GDB is run.
316It holds an exact image of GDB's internal symbol table. It cannot be
317shared across multiple host platforms.
318
319 * longjmp() handling
320
321GDB is now capable of stepping and nexting over longjmp(), _longjmp(), and
322siglongjmp() without losing control. This feature has not yet been ported to
323all systems. It currently works on many 386 platforms, all MIPS-based
324platforms (SGI, DECstation, etc), and Sun3/4.
325
326 * Solaris 2.0
327
328Preliminary work has been put in to support the new Solaris OS from Sun. At
329this time, it can control and debug processes, but it is not capable of
330reading symbols.
331
332 * Bug fixes
333
334As always, many many bug fixes. The major areas were with g++, and mipsread.
335People using the MIPS-based platforms should experience fewer mysterious
336crashes and trashed symbol tables.
337
338*** Changes in GDB-4.4:
339
340 * New machines supported (host and target)
341
342SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
343 (except core files)
344BSD Reno on Vax vax-dec-bsd
345Ultrix on Vax vax-dec-ultrix
346
347 * New machines supported (target)
348
349AMD 29000 embedded, using EBMON a29k-none-none
350
351 * C++ support
352
353GDB continues to improve its handling of C++. `References' work better.
354The demangler has also been improved, and now deals with symbols mangled as
355per the Annotated C++ Reference Guide.
356
357GDB also now handles `stabs' symbol information embedded in MIPS
358`ecoff' symbol tables. Since the ecoff format was not easily
359extensible to handle new languages such as C++, this appeared to be a
360good way to put C++ debugging info into MIPS binaries. This option
361will be supported in the GNU C compiler, version 2, when it is
362released.
363
364 * New features for SVR4
365
366GDB now handles SVR4 shared libraries, in the same fashion as SunOS
367shared libraries. Debugging dynamically linked programs should present
368only minor differences from debugging statically linked programs.
369
370The `info proc' command will print out information about any process
371on an SVR4 system (including the one you are debugging). At the moment,
372it prints the address mappings of the process.
373
374If you bring up GDB on another SVR4 system, please send mail to
375bug-gdb@prep.ai.mit.edu to let us know what changes were reqired (if any).
376
377 * Better dynamic linking support in SunOS
378
379Reading symbols from shared libraries which contain debugging symbols
380now works properly. However, there remain issues such as automatic
381skipping of `transfer vector' code during function calls, which
382make it harder to debug code in a shared library, than to debug the
383same code linked statically.
384
385 * New Getopt
386
387GDB is now using the latest `getopt' routines from the FSF. This
388version accepts the -- prefix for options with long names. GDB will
389continue to accept the old forms (-option and +option) as well.
390Various single letter abbreviations for options have been explicity
391added to the option table so that they won't get overshadowed in the
392future by other options that begin with the same letter.
393
394 * Bugs fixed
395
396The `cleanup_undefined_types' bug that many of you noticed has been squashed.
397Many assorted bugs have been handled. Many more remain to be handled.
398See the various ChangeLog files (primarily in gdb and bfd) for details.
399
400
401*** Changes in GDB-4.3:
402
403 * New machines supported (host and target)
404
405Amiga 3000 running Amix m68k-cbm-svr4 or amix
406NCR 3000 386 running SVR4 i386-ncr-svr4 or ncr3000
407Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
408
409 * Almost SCO Unix support
410
411We had hoped to support:
412SCO Unix on i386 IBM PC clones i386-sco-sysv or i386sco
413(except for core file support), but we discovered very late in the release
414that it has problems with process groups that render gdb unusable. Sorry
415about that. I encourage people to fix it and post the fixes.
416
417 * Preliminary ELF and DWARF support
418
419GDB can read ELF object files on System V Release 4, and can handle
420debugging records for C, in DWARF format, in ELF files. This support
421is preliminary. If you bring up GDB on another SVR4 system, please
422send mail to bug-gdb@prep.ai.mit.edu to let us know what changes were
423reqired (if any).
424
425 * New Readline
426
427GDB now uses the latest `readline' library. One user-visible change
428is that two tabs will list possible command completions, which previously
429required typing M-? (meta-question mark, or ESC ?).
430
431 * Bugs fixed
432
433The `stepi' bug that many of you noticed has been squashed.
434Many bugs in C++ have been handled. Many more remain to be handled.
435See the various ChangeLog files (primarily in gdb and bfd) for details.
436
437 * State of the MIPS world (in case you wondered):
438
439GDB can understand the symbol tables emitted by the compilers
440supplied by most vendors of MIPS-based machines, including DEC. These
441symbol tables are in a format that essentially nobody else uses.
442
443Some versions of gcc come with an assembler post-processor called
444mips-tfile. This program is required if you want to do source-level
445debugging of gcc-compiled programs. I believe FSF does not ship
446mips-tfile with gcc version 1, but it will eventually come with gcc
447version 2.
448
449Debugging of g++ output remains a problem. g++ version 1.xx does not
450really support it at all. (If you're lucky, you should be able to get
451line numbers and stack traces to work, but no parameters or local
452variables.) With some work it should be possible to improve the
453situation somewhat.
454
455When gcc version 2 is released, you will have somewhat better luck.
456However, even then you will get confusing results for inheritance and
457methods.
458
459We will eventually provide full debugging of g++ output on
460DECstations. This will probably involve some kind of stabs-in-ecoff
461encapulation, but the details have not been worked out yet.
462
463
464*** Changes in GDB-4.2:
465
466 * Improved configuration
467
468Only one copy of `configure' exists now, and it is not self-modifying.
469Porting BFD is simpler.
470
471 * Stepping improved
472
473The `step' and `next' commands now only stop at the first instruction
474of a source line. This prevents the multiple stops that used to occur
475in switch statements, for-loops, etc. `Step' continues to stop if a
476function that has debugging information is called within the line.
477
478 * Bug fixing
479
480Lots of small bugs fixed. More remain.
481
482 * New host supported (not target)
483
484Intel 386 PC clone running Mach i386-none-mach
485
486
487*** Changes in GDB-4.1:
488
489 * Multiple source language support
490
491GDB now has internal scaffolding to handle several source languages.
492It determines the type of each source file from its filename extension,
493and will switch expression parsing and number formatting to match the
494language of the function in the currently selected stack frame.
495You can also specifically set the language to be used, with
496`set language c' or `set language modula-2'.
497
498 * GDB and Modula-2
499
500GDB now has preliminary support for the GNU Modula-2 compiler,
501currently under development at the State University of New York at
502Buffalo. Development of both GDB and the GNU Modula-2 compiler will
503continue through the fall of 1991 and into 1992.
504
505Other Modula-2 compilers are currently not supported, and attempting to
506debug programs compiled with them will likely result in an error as the
507symbol table is read. Feel free to work on it, though!
508
509There are hooks in GDB for strict type checking and range checking,
510in the `Modula-2 philosophy', but they do not currently work.
511
512 * set write on/off
513
514GDB can now write to executable and core files (e.g. patch
515a variable's value). You must turn this switch on, specify
516the file ("exec foo" or "core foo"), *then* modify it, e.g.
517by assigning a new value to a variable. Modifications take
518effect immediately.
519
520 * Automatic SunOS shared library reading
521
522When you run your program, GDB automatically determines where its
523shared libraries (if any) have been loaded, and reads their symbols.
524The `share' command is no longer needed. This also works when
525examining core files.
526
527 * set listsize
528
529You can specify the number of lines that the `list' command shows.
530The default is 10.
531
532 * New machines supported (host and target)
533
534SGI Iris (MIPS) running Irix V3: mips-sgi-irix or iris
535Sony NEWS (68K) running NEWSOS 3.x: m68k-sony-sysv or news
536Ultracomputer (29K) running Sym1: a29k-nyu-sym1 or ultra3
537
538 * New hosts supported (not targets)
539
540IBM RT/PC: romp-ibm-aix or rtpc
541
542 * New targets supported (not hosts)
543
544AMD 29000 embedded with COFF a29k-none-coff
545AMD 29000 embedded with a.out a29k-none-aout
546Ultracomputer remote kernel debug a29k-nyu-kern
547
548 * New remote interfaces
549
550AMD 29000 Adapt
551AMD 29000 Minimon
552
553
554*** Changes in GDB-4.0:
555
556 * New Facilities
557
558Wide output is wrapped at good places to make the output more readable.
559
560Gdb now supports cross-debugging from a host machine of one type to a
561target machine of another type. Communication with the target system
562is over serial lines. The ``target'' command handles connecting to the
563remote system; the ``load'' command will download a program into the
564remote system. Serial stubs for the m68k and i386 are provided. Gdb
565also supports debugging of realtime processes running under VxWorks,
566using SunRPC Remote Procedure Calls over TCP/IP to talk to a debugger
567stub on the target system.
568
569New CPUs supported include the AMD 29000 and Intel 960.
570
571GDB now reads object files and symbol tables via a ``binary file''
572library, which allows a single copy of GDB to debug programs of multiple
573object file types such as a.out and coff.
574
575There is now a GDB reference card in "doc/refcard.tex". (Make targets
576refcard.dvi and refcard.ps are available to format it).
577
578
579 * Control-Variable user interface simplified
580
581All variables that control the operation of the debugger can be set
582by the ``set'' command, and displayed by the ``show'' command.
583
584For example, ``set prompt new-gdb=>'' will change your prompt to new-gdb=>.
585``Show prompt'' produces the response:
586Gdb's prompt is new-gdb=>.
587
588What follows are the NEW set commands. The command ``help set'' will
589print a complete list of old and new set commands. ``help set FOO''
590will give a longer description of the variable FOO. ``show'' will show
591all of the variable descriptions and their current settings.
592
593confirm on/off: Enables warning questions for operations that are
594 hard to recover from, e.g. rerunning the program while
595 it is already running. Default is ON.
596
597editing on/off: Enables EMACS style command line editing
598 of input. Previous lines can be recalled with
599 control-P, the current line can be edited with control-B,
600 you can search for commands with control-R, etc.
601 Default is ON.
602
603history filename NAME: NAME is where the gdb command history
604 will be stored. The default is .gdb_history,
605 or the value of the environment variable
606 GDBHISTFILE.
607
608history size N: The size, in commands, of the command history. The
609 default is 256, or the value of the environment variable
610 HISTSIZE.
611
612history save on/off: If this value is set to ON, the history file will
613 be saved after exiting gdb. If set to OFF, the
614 file will not be saved. The default is OFF.
615
616history expansion on/off: If this value is set to ON, then csh-like
617 history expansion will be performed on
618 command line input. The default is OFF.
619
620radix N: Sets the default radix for input and output. It can be set
621 to 8, 10, or 16. Note that the argument to "radix" is interpreted
622 in the current radix, so "set radix 10" is always a no-op.
623
624height N: This integer value is the number of lines on a page. Default
625 is 24, the current `stty rows'' setting, or the ``li#''
626 setting from the termcap entry matching the environment
627 variable TERM.
628
629width N: This integer value is the number of characters on a line.
630 Default is 80, the current `stty cols'' setting, or the ``co#''
631 setting from the termcap entry matching the environment
632 variable TERM.
633
634Note: ``set screensize'' is obsolete. Use ``set height'' and
635``set width'' instead.
636
637print address on/off: Print memory addresses in various command displays,
638 such as stack traces and structure values. Gdb looks
639 more ``symbolic'' if you turn this off; it looks more
640 ``machine level'' with it on. Default is ON.
641
642print array on/off: Prettyprint arrays. New convenient format! Default
643 is OFF.
644
645print demangle on/off: Print C++ symbols in "source" form if on,
646 "raw" form if off.
647
648print asm-demangle on/off: Same, for assembler level printouts
649 like instructions.
650
651print vtbl on/off: Prettyprint C++ virtual function tables. Default is OFF.
652
653
654 * Support for Epoch Environment.
655
656The epoch environment is a version of Emacs v18 with windowing. One
657new command, ``inspect'', is identical to ``print'', except that if you
658are running in the epoch environment, the value is printed in its own
659window.
660
661
662 * Support for Shared Libraries
663
664GDB can now debug programs and core files that use SunOS shared libraries.
665Symbols from a shared library cannot be referenced
666before the shared library has been linked with the program (this
667happens after you type ``run'' and before the function main() is entered).
668At any time after this linking (including when examining core files
669from dynamically linked programs), gdb reads the symbols from each
670shared library when you type the ``sharedlibrary'' command.
671It can be abbreviated ``share''.
672
673sharedlibrary REGEXP: Load shared object library symbols for files
674 matching a unix regular expression. No argument
675 indicates to load symbols for all shared libraries.
676
677info sharedlibrary: Status of loaded shared libraries.
678
679
680 * Watchpoints
681
682A watchpoint stops execution of a program whenever the value of an
683expression changes. Checking for this slows down execution
684tremendously whenever you are in the scope of the expression, but is
685quite useful for catching tough ``bit-spreader'' or pointer misuse
686problems. Some machines such as the 386 have hardware for doing this
687more quickly, and future versions of gdb will use this hardware.
688
689watch EXP: Set a watchpoint (breakpoint) for an expression.
690
691info watchpoints: Information about your watchpoints.
692
693delete N: Deletes watchpoint number N (same as breakpoints).
694disable N: Temporarily turns off watchpoint number N (same as breakpoints).
695enable N: Re-enables watchpoint number N (same as breakpoints).
696
697
698 * C++ multiple inheritance
699
700When used with a GCC version 2 compiler, GDB supports multiple inheritance
701for C++ programs.
702
703 * C++ exception handling
704
705Gdb now supports limited C++ exception handling. Besides the existing
706ability to breakpoint on an exception handler, gdb can breakpoint on
707the raising of an exception (before the stack is peeled back to the
708handler's context).
709
710catch FOO: If there is a FOO exception handler in the dynamic scope,
711 set a breakpoint to catch exceptions which may be raised there.
712 Multiple exceptions (``catch foo bar baz'') may be caught.
713
714info catch: Lists all exceptions which may be caught in the
715 current stack frame.
716
717
718 * Minor command changes
719
720The command ``call func (arg, arg, ...)'' now acts like the print
721command, except it does not print or save a value if the function's result
722is void. This is similar to dbx usage.
723
724The ``up'' and ``down'' commands now always print the frame they end up
725at; ``up-silently'' and `down-silently'' can be used in scripts to change
726frames without printing.
727
728 * New directory command
729
730'dir' now adds directories to the FRONT of the source search path.
731The path starts off empty. Source files that contain debug information
732about the directory in which they were compiled can be found even
733with an empty path; Sun CC and GCC include this information. If GDB can't
734find your source file in the current directory, type "dir .".
735
736 * Configuring GDB for compilation
737
738For normal use, type ``./configure host''. See README or gdb.texinfo
739for more details.
740
741GDB now handles cross debugging. If you are remotely debugging between
742two different machines, type ``./configure host -target=targ''.
743Host is the machine where GDB will run; targ is the machine
744where the program that you are debugging will run.
This page took 0.062057 seconds and 4 git commands to generate.