platform/upstream/binutils.git
27 years ago * coffcode.h (coff_compute_section_file_positions): Force the
Ian Lance Taylor [Sun, 20 Apr 1997 02:50:49 +0000 (02:50 +0000)]
* coffcode.h (coff_compute_section_file_positions): Force the
potential last byte in the file to be written out when
COFF_IMAGE_WITH_PE.

27 years ago * java-exp.y: Combine TRUE and FALSE into BOOLEAN_LITERAL.
Per Bothner [Sat, 19 Apr 1997 19:11:28 +0000 (19:11 +0000)]
* java-exp.y:  Combine TRUE and FALSE into BOOLEAN_LITERAL.
(Avoids name clash with broken AIX header files.)

27 years ago * serial.c (serial_log_command): Fix fputs_unfiltered calls.
Peter Schauer [Sat, 19 Apr 1997 11:53:58 +0000 (11:53 +0000)]
* serial.c (serial_log_command):  Fix fputs_unfiltered calls.

27 years ago * config/powerpc/tm-ppc-aix4.h, config/rs6000/tm-rs6000-aix4.h
Peter Schauer [Sat, 19 Apr 1997 08:52:42 +0000 (08:52 +0000)]
* config/powerpc/tm-ppc-aix4.h, config/rs6000/tm-rs6000-aix4.h
(DONT_RELOCATE_SYMFILE_OBJFILE):  Removed.

27 years ago * config/powerpc/tm-ppc-aix4.h, config/rs6000/tm-rs6000-aix4.h
Peter Schauer [Sat, 19 Apr 1997 08:52:17 +0000 (08:52 +0000)]
* config/powerpc/tm-ppc-aix4.h, config/rs6000/tm-rs6000-aix4.h
(DONT_RELOCATE_SYMFILE_OBJFILE):  Removed.
* xcoffsolib.h (struct vmap):  Add new members tvma, toffs and dvma,
remove tadj.
* exec.c (bfdsec_to_vmap):  Initialize new vmap members, initialize
tstart and dstart with section VMA.
* rs6000-nat.c (vmap_symtab):  Relocate relative to the VMA in the
object file.
(vmap_ldinfo, xcoff_relocate_core):  Adjust tstart by section offset
of the text section, remove DONT_RELOCATE_SYMFILE_OBJFILE hack.
(vmap_exec):  Relocate relative to the VMA in the object file,
relocate .bss section as well.
(xcoff_relocate_core):  No longer adjust section addresses by VMA.
* rs6000-tdep.c (find_toc_address):  Change type of tocbase
to CORE_ADDR.
* xcoffread.c (secnum_to_bfd_section):  New routine to get
BFD section from CS section number.
(scan_xcoff_symtab):  Make toc_offset section relative.

* symtab.c (total_number_of_methods):  Avoid core dump if
baseclass type is still undefined.

27 years ago * interp.c: Include float.h and define SIGTRAP if _WIN32.
Stu Grossman [Sat, 19 Apr 1997 01:59:09 +0000 (01:59 +0000)]
* interp.c:  Include float.h and define SIGTRAP if _WIN32.
WIN32 -> _WIN32.
* (trap):  Do do SYS_chown for _WIN32.

