Commit graph

642 commits

Author SHA1 Message Date
K. Richard Pixley
02f25e46a6 fixed for objdir/subdirs 1991-11-08 00:54:27 +00:00
John Gilmore
fbcb509562 * tm-*.h: Remove READ_DBX_FORMAT, COFF_FORMAT, and
READ_MIPS_FORMAT, which have been unused since BFD.  Still
remaining is COFF_NO_LONG_FILE_NAMES.
* tm-sun3.h, tm-altos.h:  Remove detritus accidentally left from
function calling code moved to m68k-tdep.c.
1991-11-07 13:14:59 +00:00
John Gilmore
e64fbb3aa7 * coffread.c: Eliminate c_nsyms in favor of c_naux.
Complain if no auxents on .bf and .ef FCN symbols, and assume
lots of line numbers.
(init_linenos, enter_linenos):  Use a sentinel at the end of the
read-in linenos, to make for a fast, safe loop-end test.
1991-11-07 01:27:46 +00:00
Steve Chamberlain
f9da0d6713 Added gdb.1 1991-11-06 09:24:57 +00:00
Steve Chamberlain
0aaa124f3e * Makefile.in: put a - infront of the mv y.tab.c c-exp.tab.c and
mv y.tab.c m2-exp.tab.c, so that if bison is used, and the files
	are created in place, so the mv fails, then the make continues.
