* coff-i960.c (icoff_little_vec): add COFF_SWAP_TABLE so we can run gdb on little
endian 960 code.
* archive.c (compute_and_write_armap): indirect symbols should go
into the archive header too.
Sean Eric Fagan [Fri, 6 Mar 1992 12:01:13 +0000 (12:01 +0000)]
Routines for currently-unsupported architectures. findcall() just returns
in dummy.c, and dummy.h mostly contains copyright. (These were originally
the hp300 files from the UCBerkeley net2 tape.)
Sean Eric Fagan [Fri, 6 Mar 1992 11:56:31 +0000 (11:56 +0000)]
Fixed bugs (both typos and algorithmic) bugs. It now matches native gprof's
on both the sparc (SunOS) and Mach386 systems, more or less. (The differences
are at least partially due to what I think might be bugs in the native
gprof.)
John Gilmore [Fri, 6 Mar 1992 09:27:47 +0000 (09:27 +0000)]
* mips-tdep.c (heuristic_proc_start): Avoid long delays
for remote MIPS by limiting heuristic to 200 byte search.
(heuristic_proc_desc): Byte-swapping.
(mips_print_register): Cope with failure of
read_relative_register_raw_bytes. Byte-swap integers for
printing.
* mips-pinsn.c (print_insn): Byte-swap instruction.
John Gilmore [Fri, 6 Mar 1992 09:16:52 +0000 (09:16 +0000)]
* remote.c (): Add newline to initial +.
(remote_resume): Mention how to cope with signals.
(remote_interrupt): Add debug msg.
(remote-wait): Implement new 'T' reply, which includes
status, PC, and FP all in a single short message.
(putpkt): Add further debugging of packet acks.
* Makefile.in (VERSION): Roll to 4.4.5.
Fred Fish [Wed, 4 Mar 1992 20:50:10 +0000 (20:50 +0000)]
* defs.h, utils.c: xrealloc takes PTR as first arg.
* defs.h: Reword confusing comment about ANSI prototypes.
* defs.h: Some minor whitespace changes.
* infrun.c (wait_for_inferior): Compare int tmp to int 0,
not NULL, which can be (void *).
* tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
* tm-i386v.h (SP_ARG0): Define
* xm-sysv4.h: Back out of change for missing prototypes.
* i386-tdep.c (get_longjmp_target): Add function.
* All GDB files that #include defs.h: Removed stdio.h.
(defs.h): #include stdio.h.
This has been tested by building GDBs for all targets hosted on Sun4.
None of the build problems were related to stdio.h inclusion. (n.b.
many configurations don't build for other reasons.)
* gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
a ptype to reflect the setting of TARGET_PTR_BIT. Set the
TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
* tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
* printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
it before printing out the hex shape of an address.
Per Bothner [Mon, 2 Mar 1992 06:46:32 +0000 (06:46 +0000)]
* rs6000-xdep.c (frame_initial_stack_address): Move
code to set frame->cache_fsr into new separate function
frame_get_cacahe_fsr. This allows fixing a fatal error.
* xcoffexec.c: Turn previously suppressed error
message back on, after cleaning up BFD.
Fred Fish [Sun, 1 Mar 1992 21:20:04 +0000 (21:20 +0000)]
xm-sysv4.h: Provide definitions/prototypes for host environment
functions for which no definitions or prototypes are provided in
any currently included gdb or host environment header files.
For SVR4, this currently includes malloc and realloc, which cannot
be portably prototyped in any gdb include file.
Michael Tiemann [Sun, 1 Mar 1992 12:45:17 +0000 (12:45 +0000)]
Make the declarations of fix_new consistent under __STDC__. It might
be better to #define NEED_FX_R_TYPE in TC_A29K and TC_SPARC instead of
having this complicated conditional, but that's not my call.
Per Bothner [Sat, 29 Feb 1992 04:44:27 +0000 (04:44 +0000)]
* aoutx.h (NAME(aout,print_symbol)): Don't print
symbol addresss for undefined symbols.
* coff-rs6000.c: Various updates (due to target-
independent changes).
* libbfd.h: Ditto (tdata field is now a union).
* hosts/h-sparc.h: Removed prototype for bogus function
'emset' (presumably should have been 'memset' - which is there).
John Gilmore [Fri, 28 Feb 1992 03:26:45 +0000 (03:26 +0000)]
* remote.c: Make it work for embedded MIPS. Increase buffer
size, and use throughout. Round buffer size up if too many regs.
Support baud rate setting and try for an 8-bit path. If
interrupted while waiting for target, send a ^C down the wire.
Avoid single-byte reads.
* tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
and NUM_REGS.
* mips-xdep.h: Avoid the embedded regs when on Unix.
Roland Pesch [Fri, 28 Feb 1992 01:01:24 +0000 (01:01 +0000)]
Hard-code "@appendix" instead of "@chapter" at the beginning of each of these.
This will eventually be supported with a trivial macro, but those aren't
standard texinfo yet; in the meantime, I think GDB is the only manual we
print that uses these---and it wants appendices.
Roland Pesch [Fri, 28 Feb 1992 00:42:40 +0000 (00:42 +0000)]
* 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
John Gilmore [Fri, 28 Feb 1992 00:37:03 +0000 (00:37 +0000)]
* 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.
John Gilmore [Thu, 27 Feb 1992 19:56:28 +0000 (19:56 +0000)]
* 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.
Stu Grossman [Thu, 27 Feb 1992 17:45:02 +0000 (17:45 +0000)]
* 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.
John Gilmore [Thu, 27 Feb 1992 16:28:59 +0000 (16:28 +0000)]
* 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.
Wed Feb 26 19:40:59 1992 Steve Chamberlain (sac at thepub.cygnus.com)
* bfd.c: lint
* coff-h8300.c: fix stupid reloc subtraction bug
* coffcode.h (coff_swap_aux_out): only swap a tvndx by 2 bytes,
since that's how wide it is. (coff_slurp_symbol_table): always zero out
the symbol.flags and done_lineno fields.
* expr.c: If an expression is single comma, then return with
SEG_ABSENT rather than an error - since the sparc front end does
really strange things with things like fbge,a
* as.h: include bfd.h if using many sections
* expr.c: LOCAL_LABELS_FB had been changed to lower case - so
local labels didn't work.
* listing.c (list_symbol_table): don't core dump when there's no
symbol there.
* write.c, write.h: call fix_new with the right number of args on
the H8.
* config/tc-h8300.[ch] : fix bugs reported by HMSI, and make
errors nicer
* app.c: MRI compatibility - allow single quote to start a string.
* as.c: fix typo recently introduced.
* as.h : Don't include aout/reloc.h - it's not right for COFF!
* expr.c: Much rewriting, to accomodate MRI syntax for
expressions. Also easier to read now.
* listing.c: Put back defuns
* read.c: modified to accept MRI syntax, put back listing pseudo
ops so that an assembler built with NO_LISTING ignores list ops
rather than pukes.
* write.c, write.h: fixs - only keep a reloc type in a fix if the target
machine is a SPARC or a 29K.
* config/obj-aout.c: added s_sect pseudo op
* config/obj-coffbfd.c: lints, set the filehdr flags right and
fill in the timestamp.
* config/obj-coffbfd.h: Since we don't include aout/reloc.h
anymore, define all the relocs which the tc-<x> bit will use so we
can translate from them to the coff types.
* config/tc-a29k.c: reloc_type isn't ane enum any more
* config/tc-m68k.c: Added NO_RELOC definition.
Now compiles for sparc aout, 68k aout (MRI and MIT syntax),
29k coff.
So far works as replacement for sparc and 68k /bin/as.
John Gilmore [Sat, 22 Feb 1992 10:04:50 +0000 (10:04 +0000)]
* 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.
Stu Grossman [Sat, 22 Feb 1992 09:06:58 +0000 (09:06 +0000)]
* 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
John Gilmore [Sat, 22 Feb 1992 08:17:01 +0000 (08:17 +0000)]
* 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, <[email protected]>.