27 years ago * Makefile.in (SUBDIRS): Add mswin so that make cleanup cleans up
Stu Grossman [Sat, 19 Apr 1997 01:52:30 +0000 (01:52 +0000)]
* Makefile.in (SUBDIRS):  Add mswin so that make cleanup cleans up
that directory.
* defs.h utils.c (error warning):  Make message be const.
* main.c (fputs_unfiltered):  Only send gdb_stdout and gdb_stderr
to hook.  Otherwise send it to fputs.
* monitor.c monitor.h (monitor_get_dev_name):  New function.  Does
the obvious.
* remote-e7000.c:  Remove debugify stuff.  Change printf, fprintf
to _filtered forms to make output appear in GUIs.  Replace all
uses of SERIAL_READCHAR with readchar, which has better error
checking.
* (e7000_parse_device):  Add prototype.
* (readchar):  Improve doc.  Handle random serial errors.
* (expect):  Disable notice_quit code.  It's busted.  Remove
serial error handling (it's now handled in readchar).  Remove
remote_debug echoing.  That's handled in readchar as well.
* (e7000_parse_device):  Remove serial_flag arg.  It's not
necessary.
* (e7000_open):  Split into two pieces.  Second part is
e7000_start_remote, and is error protected.  Now, when we connect
to the target, we setup the initial frame and registers so that
the user gets an immediate indication of where the target is.
* (gch):  Remove debug output.  That's handled by readchar.
* (e7000_read_inferior_memory):  Handle errors better.
* (_initialize_remote_e7000):  Get rid of `<xxx>' things from
command names.  They show up when doing completion and confuse
things horribly.
* ser-e7kpc.c:  Remove the last seven months of brain damage.  Get
rid of the DLL's since we can access the device directly from Win32s
and Win95.  Get rid of debugify crud.
* serial.c:  Remove debugify cruft.
* (serial_logchar serial_log_command serial_write serial_readchar
serial_send_break serial_close):  Merge common functionality into
serial_logchar.  Clean up rest of routines.
* sparclet-rom.c:  Disembowel.  Leave only download routine.
Download routine now switches to remote target automatically.
* top.c (disconnect):  Only define if SIGHUP is defined.  Cleans
up MSVC/Win32 problem.
* utils.c (gdb_flush):  Don't call hook unless it's for gdb_stdout
or gdb_stderr.
* config/sh/tm-sh.h:  Define TARGET_SH for WinGDB.
* config/sparc/tm-sparclet.h:  Remove override for prompt.

27 years ago * Makefile.in (SUBDIRS): Add mswin so that make cleanup cleans up
Stu Grossman [Sat, 19 Apr 1997 01:42:34 +0000 (01:42 +0000)]
* Makefile.in (SUBDIRS):  Add mswin so that make cleanup cleans up
that directory.
* defs.h utils.c (error warning):  Make message be const.
* main.c (fputs_unfiltered):  Only send gdb_stdout and gdb_stderr
to hook.  Otherwise send it to fputs.
* monitor.c monitor.h (monitor_get_dev_name):  New function.  Does
the obvious.
* remote-e7000.c:  Remove debugify stuff.  Change printf, fprintf
to _filtered forms to make output appear in GUIs.  Replace all
uses of SERIAL_READCHAR with readchar, which has better error
checking.
* (e7000_parse_device):  Add prototype.
* (readchar):  Improve doc.  Handle random serial errors.
* (expect):  Disable notice_quit code.  It's busted.  Remove
serial error handling (it's now handled in readchar).  Remove
remote_debug echoing.  That's handled in readchar as well.
* (e7000_parse_device):  Remove serial_flag arg.  It's not
necessary.
* (e7000_open):  Split into two pieces.  Second part is
e7000_start_remote, and is error protected.  Now, when we connect
to the target, we setup the initial frame and registers so that
the user gets an immediate indication of where the target is.
* (gch):  Remove debug output.  That's handled by readchar.
* (e7000_read_inferior_memory):  Handle errors better.
* (_initialize_remote_e7000):  Get rid of `<xxx>' things from
command names.  They show up when doing completion and confuse
things horribly.
* ser-e7kpc.c:  Remove the last seven months of brain damage.  Get
rid of the DLL's since we can access the device directly from Win32s
and Win95.  Get rid of debugify crud.
* serial.c:  Remove debugify cruft.
* (serial_logchar serial_log_command serial_write serial_readchar
serial_send_break serial_close):  Merge common functionality into
serial_logchar.  Clean up rest of routines.
* sparclet-rom.c:  Disembowel.  Leave only download routine.
Download routine now switches to remote target automatically.
* top.c (disconnect):  Only define if SIGHUP is defined.  Cleans
up MSVC/Win32 problem.
* utils.c (gdb_flush):  Don't call hook unless it's for gdb_stdout
or gdb_stderr.
* config/sh/tm-sh.h:  Define TARGET_SH for WinGDB.
* config/sparc/tm-sparclet.h:  Remove override for prompt.

27 years ago * sim-options.c (standard_options): Add --endian.
David Edelsohn [Fri, 18 Apr 1997 21:32:07 +0000 (21:32 +0000)]
* sim-options.c (standard_options): Add --endian.
(standard_option_handler): Likewise.

27 years agoAdd a comment.
David Edelsohn [Fri, 18 Apr 1997 21:15:26 +0000 (21:15 +0000)]
Add a comment.

27 years ago * remote-sim.c (gdbsim_open): Only pass -E to sim_open if
David Edelsohn [Fri, 18 Apr 1997 20:39:38 +0000 (20:39 +0000)]
* remote-sim.c (gdbsim_open): Only pass -E to sim_open if
TARGET_BYTE ORDER_SELECTABLE.

27 years ago * interp.c (sim_resume): Fix argument to poll_quit.
David Edelsohn [Fri, 18 Apr 1997 20:33:27 +0000 (20:33 +0000)]
* interp.c (sim_resume): Fix argument to poll_quit.

27 years ago * nrun.c: #include <signal.h>.
David Edelsohn [Fri, 18 Apr 1997 18:16:30 +0000 (18:16 +0000)]
* nrun.c: #include <signal.h>.
  (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
  handler that calls sim_stop ().

27 years ago * config/tc-ppc.c (ppc_fix_adjustable): Handle zero length csects
Ian Lance Taylor [Fri, 18 Apr 1997 17:39:33 +0000 (17:39 +0000)]
* config/tc-ppc.c (ppc_fix_adjustable): Handle zero length csects
correctly.

27 years agoFri Apr 18 11:54:43 1997 Niklas Hallqvist <niklas@appli.se>
Ian Lance Taylor [Fri, 18 Apr 1997 15:57:37 +0000 (15:57 +0000)]
Fri Apr 18 11:54:43 1997  Niklas Hallqvist  <niklas@appli.se>

* Makefile.in (ALL_EMULATIONS): Add ealphabsd.o.
(ealphabsd.c): New rule.
* configure.host (alpha-*-bsd): New target.
* configure.tgt (alpha-*-bsd): New target.
* emulparams/alphabsd.sh: New file for *BSD/alpha.
* scripttempl/alphabsd.sc: New file for *BSD/alpha.

27 years agoFri Apr 18 11:51:35 1997 Niklas Hallqvist <niklas@appli.se>
Ian Lance Taylor [Fri, 18 Apr 1997 15:52:33 +0000 (15:52 +0000)]
Fri Apr 18 11:51:35 1997  Niklas Hallqvist  <niklas@appli.se>

* configure.in (alpha*-*-openbsd*): New target.
* configure: Rebuild.

27 years ago * coff-alpha.c (bsd_alpha_howto_table): Cloned from alpha_howto_table
Ian Lance Taylor [Fri, 18 Apr 1997 15:50:19 +0000 (15:50 +0000)]
* coff-alpha.c (bsd_alpha_howto_table): Cloned from alpha_howto_table
but with an added LITERALSLEAZY entry.
(alpha_adjust_reloc_in): Add handling of LITERALSLEAZY relocs.  Use
info on the howto_table gotten from the ecoff_backend data.
(alpha_ecoff_get_relocated_section_contents): Ditto.
(alpha_bfd_reloc_type_lookup): Ditto.
(alpha_relocate_section): Ditto.  Also remove an assertion
causing failures on *BSD/alpha systems.
(alpha_ecoff_backend_data): Addition of fields to handle different
howto tables as well as a has_literalseazy flag.
(bsd_alpha_ecoff_backend_data): New backend data structure for *BSD.
(bsd_ecoffalpha_little_vec): Define.
* coff-mips.c (MIPS_HOWTO_COUNT): Removed, it's unused.
(mips_adjust_reloc_in): Use new ecoff_backend data to get at the howto
table.
(mips_bfd_reloc_type_lookup): Ditto.
(mips_relocate_section): Ditto.
(mips_ecoff_backend_data): Addition of fields to handle different
howto tables as well as a has_literalseazy flag.
* config.bfd: (alpha-*-openbsd*): New target.
* configure.in (alpha*-*-openbsd*): New target.
(bsd_ecoffalpha_little_vec): New vector for *BSD/Alpha ECOFF.
* ecoff.c (_bfd_ecoff_set_arch_mach_hook): Handle new magic.
(ecoff_get_magic): Ditto.
* libecoff.h (ecoff_backend_data): Addition of fields to handle
different howto tables as well as a has_literalseazy flag.
* reloc.c: BFD_RELOC_ALPHA_LITERALSLEAZY): New reloc.
* targets.c (bsd_ecoffalpha_little_vec): Declare.
(bfd_target_vector): Include the bsd_ecoffalpha_little_vec target.
* configure, bfd-in2.h, libbfd.h: Rebuild.

27 years agoRef gdb/11763 - can't stop a running simulator:
Andrew Cagney [Fri, 18 Apr 1997 12:24:52 +0000 (12:24 +0000)]
Ref gdb/11763 - can't stop a running simulator:

o Provide poll_quit callback to simulators
so that they can poll for SIGINT on
clueless OS's.

o Add sim_stop to simulators so that clients
can request a halt (eg gdbtk's STOP button)
Works for PPC!

o Re-arange remote-sim.c so that the
hard work is moved from gdbsim_resume()
to gdbsim_wait() (where it should be).

27 years agoAdd new Java files.
Per Bothner [Fri, 18 Apr 1997 02:23:16 +0000 (02:23 +0000)]
Add new Java files.

27 years ago * defs.h (enum language): Add language_java.
Per Bothner [Fri, 18 Apr 1997 02:22:18 +0000 (02:22 +0000)]
* defs.h (enum language):  Add language_java.
* java-exp.y, java-lang.c, java-lang.h, java-valprint.c:  New files.
* Makefile.in:  Upadte for new files.
* objfiles.c (allocate_objfile):  Allow NULL bfd argument.
* symfile.c (deduce_language_from_filename):  Recognize .java.

27 years ago * arminit.c (ARMul_NewState): Preinitialize the state to
Fred Fish [Fri, 18 Apr 1997 01:33:07 +0000 (01:33 +0000)]
  * arminit.c (ARMul_NewState): Preinitialize the state to
      all zero/NULL.

27 years ago * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
David Edelsohn [Thu, 17 Apr 1997 22:26:31 +0000 (22:26 +0000)]
* aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
Check for functions getrusage, time.
* sim-basics.h (SIM_ELAPSED_TIME): New typedef.
(sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
* sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
(sim_elapsed_time_get, sim_elapsed_time_since): New functions.

27 years agoChange FIXME comment - should replace bubble sort by merge sort, not qsort.
Per Bothner [Thu, 17 Apr 1997 21:32:25 +0000 (21:32 +0000)]
Change FIXME comment - should replace bubble sort by merge sort, not qsort.

27 years ago * m32r-stub.c (stash_registers): Rewrite.
David Edelsohn [Thu, 17 Apr 1997 21:13:57 +0000 (21:13 +0000)]
* m32r-stub.c (stash_registers): Rewrite.
(restore_registers): Renamed to restore_and_return.
(cleanup_stash): New function.
(process_exception): New function.
(_catchException*): Rewrite.

27 years agox
Ian Lance Taylor [Thu, 17 Apr 1997 18:06:32 +0000 (18:06 +0000)]
x

27 years agoThu Apr 17 13:59:47 1997 Per Fogelstrom <pefo@openbsd.org>
Ian Lance Taylor [Thu, 17 Apr 1997 18:04:34 +0000 (18:04 +0000)]
Thu Apr 17 13:59:47 1997  Per Fogelstrom  <pefo@openbsd.org>

* configure.in (mips-*-openbsd*): New target.
* configure: Rebuild.

27 years agoThu Apr 17 13:57:06 1997 Per Fogelstrom <pefo@openbsd.org>
Ian Lance Taylor [Thu, 17 Apr 1997 17:58:22 +0000 (17:58 +0000)]
Thu Apr 17 13:57:06 1997  Per Fogelstrom  <pefo@openbsd.org>

* config.guess: Fixes for MIPS OpenBSD systems.

27 years agoThu Apr 17 13:46:56 1997 Per Fogelstrom <pefo@openbsd.org>
Ian Lance Taylor [Thu, 17 Apr 1997 17:51:22 +0000 (17:51 +0000)]
Thu Apr 17 13:46:56 1997  Per Fogelstrom  <pefo@openbsd.org>

* configure.host (mips*-*-openbsd*): New target.

27 years ago * ldctor.c (ldctor_build_sets): Make sure the set is aligned
Ian Lance Taylor [Thu, 17 Apr 1997 17:07:35 +0000 (17:07 +0000)]
* ldctor.c (ldctor_build_sets): Make sure the set is aligned
appropriately.

27 years ago * elflink.h (elf_link_add_object_symbols): Only subtract the
Ian Lance Taylor [Thu, 17 Apr 1997 16:29:43 +0000 (16:29 +0000)]
* elflink.h (elf_link_add_object_symbols): Only subtract the
section VMA from the symbol value if this is a fully linked file.

27 years ago * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define.
Ian Lance Taylor [Thu, 17 Apr 1997 16:13:36 +0000 (16:13 +0000)]
* elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define.
(struct elf_i386_link_hash_entry): Define.
(struct elf_i386_link_hash_table): Define.
(elf_i386_link_hash_traverse): Define.
(elf_i386_hash_table): Define.
(elf_i386_link_hash_newfunc): New static function.
(elf_i386_link_hash_table_create): New static function.
(elf_i386_check_relocs): If linking with -Bsymbolic, don't copy
PC relative relocs for a global symbol defined in a regular
object, and count the number of PC relative relocs copied for any
global symbol.
(elf_i386_size_dynamic_sections): If linking with -Bsymbolic,
traverse with elf_i386_discard_copies.
(elf_i386_discard_copies): New static function.
(bfd_elf32_bfd_link_hash_table_create): Define.

27 years ago From Gordon W. Ross <gwr@mc.com>:
Ian Lance Taylor [Thu, 17 Apr 1997 15:12:09 +0000 (15:12 +0000)]
From Gordon W. Ross <gwr@mc.com>:
* aoutf1.h (MY_entry_is_text_address): Define if not defined.
(sunos4_aout_backend): Use MY_entry_is_text_address.

27 years ago * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
David Edelsohn [Thu, 17 Apr 1997 14:14:49 +0000 (14:14 +0000)]
* sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.

27 years agosim-trace.c: New file.
David Edelsohn [Thu, 17 Apr 1997 14:08:30 +0000 (14:08 +0000)]
sim-trace.c: New file.

27 years agoAdd macros for CPU_FOO_FILE, CPU_STATE.
David Edelsohn [Thu, 17 Apr 1997 14:07:43 +0000 (14:07 +0000)]
Add macros for CPU_FOO_FILE, CPU_STATE.

27 years ago(standard_option_handler): Tweak some error messages.
David Edelsohn [Thu, 17 Apr 1997 14:07:19 +0000 (14:07 +0000)]
(standard_option_handler): Tweak some error messages.
(sim_parse_args): Record orig_val as unsigned char.

27 years agoClean up.
David Edelsohn [Thu, 17 Apr 1997 14:06:10 +0000 (14:06 +0000)]
Clean up.

27 years ago * igen.c (print_itrace): Use TRACE_FOO_P and trace_printf.
David Edelsohn [Thu, 17 Apr 1997 14:03:16 +0000 (14:03 +0000)]
* igen.c (print_itrace): Use TRACE_FOO_P and trace_printf.

27 years agoTweak comment.
David Edelsohn [Thu, 17 Apr 1997 13:46:50 +0000 (13:46 +0000)]
Tweak comment.

27 years ago * Make-common.in (nrun.o): Add rule for.
David Edelsohn [Thu, 17 Apr 1997 12:43:31 +0000 (12:43 +0000)]
* Make-common.in (nrun.o): Add rule for.
* nrun.c: New file.

27 years ago * sim-config.h (WITH_DEBUG): Provide default value of zero.
David Edelsohn [Thu, 17 Apr 1997 12:41:19 +0000 (12:41 +0000)]
* sim-config.h (WITH_DEBUG): Provide default value of zero.

27 years ago * sim-options.c, sim-options.h: New files.
David Edelsohn [Thu, 17 Apr 1997 12:39:29 +0000 (12:39 +0000)]
* sim-options.c, sim-options.h: New files.

27 years agoMAX_CPUS -> WITH_SMP.
David Edelsohn [Thu, 17 Apr 1997 12:21:35 +0000 (12:21 +0000)]
MAX_CPUS -> WITH_SMP.

27 years agoFix copyright message, this is not GCC.
David Edelsohn [Thu, 17 Apr 1997 11:24:09 +0000 (11:24 +0000)]
Fix copyright message, this is not GCC.

27 years ago * run.c (main): Check return value of sim_open.
David Edelsohn [Thu, 17 Apr 1997 11:14:21 +0000 (11:14 +0000)]
* run.c (main): Check return value of sim_open.

27 years ago * Makefile.in (SIM_OBJS): Add sim-load.o.
David Edelsohn [Thu, 17 Apr 1997 10:54:07 +0000 (10:54 +0000)]
* Makefile.in (SIM_OBJS): Add sim-load.o.
* interp.c (sim_kind, myname): New static locals.
(sim_open): Set sim_kind, myname.  Ignore -E arg.
(sim_load): Return SIM_RC.  New arg abfd.  Call sim_load_file to
load file into simulator.  Set start address from bfd.
(sim_create_inferior): Return SIM_RC.  Delete arg start_address.

27 years ago * Makefile.in (SIM_OBJS): Add sim-load.o.
David Edelsohn [Thu, 17 Apr 1997 10:52:59 +0000 (10:52 +0000)]
* Makefile.in (SIM_OBJS): Add sim-load.o.
* interp.c (target_byte_order): Delete.
(sim_kind, myname, little_endian_p): New static locals.
(init_pointers): Use little_endian_p instead of target_byte_order.
(sim_resume): Likewise.
(sim_open): Set sim_kind, myname.  Set little_endian_p from -E arg.
(sim_load): Return SIM_RC.  New arg abfd.  Call sim_load_file to
load file into simulator.  Set start address from bfd.
(sim_create_inferior): Return SIM_RC.  Delete arg start_address.

27 years ago * psim.c (psim_options): Ignore -E option (sets endianness).
David Edelsohn [Thu, 17 Apr 1997 10:31:52 +0000 (10:31 +0000)]
* psim.c (psim_options): Ignore -E option (sets endianness).
* sim_calls.c: #include bfd.h.
(entry_point): New static local.
(sim_load): Return SIM_RC.  New arg abfd.  Set start address from bfd.
(sim_create_inferior): Return SIM_RC.  Delete arg start_address.

27 years ago * Makefile.in (SIM_OBJS): Add sim-load.o.
David Edelsohn [Thu, 17 Apr 1997 10:27:47 +0000 (10:27 +0000)]
* Makefile.in (SIM_OBJS): Add sim-load.o.
* interp.c (sim_kind, myname): New static locals.
(sim_open): Set sim_kind, myname.  Ignore -E arg.
(sim_load): Return SIM_RC.  New arg abfd.  Call sim_load_file to
load file into simulator.  Set start address from bfd.
(sim_create_inferior): Return SIM_RC.  Delete arg start_address.

27 years ago * Makefile.in (SIM_OBJS): Add sim-load.o.
David Edelsohn [Thu, 17 Apr 1997 10:23:48 +0000 (10:23 +0000)]
* Makefile.in (SIM_OBJS): Add sim-load.o.
* interp.c: #include bfd.h.
(target_byte_order): Delete.
(sim_kind, myname, big_endian_p): New static locals.
(sim_open): Set sim_kind, myname.  Move call to set_endianness to
after argument parsing.  Recognize -E arg, set endianness accordingly.
(sim_load): Return SIM_RC.  New arg abfd.  Call sim_load_file to
load file into simulator.  Set PC from bfd.
(sim_create_inferior): Return SIM_RC.  Delete arg start_address.
(set_endianness): Use big_endian_p instead of target_byte_order.

27 years ago * Makefile.in (SIM_OBJS): Add sim-load.o.
David Edelsohn [Thu, 17 Apr 1997 10:14:28 +0000 (10:14 +0000)]
* Makefile.in (SIM_OBJS): Add sim-load.o.
* compile.c (sim_kind, myname): New static locals.
(sim_open): Set sim_kind, myname.
(sim_load): Return SIM_RC.  New arg abfd.  Update test for h8300h.
Call sim_load_file to load file into simulator.  Set start address
from bfd.
(sim_create_inferior): Return SIM_RC.  Delete arg start_address.

27 years ago * interf.c (sim_open): Ignore -E arg.
David Edelsohn [Thu, 17 Apr 1997 10:05:50 +0000 (10:05 +0000)]
* interf.c (sim_open): Ignore -E arg.
(start_address): New static local.
(sim_load): Return SIM_RC.  New arg abfd.  Set start_address from bfd.
(sim_create_inferior): Return SIM_RC.  Delete arg start_address.

27 years ago * Makefile.in (SIM_OBJS): Add sim-load.o.
David Edelsohn [Thu, 17 Apr 1997 10:02:27 +0000 (10:02 +0000)]
* Makefile.in (SIM_OBJS): Add sim-load.o.
* d10v_sim.h (exec_bfd): Rename to prog_bfd.
* interp.c: #include bfd.h.
(myname, sim_kind, start_address): New static locals.
(prog_bfd_was_opened_p, prog_bfd): New static locals.
(decode_pc): Update to use prog_bfd.
(sim_open): Set sim_kind, myname.  Ignore -E arg.
(sim_close): Close prog_bfd if simulator opened it.
(sim_create_inferior): Return SIM_RC.  Delete arg start_address.
(sim_load): Return SIM_RC.  New arg abfd.  Set start address from bfd.
Call sim_load_file to load file into simulator.
* simops.c (trace_input_func): exec_bfd renamed to prog_bfd.

27 years ago * Makefile.in (SIM_OBJS): Add sim-load.o.
David Edelsohn [Thu, 17 Apr 1997 09:41:11 +0000 (09:41 +0000)]
* Makefile.in (SIM_OBJS): Add sim-load.o.
* wrapper.c (sim_kind,myname): New static locals.
(sim_open): Set sim_kind, myname.
(sim_load): Call sim_load_file to do work.  Set start address from bfd.
(sim_create_inferior): Return SIM_RC.  Delete start_address arg.

27 years ago * sim-load.c: New file.
David Edelsohn [Thu, 17 Apr 1997 09:38:01 +0000 (09:38 +0000)]
* sim-load.c: New file.
[forgot this]

27 years agoAdd sim-load.c, sim-trace.h.
David Edelsohn [Thu, 17 Apr 1997 09:37:42 +0000 (09:37 +0000)]
Add sim-load.c, sim-trace.h.

27 years ago * Make-common.in (sim-options.o, sim-load.o): Add rules for.
David Edelsohn [Thu, 17 Apr 1997 09:37:02 +0000 (09:37 +0000)]
* Make-common.in (sim-options.o, sim-load.o): Add rules for.
(sim_main_headers): Add sim-trace.h.
* run.c (exec_bfd, target_byte_order): Delete.
(main): Pass -E <endian> to sim_open.  Delete code to load sections,
call sim_load instead.  Check return code of sim_create_inferior.
* sim-base.h (CURRENT_STATE): Define.
(sim_state_base): Make typedef.  New members options, prog_argv,
prog_bfd, text_{section,start,end}, start_addr, simcache_size,
mem_size, memory [+ corresponding access macros].
(sim_cpu_base): New typedef.
* sim-trace.h: New file.
* sim-basics.h: #include it.
* sim-load.c: New file.

27 years ago (gdbsim_open): Pass endian indicator as arg.
David Edelsohn [Thu, 17 Apr 1997 09:23:55 +0000 (09:23 +0000)]
(gdbsim_open): Pass endian indicator as arg.
[forgot this]

27 years ago * remote-sim.c (gdbsim_load): Update call to sim_load.
David Edelsohn [Thu, 17 Apr 1997 09:23:28 +0000 (09:23 +0000)]
* remote-sim.c (gdbsim_load): Update call to sim_load.
(gdbsim_create_inferior): No longer pass start_address to
sim_create_inferior.
(gdbsim_open): Pass endian indicator as arg.

27 years ago * remote-sim.h (struct _bfd): Declare.
David Edelsohn [Thu, 17 Apr 1997 09:19:45 +0000 (09:19 +0000)]
* remote-sim.h (struct _bfd): Declare.
(sim_load): Return SIM_RC.  New arg `abfd'.
(sim_create_inferior): Return SIM_RC.  Delete arg `start_address'.

27 years agoCleanups to compile under FreeBSD
Andrew Cagney [Thu, 17 Apr 1997 06:05:19 +0000 (06:05 +0000)]
Cleanups to compile under FreeBSD

27 years ago From Gordon W. Ross <gwr@mc.com>:
Ian Lance Taylor [Wed, 16 Apr 1997 22:02:56 +0000 (22:02 +0000)]
From Gordon W. Ross <gwr@mc.com>:
* netbsd.h (N_SHARED_LIB): Define.
(SEGMENT_SIZE): Don't define.
* m68knetbsd.c (SEGMENT_SIZE): Don't define (revert change of
April 11).
* sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000.
(SEGMENT_SIZE): Don't define.

27 years agoWed Apr 16 12:43:32 1997 Martin Hunt <hunt@cygnus.com>
Martin Hunt [Wed, 16 Apr 1997 19:50:24 +0000 (19:50 +0000)]
Wed Apr 16 12:43:32 1997  Martin Hunt  <hunt@cygnus.com>

* elf32-d30v.c (elf_d30v_howto_table): Changed size of
R_D30V_32_NORMAL to 2 (4 bytes).

27 years agoWed Apr 16 12:31:24 1997 Martin Hunt <hunt@cygnus.com>
Martin Hunt [Wed, 16 Apr 1997 19:35:54 +0000 (19:35 +0000)]
Wed Apr 16 12:31:24 1997  Martin Hunt <hunt@cygnus.com>

* config/tc-d30v.c (parallel_ok): Fix parallel checking
for instructions using conditional execution.

27 years agoWed Apr 16 12:20:24 1997 Martin Hunt <hunt@cygnus.com>
Martin Hunt [Wed, 16 Apr 1997 19:28:31 +0000 (19:28 +0000)]
Wed Apr 16 12:20:24 1997  Martin Hunt  <hunt@cygnus.com>

* gas/d30v/d30.exp: Add optimizer test case.
* gas/d30v/opt.s: Add conditional compilation tests.
* gas/d30v/opt.d: Rebuild.

27 years ago * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size
Ian Lance Taylor [Wed, 16 Apr 1997 18:03:42 +0000 (18:03 +0000)]
* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size
to sizeof Rela structure, not sizeof Rel structure.  From Gary
Thomas <g.thomas@opengroup.org>.

27 years agoCorrect test for fpr pairs.
Gavin Romig-Koch [Wed, 16 Apr 1997 13:22:25 +0000 (13:22 +0000)]
Correct test for fpr pairs.

27 years ago * remote.c (get_offsets): Don't use scanf for interpreting
Stan Shebs [Wed, 16 Apr 1997 01:55:47 +0000 (01:55 +0000)]
* remote.c (get_offsets): Don't use scanf for interpreting
response to qOffsets.

27 years agoCorrect test for fpr pairs.
Gavin Romig-Koch [Tue, 15 Apr 1997 22:46:58 +0000 (22:46 +0000)]
Correct test for fpr pairs.

27 years agothis file was removed a long time ago
Ian Lance Taylor [Tue, 15 Apr 1997 22:36:26 +0000 (22:36 +0000)]
this file was removed a long time ago

27 years agosanitize out references to v850
Ian Lance Taylor [Tue, 15 Apr 1997 22:34:57 +0000 (22:34 +0000)]
sanitize out references to v850

27 years ago * aout-target.h (MY(callback)): If entry_is_text_address, adjust
Ian Lance Taylor [Tue, 15 Apr 1997 19:47:45 +0000 (19:47 +0000)]
* aout-target.h (MY(callback)): If entry_is_text_address, adjust
whenever entry is larger than text address, but only by whole
pages.  From Gordon W. Ross <gwr@mc.com>.

27 years ago * Makefile.in (DEVO_SUPPORT): Add mkinstalldirs.
Ian Lance Taylor [Tue, 15 Apr 1997 19:37:39 +0000 (19:37 +0000)]
* Makefile.in (DEVO_SUPPORT): Add mkinstalldirs.

27 years ago * Makefile.in (INSTALL_XFORM): Remove.
Ian Lance Taylor [Tue, 15 Apr 1997 19:32:01 +0000 (19:32 +0000)]
* Makefile.in (INSTALL_XFORM): Remove.
(BASE_FLAGS_TO_PASS): Remove INSTALL_XFORM.

27 years ago * Makefile.in (INSTALL): Set to @INSTALL@.
Ian Lance Taylor [Tue, 15 Apr 1997 19:20:58 +0000 (19:20 +0000)]
* Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.

27 years ago * Makefile.in (install-sis): Depend upon installdirs. Use
Ian Lance Taylor [Tue, 15 Apr 1997 19:19:43 +0000 (19:19 +0000)]
* Makefile.in (install-sis): Depend upon installdirs.  Use
$(program_transform_name) directly, rather than using
$(INSTALL_XFORM).

27 years ago * Make-common.in (INSTALL): Set to @INSTALL@.
Ian Lance Taylor [Tue, 15 Apr 1997 19:13:56 +0000 (19:13 +0000)]
* Make-common.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
(install-common): Depend upon installdirs.  Use
$(program_transform_name) directly, rather than using
$(INSTALL_XFORM).
(installdirs): New target.
* Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
(install-man): Depend upon installdirs.  Use
$(program_transform_name) directly, rather than using
$(INSTALL_XFORM).
(installdirs): New target.

27 years ago * Makefile.in (INSTALL): Set to @INSTALL@.
Ian Lance Taylor [Tue, 15 Apr 1997 19:06:20 +0000 (19:06 +0000)]
* Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
(install): Depend upon installdirs.  Use $(program_transform_name)
directly, rather than using $(INSTALL_XFORM).
(installdirs): New target.

27 years ago * Makefile.in (INSTALL): Set to @INSTALL@.
Ian Lance Taylor [Tue, 15 Apr 1997 18:55:38 +0000 (18:55 +0000)]
* Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
(install): Depend upon installdirs.  Use $(program_transform_name)
directly, rather than using $(INSTALL_XFORM) and
$(INSTALL_XFORM1).
(installdirs): New target.

27 years ago * gdbserver/Makefile.in (INSTALL_XFORM): Remove.
Ian Lance Taylor [Tue, 15 Apr 1997 18:52:33 +0000 (18:52 +0000)]
* gdbserver/Makefile.in (INSTALL_XFORM): Remove.
(INSTALL_XFORM1): Remove.
(install-only): Use $(program_transform_name) directly, rather
than using $(INSTALL_XFORM) and $(INSTALL_XFORM1).
(uninstall): Transform name.

27 years ago Change to use automake:
Ian Lance Taylor [Tue, 15 Apr 1997 18:35:39 +0000 (18:35 +0000)]
Change to use automake:
* Makefile.am: New file.
* configure.in: Run AM_INIT_AUTOMAKE, AM_MAINTAINER_MODE, and
AM_CYGWIN32.
* aclocal.m4: New file, created by aclocal.
* Makefile.in: Replace with file created by automake --cygnus.
* configure: Rebuild.

27 years ago * Makefile.in (INSTALL): Set to @INSTALL@.
Ian Lance Taylor [Tue, 15 Apr 1997 17:45:20 +0000 (17:45 +0000)]
* Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
(install): Depend upon installdirs.  Use $(program_transform_name)
directly, rather than using $(INSTALL_XFORM) and
$(INSTALL_XFORM1).
(installdirs): New target.
(install-info): Run mkinstalldirs.

27 years ago * Makefile.in (INSTALL): Set to @INSTALL@.
Ian Lance Taylor [Tue, 15 Apr 1997 17:21:15 +0000 (17:21 +0000)]
* Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
(install): Depend upon ld.new and installdirs.  Use
$(program_transform_name) directly, rather than using
$(INSTALL_XFORM) and $(INSTALL_XFORM1).
(installdirs): New target.
(install-info): Run mkinstalldirs.

27 years ago * Makefile.in (srcroot): Remove.
Ian Lance Taylor [Tue, 15 Apr 1997 17:11:08 +0000 (17:11 +0000)]
* Makefile.in (srcroot): Remove.
  (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
(all, dvi): Don't set srcroot.
(install): Depend upon as.new, gasp.new, and installdirs.  Use
$(program_transform_name) directly, rather than using
$(INSTALL_XFORM) and $(INSTALL_XFORM1).
(installdirs): New target.
* doc/Makefile.in (INSTALL_XFORM1): Remove.
(install): Depend upon installdirs.  Use $(program_transform_name)
directly, rather than using $(INSTALL_XFORM) and
$(INSTALL_XFORM1).
(installdirs): New target.
(install-info-as): Run mkinstalldirs.
(install-info-gasp): Likewise.

27 years ago * Makefile.in (install): Depend upon installdirs. Use
Ian Lance Taylor [Tue, 15 Apr 1997 16:38:24 +0000 (16:38 +0000)]
* Makefile.in (install): Depend upon installdirs.  Use
mkinstalldirs to build $(oldincludedir).
(installdirs): New target.

27 years agotweak last patch
Ian Lance Taylor [Tue, 15 Apr 1997 16:30:35 +0000 (16:30 +0000)]
tweak last patch

27 years ago * mkinstalldirs: New file, copied from automake.
Ian Lance Taylor [Tue, 15 Apr 1997 16:26:43 +0000 (16:26 +0000)]
* mkinstalldirs: New file, copied from automake.
* Makefile.in (installdirs): Rename from install-dirs.  Use
mkinstalldirs.  Change all users.

27 years ago * elflink.h (elf_link_add_object_symbols): Don't call check_relocs
Ian Lance Taylor [Tue, 15 Apr 1997 15:54:24 +0000 (15:54 +0000)]
* elflink.h (elf_link_add_object_symbols): Don't call check_relocs
if this is a debugging section which we are stripping.

27 years agoFrom Jim Wilson <wilson@cygnus.com>
Andrew Cagney [Tue, 15 Apr 1997 10:48:28 +0000 (10:48 +0000)]
From Jim Wilson  <wilson@cygnus.com>

* Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
rather than the non-portable cat -n.

27 years agoGet the BIT/MASK/ROT/... macros to work with any 32/64/MSB0/MSBn target.
Andrew Cagney [Tue, 15 Apr 1997 08:54:01 +0000 (08:54 +0000)]
Get the BIT/MASK/ROT/... macros to work with any 32/64/MSB0/MSBn target.

27 years ago * remote-mips.c (mips_load): Ensure that PC gets updated
Mark Alexander [Tue, 15 Apr 1997 00:09:24 +0000 (00:09 +0000)]
* remote-mips.c (mips_load): Ensure that PC gets updated
after a load on LSI target.

27 years agoMon Apr 14 15:54:51 1997 Geoffrey Noer <noer@pizza.cygnus.com>
Geoffrey Noer [Mon, 14 Apr 1997 23:06:49 +0000 (23:06 +0000)]
Mon Apr 14 15:54:51 1997  Geoffrey Noer  <noer@pizza.cygnus.com>

        * procfs.c (notice_signals): fix typo

27 years agorename install.sh to install-sh
Ian Lance Taylor [Mon, 14 Apr 1997 20:31:04 +0000 (20:31 +0000)]
rename install.sh to install-sh

27 years ago * gdbserver/Makefile.in (INSTALL): Change install.sh to
Ian Lance Taylor [Mon, 14 Apr 1997 20:25:38 +0000 (20:25 +0000)]
* gdbserver/Makefile.in (INSTALL): Change install.sh to
install-sh.

27 years ago * install-sh: Rename from install.sh.
Ian Lance Taylor [Mon, 14 Apr 1997 20:22:49 +0000 (20:22 +0000)]
* install-sh: Rename from install.sh.
* Makefile.in (INSTALL): Change install.sh to install-sh.
(DEVO_SUPPORT): Likewise.

27 years agorevert last patch
Ian Lance Taylor [Mon, 14 Apr 1997 20:04:38 +0000 (20:04 +0000)]
revert last patch

27 years ago * Makefile.in (INSTALL): Set to @INSTALL@.
Ian Lance Taylor [Mon, 14 Apr 1997 20:01:10 +0000 (20:01 +0000)]
* Makefile.in (INSTALL): Set to @INSTALL@.

27 years agoMon Apr 14 11:55:27 1997 Geoffrey Noer <noer@pizza.cygnus.com>
Geoffrey Noer [Mon, 14 Apr 1997 18:57:47 +0000 (18:57 +0000)]
Mon Apr 14 11:55:27 1997  Geoffrey Noer  <noer@pizza.cygnus.com>

        * config/i386/cygwin32.mh: remove -lkernel32 from XM_CLIBS
        since gcc automatically includes it

27 years ago * binutils-all/ar.exp (long_filenames): Check for a file system
Ian Lance Taylor [Mon, 14 Apr 1997 16:37:29 +0000 (16:37 +0000)]
* binutils-all/ar.exp (long_filenames): Check for a file system
with a 14 character file name length limit.

27 years ago From Thomas Graichen <graichen@rzpd.de>:
Ian Lance Taylor [Mon, 14 Apr 1997 16:10:39 +0000 (16:10 +0000)]
From Thomas Graichen <graichen@rzpd.de>:
* configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
* configure: Rebuild.