1991-11-06 06:49:20 +00:00
Roland Pesch
c1d43aa230 Correction in intro text re corefile arg (may also be procID); second time
around didn't ack two possibilities.
1991-11-06 01:22:44 +00:00
Per Bothner
545af6ce07 Add C++ as a separate language.
Also, fix a C++ problem when looking for methods in super-classes.
(There was confusion between base and derived types.)
1991-11-06 01:08:21 +00:00
Roland Pesch
4906534f1f Record (as comments) three FIXMEs. 1991-11-06 00:36:08 +00:00
Per Bothner
abefb1f107 * infrun.c: Fixed typo in comment.
* utils.c:  All the v*fprintf emulation is now in libiberty,
	so we can get rid of some junk.
	* xm-sun3os4.h, xm-sun4os4.h, xconfig/decstation, xconfig/i386sco,
	xconfig/sun3os4, xconfig/sun4os4: Don`t need HAVE_STRSTR any more.
	* m68k-pinsn.c (print_insn_arg):  Support BB/BW/BL
	type operands, as used by branch instructions.
	* gmalloc.c: Fix prototype of memcpy.
	* elfread.c: Comment out register_addr, since it conflicts
	with the one in coredep.c.
	* buildsym.h:  Remove extern declarations of two functions
	that are really static in buildsym.c.
	* tm-mips.h: Add symbolic names for more registers.
	* mips-xdep.c (store_inferior_registers): Use new register names.
	* xm-mips.h: Simplify REGISTER_U_ADDR, since it is now
	only used for core files, not ptrace.  Therefore,
	the KERNEL_U_ADDR hack is no longer needed.
	The mapping to ptrace number is now in in mips-xdep.c.
	* mips-xdep.c:  Define REGISTER_PTRACE_ADDR (using the
	mapping from the old REGISTER_U_ADDR), and use it
	in {fetch,store}_inferior_registers.
	* mipsread.c: Rename #include ecoff.h to new name coff-mips.h.
	* mips-tdep.c (mips_push_dummy_frame, mips_pop_frame):
	Save/restore FP regs correctly (?).
	* dbxread.c: Remove duplicate define_symbol and type_synonym_name
	(these had been previously moved to buildsym.c).
	Hence, define_symbol becomes extern instead of static.
	* buildsym.c (read_struct_type):  Comment out bogus handling
	of C++ operator methods.  Minor hacking of reading of class
	contexts. Make define_symbol non-static, so dbxread.c can call it.
1991-11-04 23:15:31 +00:00
Per Bothner
6a8687f3c7 * xm-sun3os4.h, xm-sun4os4.h, xconfig/decstation, xconfig/i386sco,
xconfig/sun3os4, xconfig/sun4os4: Don`t need HAVE_STRSTR any more.
1991-11-04 23:10:47 +00:00
Steve Chamberlain
4dbf824f02 Use new i386aout when i386-aout seen 1991-11-04 01:27:49 +00:00
Steve Chamberlain
e92cc5b944 New files 1991-11-04 01:25:43 +00:00
Steve Chamberlain
c02e12c0ec Initial revision 1991-11-04 01:25:42 +00:00
John Gilmore
c9bd6710ad * mipsread.c (read_mips_symtab, read_the_mips_symtab): Use real
filename with error messages.
* stack.c (frame_select_command):  Rename to select_frame_command
to avoid "fr" and "fra" having nonunique completions.
* symfile.c (sort_symtab_syms):  Ignore sort of zero symtab *.
(symfile_init):  Print file format name when unable to handle it.
(free_named_symtabs):  Use BLOCKVECTOR rather than obsolete BLOCKLIST.
* symmisc.c (free_symtab):  Only free linetable if nonzero.
* symtab.h:  Remove obsolete BLOCKLIST macros.
1991-11-01 19:12:35 +00:00
Stu Grossman
d7d1098dca * infrun.c (wait_for_inferior): another stepi/nexti fix. Ensure
that stop_step is 1 at bottom of main loop.  I don't know why this
needs to be done, but it helps me sleep better at night.
1991-11-01 02:16:20 +00:00
Stu Grossman
8b3c897ae9 * main.c (initialize_history): Read history after reading all
init files.
1991-10-28 02:20:47 +00:00
John Gilmore
b90c4f33cd * c-exp.y (yyerror): Pass error message if given.
* configure.in:  Add rs6000 host and target.
* inflow.c (new_tty):  O_NOCTTY kludge for RS/6000.
* symfile.h (entry_point):  Add.
1991-10-27 22:27:15 +00:00
John Gilmore
a23075bc5a * blockframe.c: Pass fromleaf to INIT_EXTRA_FRAME_INFO.
* tm-29k.h, tm-88k.h, tm-i960.h, tm-irix3.h, tm-mips.h, tm-pyr.h,
tm-sparc.h:  Accept fromleaf parameter.
1991-10-27 22:26:52 +00:00
John Gilmore
4137c5fc0d * buildsym.c: Break out initial malloc sizes.
(record_line):  Record directly in a subfile.  Alloc on demand.
(compare_line_numbers):  Add from xcoffread.c.
(end_symtab):  New params say whether to sort pendings and
linetable.  Patch block stabs if defined.  Shrink linetable before
allocating the symtab.
* buildsym.h:  Delete line_vector* and prev_line_number.  Add
global_stabs and file_stabs for xcoffread.
* dbxread.c (start_subfile):  Move to buildsym.  Change above calls.
* symtab.h:  LINETABLE(symtab) can now be null.  Zap LINELIST.
* symmisc.c, symtab.c:  Cope with null LINETABLEs.
1991-10-27 22:26:02 +00:00
John Gilmore
d47d5315c8 * symfile.c (syms_from_bfd): New routine.
(add_symbol_file):  Call it to do the real work.
(syms_from_bfd):  Initialize entry_point before calling symfile_init.
* symtab.h, symfile.c, coffread.c, mipsread.c, dwarfread.c:
Avoid declaring or setting entry_point (symfile.h & symfile.c cope).
1991-10-26 08:02:23 +00:00
John Gilmore
2ce38c6d29 Add buildsym.c and buildsym.h. 1991-10-26 07:22:46 +00:00
John Gilmore
c030245775 Break out symbol-table-building routines
from dbxread.c, so they can be shared with xcoffread.c.
1991-10-26 07:21:30 +00:00
Per Bothner
bcccec8c8d Various fixes to improve g++ debugging. See ChangeLog. 1991-10-26 02:05:14 +00:00
Stu Grossman
5ab580ccf8 * tm-sparc.h, tm-68k.h (EXTRACT_RETURN_VALUE): fix output of
short return values for sparc and 68k.  Patch from Paul Eggert.
1991-10-26 01:06:16 +00:00
Stu Grossman
eb3f3e5c6a *** empty log message *** 1991-10-26 00:57:08 +00:00
Stu Grossman
159a075e55 * coffread.c, coredep.c, i386-xdep.c: install patches for
SysV/386 3.2 from Mauro DePalma.
1991-10-25 23:10:12 +00:00
John Gilmore
c58215f248 * core.c (core_file_info), exec.c (exec_file_info): Print file
type.  Use printf_filtered.
1991-10-25 09:32:06 +00:00
John Gilmore
9cb602e111 (value_fetch_lazy): Avoid 0-length fetches. 1991-10-25 09:03:36 +00:00
Fred Fish
c8c0a2bd59 Add casts to remove compiler warnings from native Sun cc. 1991-10-25 06:47:13 +00:00
Fred Fish
84d82b1ccd Remove locally duplicated code for calling functions in the inferior. The
only differences were in the specific trap vectors used and whether or not
an fpu was present.  These are now handled by appropriate definitions of
BPT_VECTOR and HAVE_68881 respectively.  Other minor obvious cleanups.
Minor spelling correction in valops.c.
1991-10-25 06:29:23 +00:00
Fred Fish
ed317bb309 Remove local BSD/USG hacks that are now in libiberty. 1991-10-25 06:13:22 +00:00
Fred Fish
b662acae40 Remove prototype for dwarfwarn(). Breaks with <varargs.h>. 1991-10-25 06:09:15 +00:00
John Gilmore
b00771232f frame-select command. Cross funcalls to sun3. Build *.tab.c files in
target dir.
1991-10-25 04:29:01 +00:00
Fred Fish
811348f23b Add "amix". 1991-10-24 18:09:34 +00:00
Fred Fish
6fccdaf496 Add new DWARF, ELF, SVR4 /proc, Amiga UNIX, etc files. 1991-10-24 18:07:57 +00:00
John Gilmore
313fdead0e Use <varargs.h>, since <stdarg.h> is not portable. 1991-10-24 16:34:56 +00:00
John Gilmore
54154111c5 Roll VERSION to 4.2.2. 1991-10-24 16:24:23 +00:00
Fred Fish
d10861fdda Initial revision 1991-10-24 11:32:42 +00:00
Fred Fish
35f5886ebb New files for DWARF debugging format support, ELF object file support, SVR4
/proc (process file system) support, Amiga UNIX target and host defines, SVR4
target and host defines, and m68k hosts defines.
1991-10-24 11:28:54 +00:00
Fred Fish
bb4ff69408 Add dwarfread.c, dwarfread.o, elfread.c, elfread.o to source and object
file macros.  Other obvious dwarf/elf tweaks.
1991-10-24 11:11:12 +00:00
Fred Fish
2f068b0dd5 Add "elf" to list of supported debugging formats in comment. 1991-10-24 11:09:46 +00:00
Fred Fish
e2aab0314f Add three new builtin types (builtin_type_long_double, builtin_type_complex,
and builtin_type_double_complex).  Also add and use various TARGET_<TYPE>_BIT
macros to indicate the sizes of various types on the target machine.
1991-10-24 10:58:41 +00:00
Fred Fish
020706804b Add machine dependent support routines for SVR4 /proc interface. 1991-10-24 10:48:55 +00:00
Fred Fish
63ac7ef33f When using SVR4 /proc interface, call proc_set_exec_trap() rather than
ptrace(), to arrange for child to stop on first instruction.
1991-10-24 10:47:11 +00:00
Fred Fish
2bc2e684ad Add new function warning() which behaves the same as error() but returns
rather than jumping back to command level.  Modules that want to print
their own warnings without calling warning() can call warning_setup() to
handle the terminal compatibly with warning() and error().
1991-10-24 10:38:56 +00:00
Fred Fish
eaa1ef1df1 Make internal errors produce more useful messages. 1991-10-24 10:29:07 +00:00
Fred Fish
dcd15e5e7a Move code duplicated in almost every single m68k based machine to the
common target file tm-68k.h.  Duplications still need to be removed (FIXME).
1991-10-24 10:21:41 +00:00
Fred Fish
150f543625 System V versions must call setpgrp() with no arguments, to comply with
prototyping typically in <unistd.h>.  Otherwise the compile fails, at
least with gcc.
1991-10-24 09:26:05 +00:00
Fred Fish
cb17dfb1c0 Add support for SVR4 style nm output. Not claimed to be optimal, I'm not
a sed hacker.  It does seem to work fine.
1991-10-24 08:54:58 +00:00
Fred Fish
4a35d6e91b Remove the object file specific fields from the partial symbol table
structure and replace them with a pointer to private data for each
different flavor of object file reader to initialize appropriately.
1991-10-24 08:42:20 +00:00
John Gilmore
e89b8910fc Add note about strstr botch on sunos4.0.3c and previous. 1991-10-23 18:12:20 +00:00
Stu Grossman
2e393ce478 * infrun.c (wait_for_inferior): Check return value from
find_pc_line.
1991-10-23 01:06:36 +00:00
Stu Grossman
0d3e7f607f *** empty log message *** 1991-10-23 01:05:57 +00:00
Stu Grossman
bc6c937d0b *** empty log message *** 1991-10-22 00:51:28 +00:00
Stu Grossman
b3b39c0c76 * infrun.c (wait_for_inferior): fix stepi/nexti that was broken
by my last edit to this routine.
1991-10-22 00:50:58 +00:00
Steve Chamberlain
44e4e473f8 * configure.in: added ebmon target. 1991-10-21 17:06:59 +00:00
John Gilmore
b1dcd6ac3f Final touchups for release 1991-10-17 06:51:00 +00:00
John Gilmore
785ce19c33 More last minute gdb-4.2 changes. 1991-10-17 05:58:34 +00:00
John Gilmore
b53d3945ed * coredep.c: Add <sys/types.h> for SCOnix.
* dbxread.c (read_dbx_symntab):  Avoid coredump on malformed file.
* printcmd.c (print_formatted):  Flush output before disassembly.
* xm-mips.h:  Update KERNEL_U_ADDR for new scheme.  Cleanup a bit.
1991-10-17 05:57:51 +00:00
John Gilmore
c5a475c86d * xconfig/i386sco: Add HAVE_STRSTR to avoid ANSI bdeath.
* xconfig/tahoe:  Add REGEX, which seems to be missing.
1991-10-17 05:57:02 +00:00
Roland Pesch
9e0906a6b2 *** empty log message *** 1991-10-16 22:11:28 +00:00
Roland Pesch
092678655c More updates due to Picard refcard comments. 1991-10-16 22:08:33 +00:00
John Gilmore
a1b8c5d69d GDB-4.2 release!
* Makefile.in:  Roll VERSION to 4.2.

