platform/upstream/binutils.git
28 years ago * config/tc-i386.c (md_assemble): Make sure the opcode suffix
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.

28 years ago * gdb.base/break.exp: Ignore compiler warnings when compiling
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.

28 years ago * config/obj-coff.c (count_entries_in_chain): Ignore Fixups with
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.

28 years ago * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
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.

28 years ago * procfs.c (procfs_thread_alive procfs_stop): Make static.
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.

28 years ago * som.c (som_slurp_reloc_table): Clear external_relocs cache after
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.

28 years ago * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
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.

28 years ago * Makefile.in config.in configure configure.in
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.

28 years ago * gdbtk.c (tk_command): Catch case where no argument is given
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.

28 years ago * libcoff-in.h (struct pei_section_tdata): Define structure.
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.

28 years ago * top.c (execute_control_command, case while_control): Allow
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.

28 years ago * sol-thread.c: More cleanup, add comments.
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.

28 years ago SH3-E support from Allan Tajii <atajii@hmsi.com>:
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.

28 years agoMore progressive fixes
Michael Meissner [Mon, 13 May 1996 17:25:06 +0000 (17:25 +0000)]
More progressive fixes

28 years ago * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
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.

28 years agoSet __stack = 0 if it is referenced and not defined.
Michael Meissner [Fri, 10 May 1996 20:32:07 +0000 (20:32 +0000)]
Set __stack = 0 if it is referenced and not defined.

28 years agoAllow GOT, section relative relocations all the time with -mrelocatable
Michael Meissner [Fri, 10 May 1996 18:32:01 +0000 (18:32 +0000)]
Allow GOT, section relative relocations all the time with -mrelocatable

28 years ago * aclocal.m4: Remove unused definition of AC_C_CROSS.
Fred Fish [Fri, 10 May 1996 02:06:36 +0000 (02:06 +0000)]
* aclocal.m4: Remove unused definition of AC_C_CROSS.
* configure.in: Add powerpcle-*-solaris* host and target config
so April 30th change does not get lost next time configure is
rebuilt.

28 years agoFri May 10 00:41:17 1996 James G. Smith <jsmith@cygnus.co.uk>
Jackie Smith Cashion [Thu, 9 May 1996 23:43:58 +0000 (23:43 +0000)]
Fri May 10 00:41:17 1996  James G. Smith  <jsmith@cygnus.co.uk>

* interp.c (ColdReset): Fix boolean test.

Actually compare a boolean result, rather than the bitmasks!

28 years ago * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
Stu Grossman [Thu, 9 May 1996 21:24:20 +0000 (21:24 +0000)]
* Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
win32-nat.c, config/nm-lynx.h:  Rename thread.h to gdbthread.h to
avoid conflict with Solaris /usr/include/thread.h.

28 years ago * abug-rom.c: Config file for the older style ABug monitor thatg
Rob Savoye [Thu, 9 May 1996 18:39:15 +0000 (18:39 +0000)]
* abug-rom.c: Config file for the older style ABug monitor thatg
runs on the mvme13x boards.
* config/m68k/monitor.mt: Add abug support for m68k croos
debugging.

28 years ago * emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
Rob Savoye [Thu, 9 May 1996 15:56:58 +0000 (15:56 +0000)]
* emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
Set a new variable to signify if the final target is an embedded
system.
* scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
.text for an embedded system.

28 years ago * infcmd.c (do_registers_info): Always print the raw floating
Fred Fish [Thu, 9 May 1996 04:20:43 +0000 (04:20 +0000)]
* infcmd.c (do_registers_info):  Always print the raw floating
point value's bytes in big endian order, so the the leftmost bit
is the most significant.
PR-9540

28 years ago * breakpoint.c (clear_momentary_breakpoints): Remove dead code
Fred Fish [Wed, 8 May 1996 23:34:34 +0000 (23:34 +0000)]
* breakpoint.c (clear_momentary_breakpoints): Remove dead code
that is referenced nowhere else.
(set_breakpoint): Ditto.
(do_enable_breakpoint): Created from enable_once_breakpoint
with a couple of changes.
(enable_breakpoint): Call do_enable_breakpoint with an appropriate
bpdisp enum value to set disposition of breakpoint.
(enable_once_breakpoint): Ditto.
(enable_delete_breakpoint): Ditto.
* breakpoint.h (clear_momentary_breakpoints): Remove prototype.
* symtab.c (find_pc_line): Improve comments.
* gdbtk.c: Fix a couple of misspellings.
* xcoffread.c: Ditto.

