Sean Eric Fagan [Fri, 21 Jan 1994 19:52:10 +0000 (19:52 +0000)]
The sparc (and possibly other?) NLM format requires a different way to
write exports, so add a write_export field to the backend data (and set it
to NULL for everything but the sparc).
Jim Kingdon [Fri, 21 Jan 1994 19:14:33 +0000 (19:14 +0000)]
* sunos.c (MY(read_dynamic_relocs)): Compare info->dynrel with NULL,
not (struct external_nlist *) NULL. info->dynrel is a PTR, not
a struct external_nlist *.
David MacKenzie [Fri, 21 Jan 1994 17:50:37 +0000 (17:50 +0000)]
* aoutx.h (translate_to_native_sym_flags), bfd-in.h (bfd_ec),
oasys.c (oasys_write_sections): Rename
bfd_error_nonrepresentable_section to nonrepresentable_section.
None of the other bfd error names start with "bfd_error".
Remove errors symbol_not_found and no_relocation_info, which seem
to be unused.
* bfd-in2.h: Regenerated.
Jim Kingdon [Fri, 21 Jan 1994 14:38:58 +0000 (14:38 +0000)]
* xcoffread.c (read_xcoff_symtab): Make main_aux just a union
internal_xcoff_symtab, not an array of one of them. Change lots of
"main_aux" to "&main_aux" and so on.
Ian Lance Taylor [Fri, 21 Jan 1994 06:29:21 +0000 (06:29 +0000)]
* syms.c (BSF_DYNAMIC): New symbol flag.
(bfd_print_symbol_vandf): Print it.
* bfd-in2.h: Rebuilt.
* libaout.h (struct aout_backend_data): New read_dynamic_symbols
and read_dynamic_relocs fields.
(struct aoutdata): New dynamic_info field.
(obj_aout_dynamic_info): New accessor macro.
* sunos.c (struct sunos_dynamic_info): New structure.
(sunos_read_dynamic_info, MY(read_dynamic_symbols),
MY(read_dynamic_relocs)): New functions to read dynamic symbols
and relocs.
* aoutx.h (NAME(aout,some_aout_object_p)): If the object is
dynamically linked, set SEC_RELOC for both the .text and .data
sections.
(translate_from_native_sym_flags): Don't set BSF_LOCAL for an
undefined symbol.
(translate_symbol_table): New function, split out of
slurp_symbol_table; set the BSF_DYNAMIC flag appropriately.
(NAME(aout,slurp_symbol_table)): Read dynamic symbols, if any.
(NAME(aout,slurp_reloc_table)): Read dynamic relocs, if any.
(NAME(aout,get_reloc_upper_bound)): Include dynamic reloc count in
return value.
* aoutf1.h (NAME(aout,sunos4_write_object_contents)): Don't write
out dynamic symbols or relocs against reloc symbols, since they
are already in the .text section and we wouldn't know where to
write them anyhow.
(sunos4_aout_backend): Initialize read_dynamic_symbols and
read_dynamic_relocs fields.
* aout-target.h (MY(backend_data)): Initialize
read_dynamic_symbols and read_dynamic_relocs fields.
Rob Savoye [Thu, 20 Jan 1994 23:47:09 +0000 (23:47 +0000)]
* gas/all/gas.exp, lib/gas-defs.exp, sun4/addend.exp,
sparc-solaris/addend.exp: Tweaked to fix a few bugs and to run
well under either version of expect
Ken Raeburn [Wed, 19 Jan 1994 23:52:47 +0000 (23:52 +0000)]
(alpha_howto_table): Construct 64-bit negative one values in case of
compilation on a 32-bit machine. Fix pcrel fields of some reloc types.
(alpha_bfd_reloc_type_lookup): Handle more relocation types.
Jim Kingdon [Wed, 19 Jan 1994 21:14:40 +0000 (21:14 +0000)]
* infrun.c (wait_for_inferior): Don't set frame for
step_resume_breakpoint for IN_SIGTRAMP cases.
* infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
breakpoint.c (bpstat_what): Move step_resume from its own field of
the struct bpstat_what into the main_action. Make it override
other breakpoints. This is a conservative change in the sense
that before the step resume breakpoint was a breakpoint.c
breakpoint, hitting the step resume breakpoint overrode even
calling bpstat_stop_status.
Peter Schauer [Wed, 19 Jan 1994 20:45:30 +0000 (20:45 +0000)]
* infrun.c (normal_stop): Set stop_pc after popping the dummy frame
in case execution was stopped in the called function.
* stack.c (print_frame_info, frame_info): If backtracing through
a call dummy, handle the starting source line number on a line
boundary like backtracing through sigtramp.
* sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
for call dummy frame right. Remove old test for dummy frame,
it has been unused at least since gdb-3.5.
* sparc-tdep.c (sparc_push_dummy_frame): Set return address register
of the dummy frame.
Ian Lance Taylor [Tue, 18 Jan 1994 22:27:26 +0000 (22:27 +0000)]
* config/obj-aout.c (obj_aout_frob_symbol): Try to get symbols
with explicitly marked stabs through BFD: if a symbol marked
N_UNDF | N_EXT is in the absolute section, move it to the
undefined section; move a symbol marked N_INDR into
bfd_ind_section and set the BSF_INDIRECT flag.
Ian Lance Taylor [Tue, 18 Jan 1994 21:46:46 +0000 (21:46 +0000)]
* aoutx.h (aout_link_add_symbols): Increment sym_hash as well as p
for an indirect or warning symbol.
(aout_link_write_symbols): Update sym_hash with the target of an
indirect symbol. If an indirect symbol is defined, output the
calculated value and don't output the target symbol.
Ken Raeburn [Tue, 18 Jan 1994 05:24:14 +0000 (05:24 +0000)]
* Makefile.in: Replace all occurrances of "rootme" with "r" and "$${rootme}"
with "$$r", to increase the likelihood that the do-* commands (plus user
environment) will fit SCO limits.
Jim Kingdon [Tue, 18 Jan 1994 04:29:34 +0000 (04:29 +0000)]
* ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
* inflow.c (terminal_ours_1): When discussing how to deal with the
tty state, make note of query() as well as readline.
Jeff Law [Tue, 18 Jan 1994 04:08:30 +0000 (04:08 +0000)]
* gdb.disasm/hppa.s: Add new tests for sfu and copr instructions.
Enable "diag" instruction. Delete copr from fpu_misc_tests, it's
in the copr tests now.
* gdb.disasm/hppa.exp: Run new sfu and copr tests. Do not expect
copr in the fpu_misc tests anymore. fpu_misc tests are no longer
expected to fail.
Jeff Law [Tue, 18 Jan 1994 04:04:36 +0000 (04:04 +0000)]
* config/pa/tm-hppa.h (unwind_table_entry): Use one of the
reserved fields to hold a stub unwind entry type. Fix typo.
(stub_unwind_entry): New structure for raw stub unwind entries.
(stub_unwind_types): The types of stubs we may encounter.
(UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
* hppa-tdep.c (rp_saved): Use additional information provided
by linker stub unwind descriptors.
(frameless_function_invocation): Likewise.
(frame_chain_valid): Likewise.
* paread.c (compare_unwind_entries): New function for sorting
unwind table entries.
(read_unwind_info): Rewrite to remove dependency on host endianness.
Read in data from the $UNWIND_END$ subspace which contains linker
stub unwind descriptors. Merge that data into the basic unwind
table.
Jim Kingdon [Tue, 18 Jan 1994 03:42:30 +0000 (03:42 +0000)]
* xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
from either the symbol name or the auxent.
* coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
no longer static.
* objdump.c (stab_name): Allocate dynamically.
(stab_print): Use pointers to strings instead of char arrays.
(dump_stabs): Change alloc and init of arrays appropriately.
(dump_stabs_1): Always decide whether to print stab_name or
the stab's type number, if unnamed.
Per Bothner [Sun, 16 Jan 1994 03:39:57 +0000 (03:39 +0000)]
Merge in changes from bash-1.13. The most obvious one is
that the file readline.c has been split into multiple files.
* bind.c, complete.c, dispay.c, isearch.c, parens.c, rldefs.h,
rltty.c, search.c signals.c, tilde.c, tilde.h, xmalloc.c: New files.
Per Bothner [Sun, 16 Jan 1994 03:35:19 +0000 (03:35 +0000)]
* main.c (show_commands): Make return type of extern
history_get be HIST_ENTRY, rather than struct _hist_entry.
(The latter loses with the upcoming merged readline.)
* mpw-build.in: New file, top-level build script fragment for MPW.
* mpw-configure: New file, configure script for MPW.
* mpw-config.in: New file, config fragment for MPW.