Commit Graph

916 Commits

Author SHA1 Message Date
Roland Pesch
e94b4a2b4c * Phrasing of "disassemble" description improved (less wordy, avoids widow in
small format)
* typo in index entry type fixed
* example of nonexistent configuration, in config appendix, slightly more
  far-fetched
1992-02-28 00:42:40 +00:00
Roland Pesch
9941f866a5 Added disclaimer (requested by WRS) on how procedures described for
connecting to VxWorks may change in future releases of VxWorks.
1992-02-28 00:39:11 +00:00
John Gilmore
d141f3e30d * mipsread.c: Byte-swap the symbol table structures, using
routines from ecoff.c, to read a symbol table written in any
of the four possible byte orders.
1992-02-28 00:37:03 +00:00
John Gilmore
238025a44b * config/mt-bigmips, config/mt-littlemips: Add ecoff.o. 1992-02-27 19:56:52 +00:00
John Gilmore
069bc45432 * configure.in (mips-big-* target): Same as Sony News.
* config/mt-bigmips, config/mt-littlemips:  Add ecoff.o.
* ecoff.c:  New file for symbol swapping routines.
1992-02-27 19:56:28 +00:00
Stu Grossman
36a19fdc5b Fix cvs merge fuckup. 1992-02-27 17:50:06 +00:00
Stu Grossman
80ba48f58c * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
all-breakpoints' command.
* (get_number):  Allow users to enter negative breakpoint numbers.
* (breakpoint_1):  Reformat display of 'info break' to show new
fields.
* (create_longjmp_breakpoint, breakpoint_re_set,
breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
symfile.c  (syms_from_objfile):  Re-do
insertion of longjmp breakpoints.  Move all code into
breakpoint_re_set, and call that instead of
create_longjmp_breakpoint in symfile.c.
1992-02-27 17:45:02 +00:00
John Gilmore
cba0d141fb * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
* breakpoint.c (breakpoint_re_set):  Use ALL_BREAKPOINTS_SAFE.
* symtab.c (find_pc_symtab):  Handle having no objfiles.
* infcmd.c:  Fix comment.
* objfiles.c (free_all_objfiles):  Add.
* symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):  Add.
* symfile.c (symbol_file_command):  free all objfiles when
specifying a new symbol file.
(reread_symbols):  Stat the file name, don't fstat the descriptor.
1992-02-27 16:28:59 +00:00
John Gilmore
5c83e859b9 Update `dependency' files so that Make will build the right things at
the right times.
1992-02-27 14:24:36 +00:00
John Gilmore
03686a4064 Remove running log from .Sanitize. 1992-02-27 14:15:41 +00:00
Roland Pesch
5e3186ab81 Fix one overlooked instance of "+" option prefix in configure appendix. 1992-02-25 23:49:22 +00:00
Fred Fish
a1f596f4fa Add gdbtypes.c gdbtypes.h minsyms.c mmap-alloc.c mmap-sbrk.c objfiles.c
solib.h state.c and state.h
1992-02-23 05:25:21 +00:00
John Gilmore
47890ed736 Roll VERSION to 4.4.4 for post-Stu changes. 1992-02-22 10:17:37 +00:00
John Gilmore
3531811073 * symfile.c (symbol_file_command): strcmp => !strcmp.
* breakpoint.h:  Move prototypes to follow enum definition they need.
* breakpoint.c, infrun.c:  Lint.
* printcmd.c:  Use `enum enable' rather than `enum
display_status'.
* mipsread.c:  First pass at making it compile with the new
objfile changes.  Probably seriously broken still, but it
compiles.  FIXME.
1992-02-22 10:04:50 +00:00
John Gilmore
93fe4e330e Saberlint.
* symmisc.c, xcoffread.c:  Move debug functions to symmisc.c.
1992-02-22 09:16:11 +00:00
Stu Grossman
30875e1c4b * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h:  Add support for
stepping (and nexting) through longjmp().  Also, cleanup
breakpoint handling quite a bit by creating explicit breakpoint
types instead of using magic breakpoint numbers.
Makefile.in:  Update version to 4.4.3
1992-02-22 09:06:58 +00:00
John Gilmore
021959e249 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
* minsyms.c (install_minimal_symbols):  Add bunches to any
existing minsyms in the objfile.  Avoid extra mallocation
by working directly in the obstack.  Remove ignored `mainline' parm.
* coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
xcoffread.c:  Change all callers.
* FIXME:  We should be able to eliminate MAINLINE from all the
symbol readers now, with a small bit of work.

* valops.c, value.h:  Lint.
* remote-vx.c:  Add missing break; statement.  Bugfix by
Michael Sclafani, <sclafani@src.dec.com>.
1992-02-22 08:17:01 +00:00
John Gilmore
1ab3bf1b14 * Check in Fred Fish's changes in these modules. Fred
will make ChangeLog entries for all of them.
1992-02-22 01:46:16 +00:00
John Gilmore
7919c3ed86 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
into solib.h.
* sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
value.h: Prototypes for static functions; lint.
* gdbtypes.h:  Empty file to ease transition.
1992-02-21 03:35:37 +00:00
John Gilmore
5b0267410c * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
complaints about volatile functions.
* xm-sysv4.h (HAVE_MMAP):  Define.
1992-02-21 01:40:57 +00:00
John Gilmore
ee0613d186 * core.c, exec.c, solib.c: Rename target_ops sections =>
to_sections, etc.
* infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
target.h:  target_kill takes no args.
1992-02-21 01:35:32 +00:00
John Gilmore
e17960fb42 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
Remove to_call_function and target_call_function, since it
always calls the same thing (call_function_by_hand).
1992-02-21 01:34:46 +00:00
John Gilmore
7ed0f002ed * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
signame.c, sparc-xdep.c: Prototypes for all static functions.  Lint.
1992-02-21 01:33:14 +00:00
John Gilmore
75af490bd2 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
inferior.h, language.h, signame.h, target.h, terminal.h,
tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
Lint.
1992-02-21 01:31:56 +00:00
John Gilmore
088c3a0b74 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
to make prototypes for all functions declared here.
* cplus-dem.c:  Avoid declaring xmalloc and xrealloc.
* c-exp.y:  Rename SIGNED, OR, and AND to avoid conflict.
* environ.c:  Include <stdio.h> before defs.h.  Minor cleanup.
* ieee-float.h:  Use PARAMS for prototypes; make some params const.
* ieee-float.c, valarith.c:  Include <stdio.h>.  Lint.  b*=>mem*.
* m2-exp.y:  Remove unused CONST; Rename OR and AND.
* utils.c:  Avoid declaring malloc and realloc.  Lint.
(request_quit):  Accept signal-number parameter.
1992-02-20 19:23:42 +00:00
John Gilmore
be8303da55 * coffread.c (decode_base_type): Pass long, not union.
Fix by Eric Valette, ev@chorus.fr.
1992-02-20 05:25:34 +00:00
Fred Fish
9e4c1921e5 Add code to handle TAG_pointer_type DIE's (DWARF Information Entries)
that are produced by the i486/SVR4 MetaWare compiler, but not by the
AT&T or GCC compilers.
1992-02-17 23:26:54 +00:00
Fred Fish
af21362450 When creating user defined types for subroutine and array types, check
first to see if a partial type already exists due to a forward reference,
and if so, bash it to fit.
1992-02-17 15:23:05 +00:00
Roland Pesch
195758fa2a Fix missing user-font lines in introductory example (spotted by J Irwin,
WRS).
1992-02-16 01:39:35 +00:00
Fred Fish
d35bf52d93 Fix code in elf_symtab_read which attempts to read the standard ELF
symbol table and add symbol information to the misc function vector.
This allows minimum functionality with non -g compiled code, and is
vital for use with shared libraries (non of which are currently
compiled with -g).

Note to anyone doing any SVR4/gdb work.  This bug was introduced into
gdb just prior to the gdb 4.4 release, thus any versions currently
in the field will have broken shared library support since no symbol
information at all will be available for the shared library.  This
fix, along with one about to go into bfd's elf.c should fix that
problem.
1992-02-14 01:22:12 +00:00
Stu Grossman
5b620e7567 * xm-vaxbsd.h: Close off comment. 1992-02-13 20:44:23 +00:00
Heinz G. Seidl
26ca719c03 terminated unterminated comment 1992-02-13 19:39:48 +00:00
Fred Fish
0a663e9eb9 Define NEED_POSIX_SETPGID for all SVR4 hosts. 1992-02-13 15:47:18 +00:00
Sean Eric Fagan
b745cf362d Added mh-apollo68v and mt-os68k as files-to-keep. 1992-02-11 00:16:18 +00:00
Sean Eric Fagan
d5231b0895 Added a68v-xdep.c os68k-xdep.c, tm-os68k.h, and xm-apollo68v.h as files-
to-keep.
1992-02-11 00:14:59 +00:00
Sean Eric Fagan
5e4d4b0f32 all: Don't include <sys/file.h> if NO_SYS_FILE is defined. On the Apollo,
this file does not exist, and not including it hasn't seemed to
	cause problems.
main.c:  Use the proper enum's in the options structure initialization;
	the Apollo compiler chokes on this.
1992-02-11 00:01:35 +00:00
Sean Eric Fagan
b159ce3f16 Makefile.in: Removed some '#''s that caused an extraneous include of
the host/site/target files.
configure.in:  Added support for hosting on an Apollo Series 400, and
	targeting on an OS/68k machine.
1992-02-10 23:58:50 +00:00
Sean Eric Fagan
93deef92f4 Added support for hosting on an Apollo Series 400 (under System V emulation),
and targeted towards an OS/68000 system.
1992-02-10 23:31:40 +00:00
Sean Eric Fagan
36a2f895f8 Added support for hosting on an Apollo Series 400 processor (under
System V emulation), and targeted towards an OS/68000 system.
1992-02-10 23:30:35 +00:00
K. Richard Pixley
bcdbe02f82 In configure{.in} {host|target}_makefile_frag should name a file
relative to srcdir.  I think it now does.  configure has been
corrected.  configure.texi has been clarified.
1992-02-08 08:57:08 +00:00
Stu Grossman
88c52c297c Add xm-vaxbsd.h and xm-vaxult.h to .Sanitize. Add mh-vaxbsd and mh-vaxult,
remove mh-vax from config/.Sanitize.
1992-02-07 22:58:40 +00:00
John Gilmore
256269fc92 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
in the op$::OPERATOR. case.  From Steven McCanne, <mccanne@horse.ee.lbl.gov>.
1992-02-07 16:23:57 +00:00
John Gilmore
ef9b1bc915 * exec.c (set_section_name): Pass arg to exec_files_info;
only call it if interactive.  From Francis Kauth <fk@tv.tv.tek.com>.
1992-02-07 15:57:32 +00:00
Michael Tiemann
c556c4267b Add ${srcdir} for makefile_frags. 1992-02-07 07:52:08 +00:00
John Gilmore
195853fc65 * main.c (print_gdb_version): Copyright msg: only this year.
(cd_command):  Avoid changing current_directory on error.
1992-02-07 01:43:22 +00:00
Per Bothner
ee17fd3437 * mipsread.c (parse_partial_symbols): Handle dependencies
between partial symbol tables (when not doing stabs-in-ecoff).
	(This used to be handled by parse_fdr, but parse_fdr was
	incompatible with handling stabs-in-ecoff, so the code
	was re-written to not use parse_fdr.  Unfortunately,
	the logic to handle dependencies was overlooked.)
1992-02-06 23:24:30 +00:00
Steve Chamberlain
1f46923ff4 * coffread.c (read_enum_type): Use the size of a target int when
describing enum.
	* defs.h: added new #define for TARGET_PTR_BIT, defaults to size
	of target int.
	* h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
	* symtab.c (lookup_reference_type, lookup_ptr_type): use
	TARGET_PTR_BIT to determine size of a pointer
	* values.c (unpack_long): when unpacking a REF or a PTR don't
	assume the size of the type.
1992-02-06 20:03:31 +00:00
John Gilmore
778c358df8 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
looking at its members.  Improve guess between struct and union,
only assuming union if multiple members have offsets of zero.
1992-02-06 06:33:15 +00:00
Per Bothner
bd49ef36c2 Mips-specific bug-fix (for stabs-in-ecoff), and style fix. See ChangeLog. 1992-02-05 02:14:31 +00:00
Stu Grossman
9e8bf29afd * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
config/mh-vaxbsd, configure.in:  Split up config stuff for Vaxen
into BSD and Ultrix.
1992-02-01 12:46:55 +00:00