28 years ago * srec.c (srec_set_arch_mach): Write as a function rather than a
Ian Lance Taylor [Wed, 8 May 1996 20:56:53 +0000 (20:56 +0000)]
* srec.c (srec_set_arch_mach): Write as a function rather than a
macro definition.
PR 9637.

28 years ago * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
Ian Lance Taylor [Wed, 8 May 1996 20:11:29 +0000 (20:11 +0000)]
* xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
no map, just check each member in turn to see whether it is
required.
PR 9520.

28 years agoWed May 8 15:12:58 1996 James G. Smith <jsmith@cygnus.co.uk>
Jackie Smith Cashion [Wed, 8 May 1996 14:22:12 +0000 (14:22 +0000)]
Wed May  8 15:12:58 1996  James G. Smith  <jsmith@cygnus.co.uk>

* interp.c (xfer_direct_word, xfer_direct_long,
swap_direct_word, swap_direct_long, xfer_big_word,
xfer_big_long, xfer_little_word, xfer_little_long,
swap_word,swap_long): Added.
* interp.c (ColdReset): Provide function indirection to
  host<->simulated_target transfer routines.
* interp.c (sim_store_register, sim_fetch_register): Updated to
  make use of indirected transfer routines.

28 years agoFixes for ppcboot
Michael Meissner [Wed, 8 May 1996 13:41:00 +0000 (13:41 +0000)]
Fixes for ppcboot

28 years ago * config/abug.exp: New file for the older Motorola Bug monitor
Rob Savoye [Wed, 8 May 1996 04:04:25 +0000 (04:04 +0000)]
* config/abug.exp: New file for the older Motorola Bug monitor
that runs on the mvme13x series VME boards.
* config/monitor.exp: Use the new config array for target settings
if they exist.

28 years ago * target.c (debug_to_xfer_memory): Insert line breaks when
Stan Shebs [Wed, 8 May 1996 01:41:13 +0000 (01:41 +0000)]
* target.c (debug_to_xfer_memory): Insert line breaks when
dumping the memory block.

28 years ago * scripttempl/h8300.sc: Place ".tiny" sections right
Jeff Law [Tue, 7 May 1996 21:26:58 +0000 (21:26 +0000)]
    * scripttempl/h8300.sc: Place ".tiny" sections right
        after ".data" sections.
        * scripttempl/h8300h.sc: Place ".tiny" sections into
        the "tiny" memory region, 0xff8000 through 0xffff00.
HMSE.

28 years agoAdd PPCbug boot record support
Michael Meissner [Tue, 7 May 1996 20:20:55 +0000 (20:20 +0000)]
Add PPCbug boot record support

28 years ago * scripttempl/h8300.sc: Set the entry point to the value of
Jeff Law [Tue, 7 May 1996 19:36:38 +0000 (19:36 +0000)]
    * scripttempl/h8300.sc: Set the entry point to the value of
        "_start" rather than the start of the text segment.
        * scripttempl/h8300h.sc: Likewise.
So we can have data at the start of the text space.

28 years agoDocument semicolon usage.
David Edelsohn [Tue, 7 May 1996 18:29:22 +0000 (18:29 +0000)]
Document semicolon usage.

28 years ago * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
David Edelsohn [Tue, 7 May 1996 18:04:07 +0000 (18:04 +0000)]
* scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
(gld${EMULATION_NAME}_place_section): New function.
(hold_{section,use,text,rdata,data}): New static locals.
(ld_${EMULATION_NAME}_emulation): Update orphan field.
* scripttempl/pe.sc: Whitespace cleanup.  Semicolon usage cleanup.
(INIT,FINI): Delete, unused.
(.text): Document orphan .text.foo sections.
(.rdata): Document orphan .rdata.foo sections.
(.data): Document orphan .data.foo sections.

28 years ago * scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
David Edelsohn [Tue, 7 May 1996 17:58:43 +0000 (17:58 +0000)]
* scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
(gld${EMULATION_NAME}_place_section): New function.
(hold_{section,use,text,rdata,data}): New static locals.
(ld_${EMULATION_NAME}_emulation): Update orphan field.

28 years ago * scripttempl (h8300.sc, h8300h.sc): Place .rodata sections
Jeff Law [Tue, 7 May 1996 17:33:17 +0000 (17:33 +0000)]
    * scripttempl (h8300.sc, h8300h.sc): Place .rodata sections
        before .text sections in main ram.
