Fred Fish [Fri, 25 Oct 1991 06:29:23 +0000 (06:29 +0000)]
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.
Fred Fish [Thu, 24 Oct 1991 10:58:41 +0000 (10:58 +0000)]
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.
Fred Fish [Thu, 24 Oct 1991 10:38:56 +0000 (10:38 +0000)]
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().
Fred Fish [Thu, 24 Oct 1991 09:26:05 +0000 (09:26 +0000)]
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.
Fred Fish [Thu, 24 Oct 1991 08:42:20 +0000 (08:42 +0000)]
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.
Makefiles should include the makefile frag names even if the makefile
frag doesn't exist in *this* directory. Otherwise we inherit the
variable setting from our parent Makefile.
* coffcode.h (coff_compute_section_file_positions): make it pad
section size out if there are alignment restrictions so that the
image will be ok on a system where section positions are worked
out by accumulating sizes rather than from the section headers.
* targets.c (proto write_armap). Changed orl_count to unsigned.
* opncls.c (bfd_close_all_done). Added so that generative
programs like gas can close a bfd without causing bfd confusion.
* libbfd.h (changed becuase of protos)
* amdcoff.c: messed with the way that jmp displacements are
calcualated. This may not yet be totally correct.
* archive.c (coff_write_armap): rewrote the way that ranlibs are
written out.
* coffcode.h (fixup_symbol_value): now doesn't core dump if a non
abs symbol has no section (like a register symbol).
(coff_write_symbol) now zeros auxent before filling it up to help
with sensitive applications.
* libbfd.c (bfd_write_bigendian_4byte_int): added.
* configure.in: added ebmon entry.
* output-file.c (output_file_create, output_file_close) added
stuff to use bfd.
* write.c: more bfd support
* config/obj-coff.c config/obj-coff.h use bfd for swapping
header info.
* tc-a29k: added the reloc types we support now
* configure.in: added ebmon entry.
* output-file.c (output_file_create, output_file_close) added
stuff to use bfd.
* write.c: more bfd support
* config/obj-coff.c config/obj-coff.h use bfd for swapping
header info.
* tc-a29k: added the reloc types we support now.
* configure.in: added ebmon entry.
* output-file.c (output_file_create, output_file_close) added
stuff to use bfd.
* write.c: more bfd support
* config/obj-coff.c config/obj-coff.h use bfd for swapping
header info.
* config/tc-a29k: added the reloc types we support now
John Gilmore [Wed, 16 Oct 1991 20:35:06 +0000 (20:35 +0000)]
* aout64.h: Remove PAGE_SIZE defines; they are target-dependent.
Add N_FN_SEQ for N_FN symbol type used on Sequent machines.
* stab.def: Include N_FN_SEQ in table.
* bout.h: External formats of structures use unsigned chars.
Per Bothner [Wed, 16 Oct 1991 19:50:08 +0000 (19:50 +0000)]
* archive.c (bsd_write_argmap): The size of the ranlib structures
should not include teh size field itself.
* aoutx.h, libaout.h (NAME(aout, sizeof_headers)): Use
adata(abfd)->exec_bytes_size field instead of constant macro,
because aoutx.h compiles to a simple .o file shared by
all 32-bits a.out targets.
John Gilmore [Wed, 16 Oct 1991 19:42:05 +0000 (19:42 +0000)]
* 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.
John Gilmore [Wed, 16 Oct 1991 18:57:16 +0000 (18:57 +0000)]
* host-aout.c: New strategy. We use common code, include files,
and data structures to handle the file, but set a few parameters
from the host's config file (page size, text start addr, etc).
* libaout.h: Define HP BSD machine types.
John Gilmore [Wed, 16 Oct 1991 18:56:07 +0000 (18:56 +0000)]
* trad-core.c: Pass the u.u_ar0 value as the negative of the
virtual-memory-address of the .reg section. We can't just make a
section for "all the regs and nothing else" because only GDB knows
exactly where the regs are (scattered around the upage and stack).
Clean up memory allocation. Remove big- and little-endian
vectors, replace with single vector; this only runs on the host,
in host byte order. Replace byteswap routines with aborts in case
anyone calls them.
* targets.c: There's only one trad_core_vec now.
* aoutf1.h (sunos_core_file_p): VMA of .reg* now needs to be 0.