* tm-i386v.h:  #endif guck.
* xconfig/i386*:  Remove -Dgetpagesize()=4096 kludge.
1991-10-16 21:02:31 +00:00
Roland Pesch
e0dacfd17a Clarifications and rephrasings, largely due to Pinard's comments on
refcard.
1991-10-16 20:00:20 +00:00
John Gilmore
45e6027024 * core.c (core_open): Improve error message for bad file.
Pass .reg virtual memory address to fetch_core_registers to help
it find the registers in the core-file header.
* coredep.c (fetch_core_registers):  Take new argument, use it,
and pass it to register_addr to locate the block of registers.
1991-10-16 19:42:05 +00:00
John Gilmore
a13f8a2f23 Remove -Dgetpagesize()=4096 kludge. 1991-10-16 19:41:34 +00:00
John Gilmore
6150cc735f * dbxread.c (read_dbx_symtab, process_one_symbol): Handle
Sequent N_FN_SEQ like everybody else's N_FN.
1991-10-16 19:38:56 +00:00
Roland Pesch
5dfddc7fc6 * doc/refcard.tex (sec "Working Files"): consistent metavars, due
to Franc,ois Pinard (pinard@iro.umontreal.ca)
1991-10-16 06:35:14 +00:00
Roland Pesch
d9800dbbf3 Fix error spotted by Francois Pinard (pinard@iro.umontreal.ca): several
instances of *name* in "Working Files" s.b. *file*.
1991-10-16 06:32:57 +00:00
Roland Pesch
e251e76736 Another revision of "Installing" appendix, for GDB 4.2. Table of config
name segments now updated.
1991-10-16 06:27:06 +00:00
Roland Pesch
93ae2e889a * doc/gdb.texinfo (appendix "Installing GDB"): changes in configure. 1991-10-16 03:13:36 +00:00
Roland Pesch
c7637ea643 Update appendix "Installing GDB". (not yet updated: list of host-vendor-os). 1991-10-16 03:11:28 +00:00
John Gilmore
3dfb315ebd Further evolution. Remove hp-include pending real HP support. 1991-10-16 02:14:39 +00:00
John Gilmore
7ff46684f8 Configure isn't here any more. 1991-10-16 01:54:31 +00:00
John Gilmore
7534367a51 Remove configure and config.sub to ../ 1991-10-16 01:42:56 +00:00
John Gilmore
5d2cfefe93 * configure.in, tconfig/decstation, xconfig/decstation: Rename
dec3100 to decstation.
1991-10-16 01:06:01 +00:00
John Gilmore
afe4ca159b Changes from Fred Fish:
* tm-68k.h (FPI_REGNUM):  Add.
* infrun.c (child_create_inferior):  flush stdout and stderr
before forking.
* configure.in:  Handle amigados, amix hosts and targets.
* inflow.c:  Handle TIOCGLTC_BROKEN for Amiga.