Gets "read only" data out of the instruction stream -- improves
relaxing linker.  HMSE.

28 years ago * coff-h8300.c (howto_table): Update names to match recent
Jeff Law [Tue, 7 May 1996 17:17:11 +0000 (17:17 +0000)]
    * coff-h8300.c (howto_table): Update names to match recent
        changes to include/coff/internal.h.  Fix minor errors in the
        existing relocs.  Add R_MOVL1 and R_MOVL2.
        (rtype2howto): Similarly.
        (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
        existing relaxing code  and peform more relaxing.
        (h8300_reloc16_extra_cases): Likewise.
Simplify, cleanup, fix bugs and improve existing relaxing code.

Add code for changing a 24/32bit absolute address into a 16bit absolute
address.

HMSE.

28 years ago * config/obj-coff.c (yank_symbols): Check that FNAME_OFFSET is
Ian Lance Taylor [Tue, 7 May 1996 15:34:25 +0000 (15:34 +0000)]
* config/obj-coff.c (yank_symbols): Check that FNAME_OFFSET is
non-zero before assuming this is a long file name.
(w_strings): Likewise.
(c_dot_file_symbol): Set FNAME_OFFSET to 1 for a long file name.

* config/obj-coff.c (w_strings): Move declaration of i inside
#ifdef block which uses it.

28 years ago * internal.h (R_JMPL2): Renamed from R_JMPL_B8 to be
Jeff Law [Tue, 7 May 1996 08:11:43 +0000 (08:11 +0000)]
    * internal.h (R_JMPL2): Renamed from R_JMPL_B8 to be
        consistent with other similar relocs.
Cleaning up while working on HMSE.

28 years ago * config/tc-h8300.c (do_a_fix_imm): Rename last argument to
Jeff Law [Tue, 7 May 1996 06:47:56 +0000 (06:47 +0000)]
    * config/tc-h8300.c (do_a_fix_imm): Rename last argument to
        "relaxmode".  Output relocs which identify various relaxing
        possibilities for mov.[bwl] instructions.
        (build_bytes): Pass in a relaxing mode to do_a_fix_imm.
So the linker can identify more potential relaxations.  HMSE.

28 years ago * internal.h (H8/300 specific relocs): Add comments better
Jeff Law [Tue, 7 May 1996 06:40:28 +0000 (06:40 +0000)]
    * internal.h (H8/300 specific relocs): Add comments better
        explaining what each reloc is used for.
        (R_MOV16B1, R_MOV16B2): Renamed from R_MOVB1 and R_MOVB2.
        (R_MOV24B1, R_MOV24B2): Renamed from R_MOVLB1 and R_MOVLB2.
        (R_MOVL1, R_MOVL2): New relocs.
More changes for the H8/300 relaxing linker.  HMSE.

28 years ago * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
Jeff Law [Tue, 7 May 1996 05:30:14 +0000 (05:30 +0000)]
    * scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
        8-bit region and 8-bit sections.
HMSE.

28 years ago * reloc16.c (bfd_coff_reloc16_get_value): Handle common
Jeff Law [Tue, 7 May 1996 00:26:16 +0000 (00:26 +0000)]
    * reloc16.c (bfd_coff_reloc16_get_value): Handle common
        symbols correctly.
For the H8/300 relaxing linker.

28 years ago * config/tc-arm.h (TC_HANDLES_FX_DONE): Define.
David Edelsohn [Mon, 6 May 1996 22:30:52 +0000 (22:30 +0000)]
* config/tc-arm.h (TC_HANDLES_FX_DONE): Define.
(MD_APPLY_FIX3): Define.
* config/tc-arm.c (my_get_expression): Only watch for bad segments
if OBJ_AOUT.
(md_apply_fix3): Renamed from md_apply_fix.
If pcrel reloc and symbol is in different section, undo effects
of md_pcrel_from.

28 years ago * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
Stu Grossman [Mon, 6 May 1996 21:27:37 +0000 (21:27 +0000)]
* fork-child.c (fork_inferior), inferior.h:  init_trace_fun now
returns a possibly modified pid.
* inftarg.c (ptrace_him):  Now returns pid;
* m3-nat.c (m3_trace_him):  Now returns pid;
* infcmd.c (run_command):  Minor cleanup.
* infrun.c (wait_for_inferior):  Add another check for one_stepped
near where we read the pc to avoid erroneously setting
random_signal for multi-threaded support.
* procfs.c:  Add support for Solaris LWPs.  Remove def of
LOSING_POLL.  Many cleanups...  Several workarounds for Solaris
lossage.  System call entry and exit are now handled by
dynamically registered handlers.
* (syscallname):  Don't barf when handed an unknown syscall
number.
* (info_proc_syscalls):  Ditto.
* sol-thread.c:  New file.  Implements Solaris thread support.
* symfile.c (symbol_file_add):  Add call to target_new_objfile to
notify target-dependent code about new symbol tables.
* (clear_symtab_users):  Call target_new_objfile to notify it of
the removal of all symbol tables.
* target.c (push_target):  Make sure that to_close is non-zero
before calling it.
* target.h (target_new_objfile):  Provide default.
* config/alpha/nm-osf2.h:  Define LOSING_POLL because this version
of OSF can't hack using poll with /proc.
* config/sparc/nm-sun4sol2.h (target_new_objfile):  Define to be
sol-thread-new-objfile.
* config/sparc/sun4sol2.mh:  Add sol-thread.o to NATDEFFILES, and
add libthread_db.so.1 to NAT_CLIBS.
* config/sparc/tm-sun4sol2.h:  Define PIDGET, TIDGET, and
target_pid_to_str.

28 years agoFix INLN in bugapi to read a full line
Michael Meissner [Mon, 6 May 1996 16:03:44 +0000 (16:03 +0000)]
Fix INLN in bugapi to read a full line

28 years agoDo not do XCOFF hoooks for ELF systems
Michael Meissner [Mon, 6 May 1996 11:56:56 +0000 (11:56 +0000)]
Do not do XCOFF hoooks for ELF systems

28 years ago * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust
Jeff Law [Sat, 4 May 1996 18:46:43 +0000 (18:46 +0000)]
    * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust
        any reloc with an LR% or RR% field selector for SOM.
Fixes net bug.

28 years ago * Makefile.in: Add subsegs.h to appropriate TARG_CPU_DEP_*
Ian Lance Taylor [Sat, 4 May 1996 18:27:15 +0000 (18:27 +0000)]
* Makefile.in: Add subsegs.h to appropriate TARG_CPU_DEP_*
  variables.

28 years ago * elfcode.h (elf_object_p): Reject generic ELF target if
Peter Schauer [Sat, 4 May 1996 12:40:46 +0000 (12:40 +0000)]
* elfcode.h (elf_object_p):  Reject generic ELF target if
e_machine matches an alternate machine code in a specific backend.

* netbsd-core.c (netbsd_core_vec):  Remove initializer for
obsolete align_power_min field.

28 years ago * config/obj-coff.c (coff_frob_symbol): Don't merge a symbol with
Ian Lance Taylor [Sat, 4 May 1996 01:00:04 +0000 (01:00 +0000)]
* config/obj-coff.c (coff_frob_symbol): Don't merge a symbol with
SF_GET_STATICS set.
(yank_symbols): Likewise.

28 years ago * Makefile.in (all-inet): Depend on all-perl.
Tom Tromey [Sat, 4 May 1996 00:08:15 +0000 (00:08 +0000)]
    * Makefile.in (all-inet): Depend on all-perl.

28 years ago * Makefile.in (inet-install): New target.
Tom Tromey [Fri, 3 May 1996 23:33:33 +0000 (23:33 +0000)]
    * Makefile.in (inet-install): New target.

28 years ago * sim-gdb.exp: Make the SH simulator allocate less space when
Stan Shebs [Fri, 3 May 1996 23:05:32 +0000 (23:05 +0000)]
* sim-gdb.exp: Make the SH simulator allocate less space when
it is targeted.

28 years agoMake simulator build in a Canadian cross environment
Michael Meissner [Fri, 3 May 1996 19:10:20 +0000 (19:10 +0000)]
Make simulator build in a Canadian cross environment

28 years ago * coff-h8300.c (reloc_howto_type): Add howto entry for
Jeff Law [Fri, 3 May 1996 19:07:31 +0000 (19:07 +0000)]
    * coff-h8300.c (reloc_howto_type): Add howto entry for
        R_PCRWORD_B.
        (rtype2howto): Handle R_PCRWORD_B.
        (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
        (h8300_reloc_16_estimate): Likewise.  Try to turn a 16bit
        pc-relative branch (R_PCRWORD) into an 8bit pc-relative
        branch (R_PCWORD_B).
So we can turn 16bit pcrel branches into 8bit pcrel branches on the H8/300H.
HMSE.

28 years ago * internal.h (R_PCRWORD_B): Define for the h8300 relaxing
Jeff Law [Fri, 3 May 1996 18:57:49 +0000 (18:57 +0000)]
    * internal.h (R_PCRWORD_B): Define for the h8300 relaxing
        linker.
HMSE.

28 years ago * objdump.c (disassemble_data): Don't refer to bytes past the end
Ian Lance Taylor [Fri, 3 May 1996 18:31:00 +0000 (18:31 +0000)]
* objdump.c (disassemble_data): Don't refer to bytes past the end
of data.

28 years ago * aoutx.h (translate_from_native_sym_flags): Set the section for
Ian Lance Taylor [Fri, 3 May 1996 17:58:30 +0000 (17:58 +0000)]
* aoutx.h (translate_from_native_sym_flags): Set the section for
BSF_CONSTRUCTOR symbols.

28 years ago * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
Ian Lance Taylor [Fri, 3 May 1996 17:48:41 +0000 (17:48 +0000)]
* cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
last_bf_index.

28 years ago * Makefile.in (all-inet): Depend on all-tcl.
Tom Tromey [Fri, 3 May 1996 16:44:22 +0000 (16:44 +0000)]
* Makefile.in (all-inet): Depend on all-tcl.
(all-inet): Depend on all-send-pr.

28 years ago * gdbtk.tcl (debug_interface): New global, use to aid debugging.
Stan Shebs [Fri, 3 May 1996 02:28:13 +0000 (02:28 +0000)]
* gdbtk.tcl (debug_interface): New global, use to aid debugging.
(insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
(file_popup_menu): Delete, never used.
(listing_window_popup): Rename from listing_window_button_1,
remove breakpoint toggling code.
(toggle_breakpoint): New procedure.
(create_file_win): Bind popup menu to button 2, toggle breakpoints
  with button 1 in breakpoint area, add display of tagged areas if
  debugging on.

28 years ago * From Peter Schauer:
Jeff Law [Thu, 2 May 1996 18:43:28 +0000 (18:43 +0000)]
    * From Peter Schauer:
        * breakpoint.h (enum bpdisp):  Add del_at_next_stop.
        * breakpoint.c (insert_breakpoints, watchpoint_check,
        bpstat_stop_status):  Avoid bad references to memory freed via
        delete_breakpoint on watchpoints going out of scope.
        Do not delete these watchpoints, disable them and change their
        disposition to del_at_next_stop instead.
        (breakpoint_auto_delete):  Delete all breakpoints whose disposition
        is del_at_next_stop.
        (breakpoint_init_inferior):  Use switch to avoid reference to
        already deleted breakpoint.
Fixes dangling pointer problems with watchpoints.

28 years ago * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace
Jeff Law [Thu, 2 May 1996 18:28:53 +0000 (18:28 +0000)]
    * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace
        test.

28 years agotweak last change
Ian Lance Taylor [Thu, 2 May 1996 03:11:26 +0000 (03:11 +0000)]
tweak last change

28 years ago * coffcode.h (styp_to_sec_flags): Handle long symbol names
Ian Lance Taylor [Thu, 2 May 1996 02:56:14 +0000 (02:56 +0000)]
* coffcode.h (styp_to_sec_flags): Handle long symbol names
when looking for the section symbol.

28 years ago * coffcode.h (coff_write_object_contents): In comdat section lookup,
David Edelsohn [Thu, 2 May 1996 02:41:20 +0000 (02:41 +0000)]
* coffcode.h (coff_write_object_contents): In comdat section lookup,
stop looking when section is found.

28 years ago * subsegs.h (segment_info_type): If MANY_SEGMENTS and not
Ian Lance Taylor [Thu, 2 May 1996 02:32:52 +0000 (02:32 +0000)]
* subsegs.h (segment_info_type): If MANY_SEGMENTS and not
BFD_ASSEMBLER, add name field.
* config/obj-coff.c (coff_header_append): Handle long section
names.
(crawl_symbols): Just use the name field for the symbol name,
without worrying about null byte termination.
(w_strings): Handle long section names.
(write_object_file): Likewise.  Also, use the name field, rather
than scnhdr.s_name.
(obj_coff_add_segment): Permit long section names.
(obj_coff_init_stab_section): Use the name field, rather than
scnhdr.s_name.
(adjust_stab_section): Likewise.
* config/te-pe.h (COFF_LONG_SECTION_NAMES): Define.

28 years ago * coffcode.h (STRING_SIZE_SIZE): Define.
Ian Lance Taylor [Thu, 2 May 1996 02:27:55 +0000 (02:27 +0000)]
* coffcode.h (STRING_SIZE_SIZE): Define.
(bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
(bfd_coff_long_section_names): Define.
(coff_write_object_contents): Handle long section names.
(bfd_coff_std_swap_table): Initialize new field.
* libcoff.h: Rebuild.
* coffgen.c (make_a_section_from_file): Handle long section
names.
(coff_write_symbols): Handle long section names.
* coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
* coff-mips.c (mips_ecoff_backend_data): Likewise.
* pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
* pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
* pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
* pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
* pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
* pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.

28 years ago * internal.h (SCNNMLEN): Define.
Ian Lance Taylor [Thu, 2 May 1996 02:21:29 +0000 (02:21 +0000)]
* internal.h (SCNNMLEN): Define.
(struct internal_scnhdr): Use SCNNMLEN for s_name field.

28 years ago * Makefile.in (rs6000-nat.o): Dependant on xcoffsolib.h.
Fred Fish [Thu, 2 May 1996 01:32:41 +0000 (01:32 +0000)]
* Makefile.in (rs6000-nat.o): Dependant on xcoffsolib.h.
* config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
* config/rs6000/rs6000.mt (TDEPFILES): ... to here
* xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
(solib_info): Call xcoff_relocate_symtab via the hook.
(sharedlibrary_command): Ditto.
* xcoffread.c: Remove all FAKING_RS6000 comments and defines.
(xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
(xcoff_init_loadinfo_hook): Define and initialize here.
(scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
(xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
* xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
* rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
* rs6000-nat.c (_initialize_core_rs6000): Add initialization
of xcoff_relocate_symtab_hook.

28 years ago * ldlang.c (section_already_linked): Fix typos.
David Edelsohn [Thu, 2 May 1996 00:51:15 +0000 (00:51 +0000)]
* ldlang.c (section_already_linked): Fix typos.

28 years ago * bout.c (b_out_callback): Set lma of sections.
Ian Lance Taylor [Wed, 1 May 1996 21:22:28 +0000 (21:22 +0000)]
* bout.c (b_out_callback): Set lma of sections.
(b_out_bfd_get_relocated_section_contents): Rename in_abfd
parameter to output_bfd.  Used input_bfd instead of output_bfd in
several places.

28 years ago * config/tc-i960.c (brtab_emit): Don't set fx_im_disp field.
Ian Lance Taylor [Wed, 1 May 1996 20:40:16 +0000 (20:40 +0000)]
* config/tc-i960.c (brtab_emit): Don't set fx_im_disp field.
(mem_fmt): Likewise.
(md_apply_fix): Don't check fx_im_disp field.
Fixes problem introduced by September 5, 1995 change to fx_im_disp
definition.

28 years ago * i386.h: Remove Abs32 from lcall.
Ian Lance Taylor [Wed, 1 May 1996 01:38:55 +0000 (01:38 +0000)]
* i386.h: Remove Abs32 from lcall.

28 years ago * aoutx.h (translate_from_native_sym_flags): Don't create
Ian Lance Taylor [Wed, 1 May 1996 01:01:50 +0000 (01:01 +0000)]
* aoutx.h (translate_from_native_sym_flags): Don't create
SEC_CONSTRUCTOR sections.
* ecoff.c (ecoff_set_symbol_info): Likewise.

28 years ago * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
Ian Lance Taylor [Wed, 1 May 1996 00:57:36 +0000 (00:57 +0000)]
* elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
From Don Bowman <bowman@waterloo.hp.com>.

28 years ago * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
David Edelsohn [Wed, 1 May 1996 00:08:41 +0000 (00:08 +0000)]
* coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.

28 years agoWork in a cross compile environment
Michael Meissner [Tue, 30 Apr 1996 22:50:22 +0000 (22:50 +0000)]
Work in a cross compile environment

28 years agoTurn off tk/tcl for powerpcle-*-solaris for now
Michael Meissner [Tue, 30 Apr 1996 17:56:51 +0000 (17:56 +0000)]
Turn off tk/tcl for powerpcle-*-solaris for now

28 years agoAdd bieginning of Solaris/PowerPC support
Michael Meissner [Tue, 30 Apr 1996 17:23:41 +0000 (17:23 +0000)]
Add bieginning of Solaris/PowerPC support

28 years ago * scripttempl/pe.sc (.endjunk): Define __end__.
David Edelsohn [Tue, 30 Apr 1996 03:33:23 +0000 (03:33 +0000)]
* scripttempl/pe.sc (.endjunk): Define __end__.

28 years ago * c-valprint.c (c_val_print): Fix printing for arrays defined
Dawn Perchik [Mon, 29 Apr 1996 23:25:27 +0000 (23:25 +0000)]
    * c-valprint.c (c_val_print): Fix printing for arrays defined
        with 0 length.

28 years ago * ldlang.c (longest_section_name): Remove.
Ian Lance Taylor [Mon, 29 Apr 1996 21:12:49 +0000 (21:12 +0000)]
* ldlang.c (longest_section_name): Remove.
(SECTION_NAME_MAP_LENGTH): Define.
(print_size, print_alignment, print_fill, print_section): Remove.
(print_flags): Remove.
(lang_map): Rewrite.
(print_output_section_statement): Rewrite.
(print_assignment): Rewrite.
(print_one_symbol): Rewrite.
(print_input_section): Rewrite.
(print_fill_statement): Rewrite.
(print_data_statement): Rewrite.
(print_address_statement): New static function.
(print_reloc_statement): Rewrite.
(print_padding_statement): Rewrite.
(print_wild_statement): Rewrite.
(print_statement_list): Clean up.
(print_statement): Clean up.  Some minor output changes.
(print_statements): Clean up.
(load_symbols): Put another - before -whole-archive.
* ldexp.c (exp_print_tree): Change etree_value and etree_rel to
print 0x and to omit leading zeroes.  For etree_rel, use %B to
print the BFD.  For etree_assign, remove the space after the
destination name.
* ldwrite.c: Include "libiberty.h".
(clone_section): Call xstrdup, not strdup.
(ldwrite): Don't print any map information.
(print_symbol_table, print_file_stuff, print_symbol): Remove.
* ldmain.c (main): Call lang_map when appropriate.
* ldmisc.c (vfinfo): Add support for %W.
(print_address): Remove.
* ldmisc.h (print_address): Don't declare.
* Makefile.in: Rebuild dependencies.

28 years ago * elf32-mips.c (struct mips_elf_link_hash_entry): Add
Ian Lance Taylor [Mon, 29 Apr 1996 17:27:02 +0000 (17:27 +0000)]
* elf32-mips.c (struct mips_elf_link_hash_entry): Add
mips_32_relocs field.
(mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
(mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
relocs against a global symbol which is not defined in a regular
file.
(mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
against a global symbol, increment mips_32_relocs.
(mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
the symbol is not defined in a regular file, make room in the
.rel.dyn section.

28 years agoMon Apr 29 10:33:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Mon, 29 Apr 1996 14:34:44 +0000 (14:34 +0000)]
Mon Apr 29 10:33:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* ld-shared/shared.exp: Run the shared library tests on
  Linux/m68k.

28 years agoMon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Mon, 29 Apr 1996 14:34:14 +0000 (14:34 +0000)]
Mon Apr 29 10:29:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* configure.host (m68*-*-linux*): Add -dynamic-linker to
  HOSTING_CRT0.  Search -lgcc both before and after -lc in
  HOSTING_LIBS.  Look for crt{begin,end}.o in the compiler directory
  at first.
(i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
directory at first.

28 years ago Support for bi-endian remote breakpoints.
Stan Shebs [Sun, 28 Apr 1996 23:43:05 +0000 (23:43 +0000)]
Support for bi-endian remote breakpoints.
* remote.c (big_break_insn, little_break_insn): New globals.
(break_insn): Remove.
(remote_insert_breakpoint, remote_remove_breakpoint): Use own
code if REMOTE_BREAKPOINT defined, otherwise call memory
breakpoint functions.
* config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
(BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.

28 years ago * mon960-rom.c (mon960_cmds): Remove forward decl.
Stan Shebs [Sun, 28 Apr 1996 22:14:17 +0000 (22:14 +0000)]
* mon960-rom.c (mon960_cmds): Remove forward decl.
(mon960_load): Use current_monitor instead of mon960_cmds.
(mon960_regnames): Remove backslashes from line ends.
(_initialize_mon960): Fix documentation string.

28 years ago * symfile.h (psymbol_allocation_list): Expand comments which
Fred Fish [Sun, 28 Apr 1996 19:22:40 +0000 (19:22 +0000)]
* symfile.h (psymbol_allocation_list):  Expand comments which
describe the psymbol allocation list and how each field is
used.

28 years ago * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
Peter Schauer [Sun, 28 Apr 1996 10:49:54 +0000 (10:49 +0000)]
* breakpoint.c (delete_breakpoint):  Fix bpt->val, bpt->exp
storage leaks.
(breakpoint_re_set_one):  Fix b->exp, b->val, b->cond storage leaks.

* infcmd.c (run_command), solib.c (locate_base):  Check for
target_has_execution in addition to inferior_pid, a core file
from a threaded program is yielding a non-zero inferior_pid.

* sparc-tdep.c (get_saved_register):  Handle window registers
in a dummy frame correctly.

28 years ago * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
Fred Fish [Sun, 28 Apr 1996 03:47:49 +0000 (03:47 +0000)]
* Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
so that anything that wants an allocation function not yet pulled
in, will get it from mmalloc rather than a system library.
* Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
to avoid surprising results when used.

28 years agoFix typo in ChangeLog entry.
Jeff Law [Sun, 28 Apr 1996 03:37:39 +0000 (03:37 +0000)]
Fix typo in ChangeLog entry.

28 years agoRemove some #if 0 code which creeped into wait_for_inferior during
Jeff Law [Sun, 28 Apr 1996 03:35:58 +0000 (03:35 +0000)]
Remove some #if 0 code which creeped into wait_for_inferior during
my previous change.

28 years ago * stabsread.c: Changes and bug fixes for cfront support.
Dawn Perchik [Sat, 27 Apr 1996 09:47:53 +0000 (09:47 +0000)]
* stabsread.c: Changes and bug fixes for cfront support.
Fix bug for class data members.
Fix parsing bug when no base classes exist.
Fix memory bug - allocate space for cplusplus specific info.
Add support for static data.
Add prototypes for static functions.
Enhance comments to show what each function expects to parse.
Cleanup code.
* stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
function to resolve_cfront_continuation.

28 years ago * infrun.c (wait_for_inferior): Call registers_changed when
Jeff Law [Sat, 27 Apr 1996 05:56:07 +0000 (05:56 +0000)]
    * infrun.c (wait_for_inferior): Call registers_changed when
        restarting the inferior to get over a nullified instructions.
Fixes PA testsuite regressions.

28 years ago * ecoff.c (ecoff_compute_section_file_positions): Track the real
Ian Lance Taylor [Fri, 26 Apr 1996 23:16:52 +0000 (23:16 +0000)]
* ecoff.c (ecoff_compute_section_file_positions): Track the real
file position and the virtual file position separately.  Set
filepos information bsaed on the real file position.
(_bfd_ecoff_set_section_contents): Handle .lib sections like the
Jan 23 change to coffcode.h.
Make Irix 4 shared libraries work again.

28 years ago * ldmisc.h (demangle): Declare.
Ian Lance Taylor [Fri, 26 Apr 1996 22:15:10 +0000 (22:15 +0000)]
* ldmisc.h (demangle): Declare.
* ldmisc.c: Include "libiberty.h".  Include demangle.h with "",
  not <>.
(demangle): Make non-static.  Remove remove_underscore paramter.
Always return an allocated string.
(vfinfo): Free result of demangle.  Add case 'G'.  Use %T to print
functionname, rather than calling demangle.  Print a colon between
the BFD(section+offset) and the line number.
* ldmain.c (add_archive_element): Improve format of archive
information in map file.
(constructor_callback): Don't print anything to the map file.
* ldlang.c (lang_one_common): Improve format of common symbol
information in map file.
* ldctor.c (ldctor_build_sets): If producing a map file, print set
information.
* ldwrite.c (print_symbol_table): Print a newline before the
header in the map file.
* Makefile.in: Rebuild dependencies.

28 years ago * som.c (som_slurp_symbol_table): Set the symbol count to the
Ian Lance Taylor [Fri, 26 Apr 1996 22:01:22 +0000 (22:01 +0000)]
* som.c (som_slurp_symbol_table): Set the symbol count to the
number of BFD symbols created.
PR 5332.