Michael Meissner [Sun, 2 Jun 1996 15:40:16 +0000 (15:40 +0000)]
Add Solaris and Linux emulations
Ian Lance Taylor [Sun, 2 Jun 1996 01:55:28 +0000 (01:55 +0000)]
* config/tc-mips.c (md_parse_option): Check for a 64 bit format
before permitting -64.
* output-file.c (output_file_create): Remove duplicate
bfd_perror.
Ian Lance Taylor [Sun, 2 Jun 1996 01:51:55 +0000 (01:51 +0000)]
* elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
(bfd_mips_elf64_swap_reginfo_out): Move from here...
* elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
(bfd_mips_elf64_swap_reginfo_out): ...to here.
Ian Lance Taylor [Fri, 31 May 1996 21:46:14 +0000 (21:46 +0000)]
* config/tc-mips.c (md_begin): If -64, create a .MIPS.options
section rather than a .reginfo section.
(mips_elf_final_processing): If -64, write out 64 bit RegInfo
information.
Ian Lance Taylor [Fri, 31 May 1996 21:43:35 +0000 (21:43 +0000)]
* elf64-mips.c: Improve reloc special_functions and handling of
SHT_MIPS_OPTIONS section.
* elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
mips_elf_hi16_reloc and make globally visible.
(_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
make globally visible.
(_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
make globally visible.
(_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
and make globally visible.
(gprel16_with_gp): Check howto->src_mask before using value in
insn.
(_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
and make globally visible.
(gprel32_with_gp): Check howto->src_mask before fetching value.
(bfd_mips_elf_swap_options_in): New function.
(bfd_mips_elf_swap_options_out): New function.
(_bfd_mips_elf_set_private_flags): Rename from
mips_elf_set_private_flags and make globally visible.
(_bfd_mips_elf_copy_private_bfd_data): Rename from
mips_elf_copy_private_bfd_data and make globally visible.
(_bfd_mips_elf_merge_private_bfd_data): Rename from
mips_elf_merge_private_bfd_data and make globally visible.
(_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
for a SHT_MIPS_OPTIONS section.
(mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
(_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
name of a SHT_MIPS_OPTIONS section.
(_bfd_mips_elf_set_section_contents): New function.
(mips_elf32_section_processing): Set the GP value in a
SHT_MIPS_OPTIONS section.
(_bfd_mips_elf_find_nearest_line): Rename from
mips_elf_find_nearest_line and make globally visible.
(bfd_elf32_set_section_contents): Define.
* elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
(_bfd_mips_elf_lo16_reloc): Declare.
(_bfd_mips_elf_gprel16_reloc): Declare.
(_bfd_mips_elf_got16_reloc): Declare.
(_bfd_mips_elf_gprel32_reloc): Declare.
(_bfd_mips_elf_set_private_flags): Declare.
(_bfd_mips_elf_copy_private_bfd_data): Declare.
(_bfd_mips_elf_merge_private_bfd_data): Declare.
(_bfd_mips_elf_find_nearest_line): Declare.
(_bfd_mips_elf_set_section_contents): Declare.
Ian Lance Taylor [Fri, 31 May 1996 18:12:22 +0000 (18:12 +0000)]
* elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
elf_info_to_howto.
(elf_info_to_howto): Define.
* elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
elf_info_to_howto.
(elf_info_to_howto): Define.
* elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
elf_info_to_howto.
(elf_info_to_howto): Define.
Ian Lance Taylor [Fri, 31 May 1996 18:10:44 +0000 (18:10 +0000)]
* nm.c (filter_symbols): Check for BSF_WEAK as well as
BSF_GLOBAL.
* objcopy.c (filter_symbols): Likewise.
Jeff Law [Fri, 31 May 1996 17:11:51 +0000 (17:11 +0000)]
Keep abug.exp
Ian Lance Taylor [Fri, 31 May 1996 16:43:12 +0000 (16:43 +0000)]
* emultempl/pe.em (sort_sections): Don't assume that a
wild_statement has a section name.
Ian Lance Taylor [Fri, 31 May 1996 05:10:20 +0000 (05:10 +0000)]
* config/tc-mips.c (load_register): If mips_isa < 3, permit a 32
bit value with the high bit set.
Michael Meissner [Fri, 31 May 1996 01:16:10 +0000 (01:16 +0000)]
Make ! a comment only under Solaris; Add .rdata/.rodata pseduo ops
Ian Lance Taylor [Thu, 30 May 1996 23:08:47 +0000 (23:08 +0000)]
* config/tc-mips.c (mips_64): New static variable.
(mips_target_format): If mips_64, return elf64 targets rather than
elf32 ones.
(md_longopts): Add "32" and "64".
(md_parse_option): Handle -32 and -64.
(md_show_usage): Mention -32 and -64.
(cons_fix_new_mips): If mips_64, don't convert an 8 byte reloc to
a 4 byte one.
Ian Lance Taylor [Thu, 30 May 1996 23:04:52 +0000 (23:04 +0000)]
* read.c (s_lcomm): Set section flags for .sbss section.
Ian Lance Taylor [Thu, 30 May 1996 22:33:51 +0000 (22:33 +0000)]
* elf64-mips.c: Extensive additions to provide better support for
writing files and for gas.
* elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
of mips_elf_object_p.
(mips_elf32_object_p): Rename from mips_elf_object_p; call
_bfd_mips_elf_object_p.
(_bfd_mips_elf_final_write_processing): Rename from
mips_elf_final_write_processing and make globally visible.
(_bfd_mips_elf_fake_sections): Rename from
mips_elf_fake_sections and make globally visible.
(_bfd_mips_elf_section_from_bfd_section): Rename from
mips_elf_section_from_bfd_section and make globally visible.
(_bfd_mips_elf_section_processing): New function, broken out of
mips_elf_section_processing.
(mips_elf32_section_processing): Rename from
mips_elf_section_processing; call
_bfd_mips_elf_section_processing.
(_bfd_mips_elf_symbol_processing): Rename from
mips_elf_symbol_processing and make globally visible.
(_bfd_mips_elf_read_ecoff_info): Rename from
mips_elf_read_ecoff_info and make globally visible.
(mips_elf32_ecoff_debug_swap): Rename from
mips_elf_ecoff_debug_swap.
* elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
struct symbol_cache_entry.
(_bfd_elf_validate_reloc): New function, moved in from
elfcode.h:validate_reloc.
* elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
to _bfd_elf_validate_reloc. Change all callers.
* elf-bfd.h (bfd_section_from_shdr): Declare.
(_bfd_elf_symbol_from_bfd_symbol): Declare.
(_bfd_elf_validate_reloc): Declare.
(_bfd_mips_elf_object_p): Declare.
(_bfd_mips_elf_fake_sections): Declare.
(_bfd_mips_elf_section_from_bfd_section): Declare.
(_bfd_mips_elf_section_processing): Declare.
(_bfd_mips_elf_symbol_processing): Declare.
(_bfd_mips_elf_read_ecoff_info): Declare.
(_bfd_mips_elf_final_write_processing): Declare.
* elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
if already defined.
Michael Meissner [Thu, 30 May 1996 19:22:16 +0000 (19:22 +0000)]
Make ! a comment character
Jeff Law [Thu, 30 May 1996 17:38:32 +0000 (17:38 +0000)]
* gdb.base/callfuncs.exp: Finish last change -- make sure the
prototype information ends up in the compiler info file.
Mark Alexander [Thu, 30 May 1996 16:58:48 +0000 (16:58 +0000)]
* dsrec.c (make_srec): Fix calculation of address size
to allow addresses less than 0x100.
Ian Lance Taylor [Thu, 30 May 1996 16:43:11 +0000 (16:43 +0000)]
* elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
(mips_elf_final_write_processing): Likewise.
Ian Lance Taylor [Thu, 30 May 1996 16:36:27 +0000 (16:36 +0000)]
* mips.h (E_MIPS_ARCH_4): Define.
Michael Meissner [Thu, 30 May 1996 14:40:22 +0000 (14:40 +0000)]
Make 4 argument .stabd into .stabn on PowerPC Solaris
Wilfried Moser [Thu, 30 May 1996 11:26:24 +0000 (11:26 +0000)]
* ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
Ian Lance Taylor [Wed, 29 May 1996 20:46:07 +0000 (20:46 +0000)]
* config/tc-mips.c (macro): When passing X_add_number to
macro_build, cast it to int first.
Ian Lance Taylor [Wed, 29 May 1996 20:36:05 +0000 (20:36 +0000)]
* gas/mips/jal-xgot.d: Correct for 64 bit output.
Ian Lance Taylor [Wed, 29 May 1996 20:33:00 +0000 (20:33 +0000)]
64-bit MIPS ELF ABI objdump support:
* elf64-mips.c: New file.
* Makefile.in: Rebuild dependencies.
(BFD64_BACKENDS): Add elf64-mips.o.
(BFD64_BACKENDS_CFILES): Add elf64-mips.c.
* config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
bfd_elf64_littlemips_vec to targ_selvecs.
(mips*-*-elf*): Likewise.
* confingure.in: Add bfd_elf64_bigmips_vec and
bfd_elf64_littlemips_vec to vector switch.
* configure: Rebuild.
* elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
broken out of mips_elf_section_from_shdr.
(mips_elf32_section_from_shdr): Rename from
mips_elf_section_from_shdr. Call new function.
(elf_backend_section_from_shdr): Update name of renamed function.
* elf-bfd.h (struct elf_size_info): Change second parameter of
write_out_phdrs to be const. Likewise for second parameter of
swap_symbol_out.
(struct bfd_elf_section_data): Add rel_hdr2 field.
(bfd_elf32_swap_symbol_in): Change second parameter to be const.
(bfd_elf32_swap_symbol_out): Likewise.
(bfd_elf32_swap_reloc_in): Likewise.
(bfd_elf32_swap_reloc_out): Likewise.
(bfd_elf32_swap_reloca_in): Likewise.
(bfd_elf32_swap_reloca_out): Likewise.
(bfd_elf32_swap_phdr_in): Likewise.
(bfd_elf32_swap_phdr_out): Likewise.
(bfd_elf32_swap_dyn_in): Likewise.
(bfd_elf32_swap_dyn_out): Likewise.
(bfd_elf32_slurp_symbol_table): Declare.
(bfd_elf32_write_shdrs_and_ehdr): Declare.
(bfd_elf32_write_out_phdrs): Declare.
(bfd_elf64_swap_symbol_in): Change second parameter to be const.
(bfd_elf64_swap_symbol_out): Likewise.
(bfd_elf64_swap_reloc_in): Likewise.
(bfd_elf64_swap_reloc_out): Likewise.
(bfd_elf64_swap_reloca_in): Likewise.
(bfd_elf64_swap_reloca_out): Likewise.
(bfd_elf64_swap_phdr_in): Likewise.
(bfd_elf64_swap_phdr_out): Likewise.
(bfd_elf64_swap_dyn_in): Likewise.
(bfd_elf64_swap_dyn_out): Likewise.
(bfd_elf64_slurp_symbol_table): Declare.
(bfd_elf64_write_shdrs_and_ehdr): Declare.
(bfd_elf64_write_out_phdrs): Declare.
(_bfd_mips_elf_section_from_shdr): Declare.
* elf.c (bfd_section_from_shdr): Remove assertion requiring
SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc
section for the section, add the new one to rel_hdr2. Increment
reloc_count rather than setting it.
* elfcode.h (elf_slurp_symbol_table): Define name as macro.
Remove static declaration.
(elf_write_shdrs_and_ehdr): Define name as macro.
(elf_write_out_phdrs): Likewise.
(elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
(elf_swap_shdr_in, elf_swap_shdr_out): Declare.
(elf_swap_symbol_in): Change second parameter to be const.
(elf_swap_symbol_out): Likewise.
(elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
(elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
(elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
(elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
(elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
(elf_write_out_phdrs): Rename from write_out_phdrs. Change second
parameter to be const. Make non-static.
(elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
Make non-static.
(elf_slurp_symbol_table): Make non-static.
(NAME(_bfd_elf,size_info)): Update names of renamed functions.
* elfxx-target.h (elf_info_to_howto): Define if not defined.
(elf_backend_size_info): Likewise.
(elfNN_bed): Use elf_backend_size_info.
* targets.c (bfd_elf64_bigmips_vec): Declare.
(bfd_elf64_littlemips_vec): Declare.
(bfd_target_vector): Add bfd_elf64_bigmips_vec and
bfd_elf64_littlemips_vec if BFD64 is defined.
Ian Lance Taylor [Wed, 29 May 1996 20:10:22 +0000 (20:10 +0000)]
* scripttempl/elfmips.sc: Quote test -z argument.
Ian Lance Taylor [Wed, 29 May 1996 19:36:40 +0000 (19:36 +0000)]
* mips.h (Elf64_Mips_External_Rel): Define.
(Elf64_Mips_Internal_Rel): Define.
(Elf64_Mips_External_Rela, Elf64_Mips_Internal_Rela): Define.
(RSS_*): Define.
Ian Lance Taylor [Wed, 29 May 1996 17:14:24 +0000 (17:14 +0000)]
* ld.texinfo: Clarify the CONSTRUCTORS command.
Geoffrey Noer [Tue, 28 May 1996 23:20:12 +0000 (23:20 +0000)]
Removed EINVAL reference in remote-mips.c, and put a hardcoded 22 in its
place which reflects what the boards return.
Tom Tromey [Tue, 28 May 1996 20:34:21 +0000 (20:34 +0000)]
* configure: Regenerated.
* aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
(CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
Ian Lance Taylor [Tue, 28 May 1996 19:34:07 +0000 (19:34 +0000)]
* coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
zeroes, in alignment holes.
Stan Shebs [Tue, 28 May 1996 19:32:11 +0000 (19:32 +0000)]
* mpw-README: Document GCCIncludes.
Ian Lance Taylor [Tue, 28 May 1996 19:08:40 +0000 (19:08 +0000)]
* config/tc-z8k.c (md_apply_fix): Handle fx_r_type of 0, as
created by emit_expr.
Ian Lance Taylor [Tue, 28 May 1996 17:33:23 +0000 (17:33 +0000)]
* symbols.c (symbol_create): If bfd_make_empty_symbol fails, call
as_perror rather than assert.
Ian Lance Taylor [Tue, 28 May 1996 16:41:17 +0000 (16:41 +0000)]
* configure: Rebuild with autoconf 2.10.
Ian Lance Taylor [Tue, 28 May 1996 15:48:13 +0000 (15:48 +0000)]
* aoutx.h (NAME(aout,find_nearest_line)): Make room for the
potential leading underscore in the allocated buffer.
Fred Fish [Sun, 26 May 1996 22:17:46 +0000 (22:17 +0000)]
* configure.in (alpha-*-linux*): Set enable_shared to yes.
Fred Fish [Sun, 26 May 1996 22:15:47 +0000 (22:15 +0000)]
* sysdep-linux.h: New file.
* display.c: Add include of "sysdep.h" to get HAVE_VARARGS_H.
* configure.in: Change pattern i[345]86-*-linux* into *-*-linux* to
support non-x86 based Linux platforms.
Fred Fish [Sun, 26 May 1996 22:09:41 +0000 (22:09 +0000)]
Update with new/changed files.
Fred Fish [Sun, 26 May 1996 22:09:20 +0000 (22:09 +0000)]
Forgot to include in last checking.
Fred Fish [Sun, 26 May 1996 21:41:40 +0000 (21:41 +0000)]
Changes from: David Mosberger-Tang <davidm@azstarnet.com>
* NEWS: Add Alpha Linux as a new native configuration.
* mdebugread.c (parse_symbol): When we find a malloc() symbol with
return type VOID, assume no debugging info is available for that
object file and patch the return value into VOID *. Otherwise,
operations requiring an implicit call to malloc() will fail.
* infrun.c (wait_for_inferior): The criterion to detect entering a
sigtramp handler is now: (a) the current pc is inside a sigtramp
handler, (b) the previous pc is not in a sigtramp handler, and (c)
the current stack pointer is "inner" than the old one. Condition
(c) is new to avoid mistaking a return from a signal handler into
sigtramp as a new sigtramp invocation.
* dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
int may not be big enough to hold an address.
(dcache_hit): Ditto.
(dcache_peek_byte): Fix indentation.
* configure.in (alpha-*-linux*): Add target.
* configure: Rebuild
* config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
(SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
(DYNAMIC_SIGTRAMP_OFFSET): Ditto.
(SIGCONTEXT_ADDR): Ditto.
(FRAME_PAST_SIGTRAMP_FRAME): Ditto.
* config/alpha/alpha-linux.mh: New file.
* config/alpha/alpha-linux.mt: Ditto.
* config/alpha/nm-linux.h: Ditto.
* config/alpha/tm-alphalinux.h: Ditto.
* config/alpha/xm-alphalinux.h: Ditto.
* config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
* config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
xm-alphaosf.h.
* config/alpha/alpha-osf2.mh: Ditto.
* blockframe.c (find_pc_partial_function): Pass PC to
SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
that detect sigtramp code via designated code sequences (as is the
case for Linux/Alpha, for example).
* config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
to ignore new PC argument.
* config/m68k/tm-hp300bsd.h: Ditto.
* config/vax/tm-vax.h: Ditto.
* alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
(alpha_osf_skip_sigtramp_frame): Ditto.
(push_sigtramp_desc): Ditto.
(alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
sigcontext address from frame.
(alpha_saved_pc_after_call): When in sigtramp, use
alpha_frame_saved_pc() instead of read-register().
(after_prologue): When inside a dynamically generated sigtramp
function, there is no prologue, so return address of first
instruction.
(alpha_in_prologue): Fix typo in comment.
(find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
whether we're inside a dynamicaly generated sigtramp function. If
so, create and push and appropriate procedure descriptor.
(alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
the frame past a sigtramp frame (if the current frame is indeed a
sigtramp function).
(init_extra_frame_info): Don't read next frame register off of
stack-pointer when inside a dynamiccaly generated sigtramp.
(alpha_pop_frame): Also unlink and destroy procedure descriptors
created for dynamically generated sigtramp functions.
* alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
<alpha/ptrace.h> instead of <machine/reg.h>
Ian Lance Taylor [Sat, 25 May 1996 01:25:27 +0000 (01:25 +0000)]
* config/tc-mips.c (mips_ip): Mark sections created to hold
floating point information as read only.
Michael Meissner [Fri, 24 May 1996 22:10:52 +0000 (22:10 +0000)]
Add better defaults for AIX3, AIX4
Michael Meissner [Fri, 24 May 1996 19:12:21 +0000 (19:12 +0000)]
More changes for GO32 canadian cross builds
Michael Meissner [Fri, 24 May 1996 19:05:17 +0000 (19:05 +0000)]
More changes for GO32 canadian cross builds
Michael Meissner [Fri, 24 May 1996 18:30:52 +0000 (18:30 +0000)]
Do not put small common symbols into .sbss if ld -r
Michael Meissner [Fri, 24 May 1996 14:15:17 +0000 (14:15 +0000)]
Allow psim to be built on go32
Ian Lance Taylor [Thu, 23 May 1996 23:09:44 +0000 (23:09 +0000)]
* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
file, not impfile.
PR 9759.
Michael Meissner [Thu, 23 May 1996 21:58:22 +0000 (21:58 +0000)]
Add .skip as a synonym for .space
Michael Meissner [Thu, 23 May 1996 21:49:18 +0000 (21:49 +0000)]
Allow bogus .stabd with 4 arguments for PowerPC Solaris
Jeff Law [Thu, 23 May 1996 21:35:09 +0000 (21:35 +0000)]
* h8300-tdep.c (IS_PUSH): Refine.
(IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
(IS_SUB4_SP, IS_SUBL_SP): New macros.
(h8300_skip_prologue): Handle H8/300H prologue code sequences.
(examine_prologue): Handle addresses from 0x010000 to 0xffffff
when in H8/300H mode. Get the return pointer's address correctly
for the H8/300H. Handle H8/300H prolouge code sequences.
Avoiding major breakage on the H8/300H, and on the eval board. Jeez, did
anyone even try to debug H8/300H code with gdb in the past?!?
Jeff Law [Thu, 23 May 1996 21:15:15 +0000 (21:15 +0000)]
* symfile.c (generic_load): Print the starting address
of the file just loaded.
For informational purposes.
Fred Fish [Thu, 23 May 1996 20:38:54 +0000 (20:38 +0000)]
* gdb.base/callfuncs.exp: Remove the compiler info file prior to
attempting to regenerate it. Eliminate use of a temporary file
and just generate the info file directly. Source it immediately,
for consistency of use.
* gdb.base/corefile.exp: Ditto
* gdb.base/exprs.exp: Ditto.
* gdb.base/funcargs.exp: Ditto.
* gdb.base/langs.exp: Ditto.
* gdb.base/list.exp: Ditto.
* gdb.base/mips_pro.exp: Ditto.
* gdb.base/nodebug.exp: Ditto.
* gdb.base/opaque.exp: Ditto.
* gdb.base/ptype.exp: Ditto.
* gdb.base/scope.exp: Ditto.
* gdb.base/setvar.exp: Ditto.
* gdb.base/signals.exp: Ditto.
* gdb.base/whatis.exp: Ditto.
* gdb.c++/templates.exp: Ditto.
* gdb.c++/virtfunc.exp: Ditto.
* gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide
whether or not to add -lstdc++ to the compile command line args.
Ian Lance Taylor [Thu, 23 May 1996 19:28:18 +0000 (19:28 +0000)]
* xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
undefined symbols when creating a shared library.
PR 9751.
Michael Meissner [Thu, 23 May 1996 19:20:33 +0000 (19:20 +0000)]
Silence warnings from Solaris PowerPC cc
Stan Shebs [Thu, 23 May 1996 19:12:45 +0000 (19:12 +0000)]
* mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
Jeff Law [Thu, 23 May 1996 04:25:43 +0000 (04:25 +0000)]
* compile.c (sim_resume): Correctly handle divu.
More bugfixing. HMSE
David Edelsohn [Wed, 22 May 1996 19:09:32 +0000 (19:09 +0000)]
* ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
if final link.
* emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
(sort_by_section_name, sort_sections_1): New functions.
(sort_sections): Only sort by file name sections in .idata.
Add "Grouped Sections" support.
(gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
Sections.
(gld${EMULATION_NAME}_place_section): Delete.
* scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
(.CRT,.rsrc): Rewrite to use Grouped Section support.
Rob Savoye [Wed, 22 May 1996 18:12:32 +0000 (18:12 +0000)]
* configure.in: Only built erc32 simulator on Unix hosts as it
uses pseudo ttys.
* configure: Regenerated with autoconf 2.8.
Stan Shebs [Tue, 21 May 1996 21:36:46 +0000 (21:36 +0000)]
* mpw-eppcmac.c: Update to reflect changes to aix.em.
Mark Alexander [Tue, 21 May 1996 06:09:23 +0000 (06:09 +0000)]
* dsrec.c (load_srec): Add WAITACK parameter, for machines
like EST visionICE that send back an ACK after each S-record.
* monitor.c (monitor_wait_srec_ack): New function.
(monitor_load): Pass monitor_wait_srec_ack to load_srec
if the monitor's MO_SREC_ACK flag is set.
* monitor.h: Define MO_SREC_ACK flag.
* remote-est.c (est_cmds): Add MO_SREC_ACK flag.
* sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
* srec.h: Add WAITACK parameter to load_srec prototype.
Geoffrey Noer [Mon, 20 May 1996 17:12:05 +0000 (17:12 +0000)]
Changes to configure.in noted
Geoffrey Noer [Mon, 20 May 1996 17:10:24 +0000 (17:10 +0000)]
Configure and build make for *-*-cygwin32 targets
Rob Savoye [Mon, 20 May 1996 03:25:57 +0000 (03:25 +0000)]
* config/sparc/sparclite.mt: Add the sparc simulator.
Rob Savoye [Mon, 20 May 1996 03:18:13 +0000 (03:18 +0000)]
Sanitize support for the ESA sparc simulator.
Rob Savoye [Mon, 20 May 1996 03:13:02 +0000 (03:13 +0000)]
* func.c(bfd_load): Don't try to print the filename if the pfbd is
NULL.
* interf.c(sim_load): Pass the whole string, not just the first
byte.
Rob Savoye [Mon, 20 May 1996 02:46:07 +0000 (02:46 +0000)]
New sparc simulator from the ESA.
Fred Fish [Mon, 20 May 1996 02:05:55 +0000 (02:05 +0000)]
* defs.h (read_command_lines, query_hook): Update prototypes.
(readline_begin_hook, readline_hook, readline_end_hook): Declare.
* breakpoint.c (commands_command): Build message in temporary buffer
and pass that, as well as tty control flag, to read_command_lines.
* top.c (readline_begin_hook, readline_hook, readline_end_hook):
Define here.
(command_loop): Check for non-NULL instream before looping.
(command_line_input): Use readline_hook when appropriate, to get
user input from a GUI window.
(read_next_line): Also build prompt if getting user input from a GUI.
(recurse_read_control_structure): Fix typo in comment.
(read_command_lines): Use passed in prompt and tty flag to decide how
to build message. Use readline_begin_hook when appropriate, to set
up a GUI interaction window. Just return head, whether NULL or not,
after using readline_end_hook to complete GUI interaction.
(define_command, document_command): Build message in a temporary
buffer and pass it to read_command_lines, along with tty flag.
* gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
New functions.
(tk_command_loop): Set instream to NULL to enable Tk user interaction.
(gdbtk_init): Set readline_begin_hook, readline_hook,
and readline_end_hook.
* gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
gdbtk_tcl_readline_end): New functions.
(tclsh): Pack scroll bar on right side of window, not left.
PR 9385
David Edelsohn [Mon, 20 May 1996 00:01:03 +0000 (00:01 +0000)]
* ldlang.c (dprint_statement): Stop printing at end of list.
Steve Chamberlain [Sat, 18 May 1996 20:28:30 +0000 (20:28 +0000)]
Support for --force-exe-suffix
* ld.h (args_type): Add force_exe_suffix.
* ld.texinfo: Add documentation.
* ldmain.c (main): Add support for option.
* lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
(ld_options, parse_args): Add support for option.
Peter Schauer [Sat, 18 May 1996 09:53:12 +0000 (09:53 +0000)]
* blockframe.c (frameless_look_for_prologue):
Add FUNCTION_START_OFFSET only if func_start is non-zero.
* minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
pc is not in a known section.
* stack.c (print_frame_info): Remove check for fi->pc in known
section, now handled by lookup_minimal_symbol_by_pc.
Fred Fish [Sat, 18 May 1996 00:24:41 +0000 (00:24 +0000)]
* gdbtk.tcl (create_command_window): Change a misspelled "get"
to the intended "cget".
(delete_line): Fix so it deletes the current line at the
insertion cursor.
Stan Shebs [Fri, 17 May 1996 20:44:15 +0000 (20:44 +0000)]
move stub.c up to main dir
Stan Shebs [Fri, 17 May 1996 20:43:13 +0000 (20:43 +0000)]
keep sh-stub.c
Stan Shebs [Fri, 17 May 1996 20:41:56 +0000 (20:41 +0000)]
* sh-stub.c: New file, was config/sh/stub.c.
Fred Fish [Fri, 17 May 1996 02:36:13 +0000 (02:36 +0000)]
* gdbtk.tcl (gdb_prompt): Set this early on.
(create_command_window): Use gdb_prompt rather than "(gdb) ".
(gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
(tclsh): If an evaluation window already exists, just bring it
to the front instead of trying to create another.
* gdbtk.c (tk_command_loop): New function.
(gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
Fred Fish [Thu, 16 May 1996 23:39:15 +0000 (23:39 +0000)]
* gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
implement a tcl evaluation window for gdbtk maintainers to use.
Ian Lance Taylor [Thu, 16 May 1996 20:49:38 +0000 (20:49 +0000)]
* cache.c (bfd_open_file): Unlink the file before opening it for
write. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
* opncls.c (bfd_fdopenr): Set opened_once.
Tom Tromey [Thu, 16 May 1996 20:35:38 +0000 (20:35 +0000)]
Added lose-inet to docs
Ian Lance Taylor [Thu, 16 May 1996 19:57:12 +0000 (19:57 +0000)]
* config/tc-sh.h (struct sh_segment_info_type): Define.
(TC_SEGMENT_INFO_TYPE): Define.
(sh_frob_label): Declare.
(tc_frob_label): Define.
(sh_flush_pending_output): Declare.
(md_flush_pending_output): Define.
* config/tc-sh.c (md_assemble): If relaxing, emit a R_SH_CODE
reloc before the instruction if necessary.
(sh_frob_label): New function.
(sh_flush_pending_output): New function.
(sh_coff_frob_file): Ignore ALIGN, CODE, DATA, and LABEL relocs
when looking for the reloc for the target of .uses.
(md_convert_frag): Fix printf format (%0xlx to 0x%lx).
(sh_force_relocation): Force CODE, DATA, and LABEL relocs to be
emitted.
(md_apply_fix): Ignore CODE, DATA, and LABEL relocs.
(sh_coff_reloc_mangle): Force CODE, DATA, and LABEL relocs to use
the absolute symbol.
Tom Tromey [Thu, 16 May 1996 18:05:26 +0000 (18:05 +0000)]
* gdbtk.tcl (files_command): Correctly insert list of files into
listbox widget.
Tom Tromey [Thu, 16 May 1996 17:47:16 +0000 (17:47 +0000)]
* gdbtk.tcl (files_command): listbox command no longer accepts
-geometry.
Michael Meissner [Thu, 16 May 1996 15:03:24 +0000 (15:03 +0000)]
Check for sys/ioctl.h
Jeff Law [Thu, 16 May 1996 04:49:12 +0000 (04:49 +0000)]
* top.c (read_next_line): Fix thinkos. From Don Seeley.
Net buglet.
Stan Shebs [Thu, 16 May 1996 00:31:40 +0000 (00:31 +0000)]
* gdbtk.tcl (create_command_window): If command window's buffer
is disabled, don't execute any of the key bindings.
Jim Wilson [Wed, 15 May 1996 19:53:31 +0000 (19:53 +0000)]
* emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
Ian Lance Taylor [Wed, 15 May 1996 16:26:20 +0000 (16:26 +0000)]
* config/tc-i386.c (md_assemble): Make sure the opcode suffix
matches the register size.
PR 9700.
Jeff Law [Wed, 15 May 1996 15:04:33 +0000 (15:04 +0000)]
* gdb.base/break.exp: Ignore compiler warnings when compiling
break.c.
* gdb.base/callfuncs.exp: Don't run these tests on the h8300.
* gdb.base/default.exp: Add h8300 xfails. Handle messages
from remote-sim.
* gdb.base/exprs.exp: Add h8300 xfails.
* gdb.base/funcargs.exp: Likewise.
* gdb.base/nodebug.exp: Likewise.
* gdb.base/printcmds.exp: Likewise.
* gdb.base/ptype.exp: Likewise.
* gdb.base/setvar.exp: Handle sizeof (int) != 4 for h8300. Add
h8300 xfails.
* gdb.base/return.exp: Handle float/double precision problems
on the h8300.
* gdb.base/funcargs.c: Explicitly make last constant argument to
call_after_alloca_subr an unsigned long type.
* gdb.base/return.c: Include stdio.h.
Testsuite work for the H8/300 -gstabs. HMSE.
Jeff Law [Wed, 15 May 1996 14:40:31 +0000 (14:40 +0000)]
* config/obj-coff.c (count_entries_in_chain): Ignore Fixups with
fx_done set.
(do_relocs_for): Likewise.
(fixup_segment): Don't just quit if linkrelax is set. Try to
apply non pc-relative sym1-sym2 fixups, even if linkrelax is
nonzero.
So function-relative stabs will work on the H8/300. HMSE.
Jeff Law [Wed, 15 May 1996 14:28:34 +0000 (14:28 +0000)]
* coffread.c (coff_symtab_read): Handle C_LABEL symbols like
C_STAT symbols.
* h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
Flush cached frames just before exiting.
* remote-sim.c (gdbsim_resume): Complain if the program isn't
being run.
* config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
Fix some bugs exposed by the testsuite. HMSE.
Stu Grossman [Wed, 15 May 1996 01:09:57 +0000 (01:09 +0000)]
* procfs.c (procfs_thread_alive procfs_stop): Make static.
* (procfs_pid_to_str): New routine to print out thread id's in an
intelligible manner.
* sol-thread.c (sol_thread_fetch_registers): Re-order manner in
which supply_register is called to fix bug with writing writing
individual regs.
* config/sparc/tm-sun4sol2.h: Define default for
target_pid_to_str in case host lacks libthread_db.
Ian Lance Taylor [Tue, 14 May 1996 22:31:11 +0000 (22:31 +0000)]
* som.c (som_slurp_reloc_table): Clear external_relocs cache after
freeing it.
PR 9693.
Ian Lance Taylor [Tue, 14 May 1996 16:55:42 +0000 (16:55 +0000)]
* libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
the code unconditionally.
Stu Grossman [Tue, 14 May 1996 07:02:56 +0000 (07:02 +0000)]
* Makefile.in config.in configure configure.in
config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
and pthread support, since pre-2.5 systems don't come with
libthread_db.so.1.
* procfs.c (info_proc): Use int instead of id_t. Old versions of
Irix don't see to define this.
Fred Fish [Tue, 14 May 1996 02:11:53 +0000 (02:11 +0000)]
* gdbtk.c (tk_command): Catch case where no argument is given
since this will cause the tcl interpreter to dump core.
Ian Lance Taylor [Tue, 14 May 1996 00:25:50 +0000 (00:25 +0000)]
* libcoff-in.h (struct pei_section_tdata): Define structure.
(pei_section_data): Define macro.
* libcoff.h: Rebuild.
* coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
store s_paddr field in pei_section_data.
(coff_compute_section_file_positions): Use pei_section_data rather
than _cooked_size, and don't overwrite an existing value.
(coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
* peicode.h (coff_bfd_copy_private_section_data): Define if
COFF_IMAGE_WITH_PE.
(pe_bfd_copy_private_section_data): New static function if
COFF_IMAGE_WITH_PE.
PR 9667.
Jeff Law [Mon, 13 May 1996 23:53:54 +0000 (23:53 +0000)]
* top.c (execute_control_command, case while_control): Allow
a while command to be interrupted.
Fixes net bug.
Stu Grossman [Mon, 13 May 1996 23:22:32 +0000 (23:22 +0000)]
* sol-thread.c: More cleanup, add comments.
* (sol_thread_resume): Prevent people from trying to step
inactive threads.
* (sol_thread_wait sol_thread_fetch_registers
sol_thread_store_registers): Remove unnecessary check for
sol_thread_active. These routines won't get called unless threads
are active.
Stan Shebs [Mon, 13 May 1996 18:34:09 +0000 (18:34 +0000)]
SH3-E support from Allan Tajii <atajii@hmsi.com>:
* sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
float registers.
(sh3e_reg_names): New register name array.
(sh_processor_type_table): Add sh3e processor type.
* config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
(REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
full set of registers.
* remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
(e7000_fetch_registers, e7000_wait): Use them.
* sh3-rom.c (sh3_regnames): Add float registers.
(sh3e_cmds, sh3e_ops): New globals.
(sh3e_open): New function.
(_initialize_sh3_rom): Rename from _initialize_sh3, set up
sh3e target vector.
* gdbwin.c (reg_order) [TARGET_SH]: Update for SH3-E.
* initfake.c: Call _initialize_sh3_rom instead of _initialize_sh3.
Michael Meissner [Mon, 13 May 1996 17:25:06 +0000 (17:25 +0000)]
More progressive fixes
Stu Grossman [Fri, 10 May 1996 23:05:01 +0000 (23:05 +0000)]
* sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
Print out messages instead of codes for thread_db errors. Make
access macros for thread and lwp manipulation. Make cleanups to
fixup inferior_pid in case of errors.