From Andreas Schwab:
* values.c (show_convenience):  Use printf_filtered.
* main.c (define_command):  Check result of lookup_command for
exact match.
(echo_command):  Use printf_filtered, and force output out.

* dbxread.c (read_enum_type):  Avoid Modula-2 kludge that breaks C
programs.
* i387-tdep.c (double_to_i387):  Fix typo for double_to_ieee_extended.
* utils.c (_initialize_utils):  If !ISATTY, don't paginate.
1991-10-15 23:29:34 +00:00
Roland Pesch
2109a7b736 * doc/gdb.texinfo
(nodes Continuing and Stepping; Memory; Targets) clarifications
	due to Larry Breed
1991-10-15 00:46:39 +00:00
Roland Pesch
cedaf8bca5 Clarifications to "stepping", "Displaying Memory", and "Targets" due largely
to Larry Breed
1991-10-15 00:43:31 +00:00
Roland Pesch
440d983441 Catch up to changes recorded in GDB ChangeLog, to wit:
1) "show copying" and "show warranty" in sample output (instead of obs. "info")
2) new command "printpsyms"
3) Complaint "const/volatile indicator missing" re-enabled
4) Complaint "C++ type mismatch..." now "info mismatch..."
1991-10-14 20:36:50 +00:00
John Gilmore
3c6c67143a Assorted patches from Fred Fish, Peter Schauer. 1991-10-12 07:19:13 +00:00
John Gilmore
df6335e19f * tm-{irix3,mips,nindy960,pn,symmetry,vx960}.h: Move
REGISTER_U_ADDR to corresponding xm- file.  Sugg. by Peter Schauer.
1991-10-12 07:11:48 +00:00
John Gilmore
9e77ff161f * copying.awk: Filter formfeeds out of copying & warrantee.
Make them available as `show copying' and `show warrantee' also.
1991-10-12 06:28:15 +00:00
John Gilmore
074274252f Read cross-core files on Mach 386. 1991-10-11 00:27:41 +00:00
John Gilmore
912456a503 * mipsread.c, coffread.c: initialise TYPE_VPTR_FIELDNO to -1.
This avoids coredumps under `set print object on' in value_headof
(called erroneously by value_from_vtable_info) for `p &struct'
or `p *struct'.  From Peter Schauer.
1991-10-10 00:05:52 +00:00
Roland Pesch
5298a14b49 (ORIG: date: 1991/09/27 22:47:20; author: pesch; state: Exp; lines: +3 -4)
Stop talking about obsolete "sharedlibrary" command in whats-new section.
1991-10-09 00:31:51 +00:00
Roland Pesch
c728f1f0ef (ORIG: date: 1991/09/21 05:15:13; author: pesch; state: Exp; lines: +19 -18)
(1) fix typo ('_if_' and '_fi_' for '_if__' and '_fi__'!)
(2) prepare for semi-auto xref updating by rejoining xrefs broken across lines
1991-10-09 00:31:02 +00:00
Roland Pesch
7d7ff5f6dd (ORIG: date: 1991/09/21 03:59:06; author: pesch; state: Exp; lines: +12 -7)
Formatting updates to "installing" appendix.
1991-10-09 00:30:17 +00:00
Roland Pesch
d7b569d59b (ORIG: date: 1991/09/21 02:59:57; author: gnu; state: Exp; lines: +32 -28)
Rearrange "how to install" and "how to print the doc" stuff so it drops
easier into README.
1991-10-09 00:29:37 +00:00
Roland Pesch
f2857bd903 (ORIG: date: 1991/09/21 02:55:37; author: pesch; state: Exp; lines: +4 -2)
add missing index entries for set/show print sevenbit-strings.
1991-10-09 00:28:39 +00:00
Roland Pesch
c338a2fdf2 (ORIG: date: 1991/09/21 02:01:41; author: pesch; state: Exp; lines: +175 -110)
Update configs table.
1991-10-09 00:27:09 +00:00
Roland Pesch
3e0d0a27fc (ORIG: date: 1991/09/20 22:43:47; author: pesch; state: Exp; lines: +47 -46)
Extract GDB version number from main GDB dir Makefile.in.
1991-10-09 00:26:15 +00:00
Roland Pesch
c2bbbb2275 (ORIG: date: 1991/09/20 21:43:15; author: pesch; state: Exp;)
Merged in new doc on language setting, C, and Mod-2 by Andrew Beers;
cleanups to node structure.
1991-10-09 00:22:44 +00:00
Roland Pesch
0c81306bb4 Merged in new doc on language setting, C, and Mod-2 by Andrew Beers;
cleanups to node structure.

(RELEASE 4.1)
1991-10-09 00:17:27 +00:00
Roland Pesch
b80282d52a RELEASE 4.0 docn. (Recovered from GDB 4.0 distribution; intervening
versions lost by cvs over system crash).
1991-10-09 00:06:58 +00:00
John Gilmore
d1630095c4 First stage of coff-encap work. 1991-10-07 07:23:08 +00:00
John Gilmore
e7a6fb0120 oops 1991-10-05 05:38:12 +00:00
John Gilmore
c888e9cf5c Intel 386 Mach host port 1991-10-05 05:35:21 +00:00
John Gilmore
6617b94e06 Intel 386 Mach host port. 1991-10-05 05:35:06 +00:00
John Gilmore
634df4a653 Initial revision 1991-10-05 05:34:05 +00:00