David Edelsohn [Thu, 1 May 1997 20:43:24 +0000 (20:43 +0000)]
(cgen-utils.o): Update cgen-{mem,sem}.h dependencies.
Michael Snyder [Thu, 1 May 1997 20:39:06 +0000 (20:39 +0000)]
Thu May 1 11:44:46 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* Finalize merge from Hurd folk.
Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
* thread.c (thread_apply_command, thread_apply_all_command,
thread_command): Make sure TP is alive.
(thread_alive): New function.
Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
* infrun.c (sig_print_info): Deal better with long signal names.
Wed Nov 22 15:23:35 1995 Miles Bader <miles@gnu.ai.mit.edu>
* thread.c (thread_id_to_pid): New function.
Fri Dec 1 13:25:25 1995 Miles Bader <miles@gnu.ai.mit.edu>
* gnu-nat.c: (set_thread_cmd_list, show_thread_cmd_list,
set_thread_default_cmd_list, show_thread_default_cmd_list):
New variables. (set_thread_cmd, show_thread_cmd,
set_thread_default_cmd, show_thread_default_cmd): New functions.
Fri Apr 18 15:20:16 1997 Miles Bader <miles@gnu.ai.mit.edu>
* gnu-nat.c (inf_startup): remove TASK parameter.
(inf_set_task): replace with new function (inf_set_pid).
* gdbthread.h: Add extern decl for thread_cmd_list.
David Edelsohn [Thu, 1 May 1997 20:11:00 +0000 (20:11 +0000)]
Sigh. Put generated files with each cgen cpu.
David Edelsohn [Thu, 1 May 1997 18:05:37 +0000 (18:05 +0000)]
* Makefile.in (sim-options_h): Define.
(sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
(sim-model.o): Add new rule.
(cgen-{scache,trace,utils}.o): Add new rules.
* aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
* cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
Indent output by 2 spaces.
* cgen-scache.h (scache_print_profile): Update.
* cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
Use trace_printf, not fprintf.
(trace_extract): Use trace_printf, not cgen_trace_printf.
* genmloop.sh (!FAST case): Increment `insn_count'.
* sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
(sim_cpu_base): Rename member `sd' to `state' to be consistent with
access macro's name.
* sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
Change return type to SIM_RC.
(sim_core_{install,uninstall}): New functions.
* sim-core.h (sim_core_{install,uninstall}): Declare.
(sim_core_init): Use EXTERN_SIM_CORE to define it.
Change return type to SIM_RC.
* sim-model.h (models,machs,model_install): Declare.
* sim-module.c (modules): Add scache_install, model_install.
(sim_post_argv_init): Set cpu->state backlinks.
* sim-options.c (standard_options): Delete --simcache-size,--max-insns.
(standard_option_handler): Likewise.
* sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
sim-profile.h.
(*): Assume ANSI C.
(profile_options): Delete --profile-simcache.
(profile_option_handler): Likewise.
(profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
spaces.
(profile_print_{memory,model}): Likewise.
(profile_print_simcache): Delete.
(profile_print_speed): New function.
(profile_print): Rewrite.
* sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
(WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
(PROFILE_DATA): Delete members simcache_{hits,misses}.
(PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
(PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
(profile_print): Update prototype.
David Edelsohn [Thu, 1 May 1997 17:45:25 +0000 (17:45 +0000)]
(EXTRACT_SIGNED,EXTRACT_UNSIGNED,HOST_LONGS_FOR_BITS): Move from
cgen-types.h to cgen-sim.h.
Ian Lance Taylor [Thu, 1 May 1997 15:32:09 +0000 (15:32 +0000)]
* targmatch.sed: Add explicit \n characters to work around bug in
HP/UX 10.20 sed program.
Peter Schauer [Thu, 1 May 1997 09:29:44 +0000 (09:29 +0000)]
* printcmd.c (disassemble_command): Adjust low function bound
by FUNCTION_START_OFFSET.
David Edelsohn [Thu, 1 May 1997 01:48:27 +0000 (01:48 +0000)]
* cgen-mem.h, cgen-scache.[ch], cgen-sem.h, cgen-sim.h: New files.
* cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
* sim-model.c: New file.
Jason Merrill [Wed, 30 Apr 1997 19:22:11 +0000 (19:22 +0000)]
* configure.in: Turn on multilib by default.
(cross_only): Remove target-libiberty.
* Makefile.in (all-gcc): Don't depend on libiberty.
David Edelsohn [Wed, 30 Apr 1997 18:35:58 +0000 (18:35 +0000)]
* Make-common.in (clean targets): Undo patch of Apr. 22.
David Edelsohn [Wed, 30 Apr 1997 17:22:51 +0000 (17:22 +0000)]
* tconfig.in (SIM_PRE_LOAD): Delete, no longer used.
Ian Lance Taylor [Wed, 30 Apr 1997 16:28:53 +0000 (16:28 +0000)]
* elf.c (copy_private_bfd_data): Cast csecs to avoid sign
extension problems.
Ian Lance Taylor [Wed, 30 Apr 1997 16:18:37 +0000 (16:18 +0000)]
revert Alpha/OpenBSD patches
Ian Lance Taylor [Wed, 30 Apr 1997 16:12:04 +0000 (16:12 +0000)]
revert Alpha/OpenBSD patches
Andrew Cagney [Wed, 30 Apr 1997 08:41:47 +0000 (08:41 +0000)]
Add Tick shift insn
Andrew Cagney [Wed, 30 Apr 1997 08:39:51 +0000 (08:39 +0000)]
Tidy code gen.
Andrew Cagney [Wed, 30 Apr 1997 08:38:28 +0000 (08:38 +0000)]
Define TiC80 break point (tmp)
Ian Lance Taylor [Wed, 30 Apr 1997 00:26:21 +0000 (00:26 +0000)]
Tue Apr 29 20:23:10 1997 Jim Wilson <wilson@cygnus.com>
* config/tc-mips.c (nopic_need_relax): Add new parameter
before_relaxing. Use it when testing ecoff_extern_size.
(load_address, macro, md_estimate_size_before_relax): Fix all
callers.
Ian Lance Taylor [Tue, 29 Apr 1997 23:55:42 +0000 (23:55 +0000)]
Tue Apr 29 19:54:36 1997 Richard Henderson <rth@tamu.edu>
* config/obj-elf.c (elf_pseudo_table): Add "subsection".
(obj_elf_subsection): New static function.
Ian Lance Taylor [Tue, 29 Apr 1997 23:53:26 +0000 (23:53 +0000)]
* config/obj-coff.c (coff_header_append): Don't reset string_size
each time through the loop.
Tom Tromey [Tue, 29 Apr 1997 17:29:47 +0000 (17:29 +0000)]
* configure.in (host_tools): Added vmake.
Andrew Cagney [Tue, 29 Apr 1997 08:41:15 +0000 (08:41 +0000)]
Numerous fixes.
Michael Snyder [Tue, 29 Apr 1997 04:27:26 +0000 (04:27 +0000)]
Mon Apr 28 21:25:32 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* Makefile.in: Add rule for gnu-nat.o and i386gnu-nat.o (Gnu Hurd)
* config/i386/i386gnu.mh: remove rules for [i386]gnu-nat.o, now
in Makefile.in (as for other targets); add NATDEPFILE corelow.o to
satisfy symbol dependancy in solib.c (core_ops).
* target.[ch] conditionalize Mach-specific signals so that they
won't show up in non-Mach gdb's!
* thread.c: add function thread_id_to_pid; change name of static
function "thread_switch" to "switch_to_thread", to avoid conflict
with Mach global symbol; move thread_cmd_list to global scope
so targets can add their own thread commands.
* infrun.c: sig_print_info: allow for long signal names.
* gnu-nat.[ch]: tidying up comments.
* gnu-nat.c: move several functions to static scope, just for tidy;
remove calls to prune_threads and renumber_threads;
gnu_wait must not return -1 when inferior exits;
attach_to_child will modify inferior_pid in a way that allows
fork_inferior to remain unchanged;
remove extra arg from startup_inferior;
move mach-specific thread commands here from thread.c.
Michael Snyder [Tue, 29 Apr 1997 04:25:11 +0000 (04:25 +0000)]
Mon Apr 28 18:21:20 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* symtab.c: decode_line_1, replace the assignment to
values.sals[0].pc which I accidentally left out on 4/3/97.
Michael Snyder [Tue, 29 Apr 1997 01:42:41 +0000 (01:42 +0000)]
Mon Apr 28 18:39:45 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* config.guess: improve algorithm for recognizing Gnu Hurd x86.
Michael Snyder [Tue, 29 Apr 1997 01:02:37 +0000 (01:02 +0000)]
Mon Apr 28 17:27:40 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* c-exp.y, java-exp.y: make parse_number reject "
123DEADBEEF".
(fix by Bob Manson).
Michael Snyder [Tue, 29 Apr 1997 00:32:03 +0000 (00:32 +0000)]
Mon Apr 28 17:27:40 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* top.c: change "to enable to enable" to "to enable" in a couple
of help strings.
Mark Alexander [Mon, 28 Apr 1997 16:08:01 +0000 (16:08 +0000)]
* breakpoint.c (remove_breakpoint): Pass correct type to
target_remove_watchpoint.
* target.h: Improve comment for target_{remove,insert}_breakpoint.
Peter Schauer [Sat, 26 Apr 1997 10:41:14 +0000 (10:41 +0000)]
* alpha-tdep.c (heuristic_proc_desc): Increase search limit
for return address register, handle `ret' instruction.
Peter Schauer [Sat, 26 Apr 1997 09:44:30 +0000 (09:44 +0000)]
* corelow.c (get_core_registers): Initialize cf.
* procfs.c: Minor changes to make pre-ANSI compilers happy.
(procfs_notice_signals): Copy traced signal set back to
pi->prrun.pr_trace.
(unconditionally_kill_inferior): If PR_DEAD is defined,
rerun inferior after killing it.
Michael Meissner [Fri, 25 Apr 1997 19:29:31 +0000 (19:29 +0000)]
Allow simulators to be built on Linux
Ian Lance Taylor [Fri, 25 Apr 1997 18:19:53 +0000 (18:19 +0000)]
* Makefile.in (DISTSTUFF): Add itbl-parse.h.
Ian Lance Taylor [Fri, 25 Apr 1997 16:15:33 +0000 (16:15 +0000)]
* doc/internals.texi (Porting GAS): Correct documentation for
current configure handling of targ-cpu.h, et. al.
(CPU backend): Document listing macros.
Ian Lance Taylor [Fri, 25 Apr 1997 16:04:44 +0000 (16:04 +0000)]
* listing.c (data_buffer): Set size based on other listing macros,
rather than always using 100.
(data_buffer_size): Remove static variable.
(calc_hex): Make data_buffer_size a local variable. Don't leave
any slop when filling data_buffer.
Jeff Law [Fri, 25 Apr 1997 06:14:15 +0000 (06:14 +0000)]
* config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS): The
structure value address is found in $a0 now.
* config/mn10200/tm-mn10200.h (EXTRACT_STRUCT_VALUE_ADDRESS): Likewise.
Fixes some struct.exp failures.
Ian Lance Taylor [Thu, 24 Apr 1997 23:37:57 +0000 (23:37 +0000)]
* Makefile.in (DISTBISONFILES): Add ld/Makefile.in
Ian Lance Taylor [Thu, 24 Apr 1997 23:30:37 +0000 (23:30 +0000)]
* Makefile.in (DEVO_SUPPORT): Add mpw-install.
Jeff Law [Thu, 24 Apr 1997 20:53:11 +0000 (20:53 +0000)]
* gdb.base/callfuncs.exp: Mark some tests as expected to fail
on the mn10300.
Jeff Law [Thu, 24 Apr 1997 19:35:11 +0000 (19:35 +0000)]
* config/mn10300/tm-mn10300.h (STORE_RETURN_VALUE): Pointers are
returned in $a0.
(EXTRACT_RETURN_VALUE): Likewise.
* mn10300-tdep.c (mn10300_analyze_prologue): Check for a return
insn at "pc", not "fi->pc".
Andrew Cagney [Thu, 24 Apr 1997 12:06:27 +0000 (12:06 +0000)]
Enable more instructions.
Andrew Cagney [Thu, 24 Apr 1997 12:06:14 +0000 (12:06 +0000)]
Fix? some reg definitions
David Edelsohn [Thu, 24 Apr 1997 07:58:17 +0000 (07:58 +0000)]
* configure: Regenerated to track ../common/aclocal.m4 changes.
David Edelsohn [Thu, 24 Apr 1997 07:54:06 +0000 (07:54 +0000)]
* configure.in (m32r-*-*): New target.
* configure: Regenerate.
David Edelsohn [Thu, 24 Apr 1997 07:50:16 +0000 (07:50 +0000)]
* configure: Regenerated to track ../common/aclocal.m4 changes.
* Makefile.in (SIM_OBJS): Add sim-module.o, sim-profile.o.
* sim-calls.c (sim_open): Call sim_module_uninstall if argument
parsing fails. Call sim_post_argv_init.
(sim_close): Call sim_module_uninstall.
David Edelsohn [Thu, 24 Apr 1997 07:48:47 +0000 (07:48 +0000)]
* Makefile.in (autoconf-common, autoconf-changelog): Change $* to $@.
David Edelsohn [Thu, 24 Apr 1997 07:33:45 +0000 (07:33 +0000)]
* sim-module.h, sim-model.h, sim-profile.h: New files.
* sim-module.c, sim-profile.c: New files.
* Make-common.in (SIM_PROFILE): Define
(CONFIG_CFLAGS): Add $(SIM_PROFILE).
(sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
(sim_module.o,sim-profile.o): Add rules for.
* aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
(--enable-sim-profile): Add.
* configure: Regenerated.
* sim-base.h (sim_state_base): New members init_list, uninstall_list,
model. Move trace and profile support to sim-{trace,profile}.h.
New members trace_data, profile_data.
* sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
* sim-config.h: Provide default definition of WITH_PROFILE.
(WITH_TRACE): Change default to -1.
(MAX_NR_PROCESSORS): Always define.
* sim-options.c: Move trace and profile support to
sim-{trace,profile}.h.
(sim_pre_argv_init): Moved to sim-model.c.
(standard_install): New function.
* sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
(standard_install): Declare.
* sim-trace.c: Tracing option handling moved here from sim-options.c.
(trace_install, trace_uninstall): New functions.
(trace_printf): Update reference to TRACE_FILE.
* sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
(TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
(WITH_TRACE_FOO_P): Define.
(trace_install): Declare.
(TRACE_DATA): New struct.
David Edelsohn [Thu, 24 Apr 1997 00:56:33 +0000 (00:56 +0000)]
* tconfig.in: New file.
* interp.c (sim_open): Handle missing arg to -E.
David Edelsohn [Thu, 24 Apr 1997 00:42:50 +0000 (00:42 +0000)]
* tconfig.in (SIM_HAVE_BIENDIAN): Define.
David Edelsohn [Thu, 24 Apr 1997 00:30:41 +0000 (00:30 +0000)]
* run.c: Undo last exec_bfd patch.
(main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
David Edelsohn [Thu, 24 Apr 1997 00:22:10 +0000 (00:22 +0000)]
* interp.c (prog_bfd_was_opened_p): New static local.
(prog_bfd): New global variable.
(sim_open): Undo patch to add -E support.
(sim_close): Close prog_bfd if sim_load opened it.
(sim_load): Record bfd of loaded file in prog_bfd.
* simops.c (prog_bfd): Renamed from exec_bfd.
Michael Meissner [Wed, 23 Apr 1997 21:57:39 +0000 (21:57 +0000)]
Restore exec_bfd, needed for v850 debug code
Jeff Law [Wed, 23 Apr 1997 17:22:34 +0000 (17:22 +0000)]
Wed Apr 23 11:18:45 1997 Jeffrey A Law (law@cygnus.com)
* config/mn10200/tm-mn10200.h (STORE_RETURN_VALUE): Pointers are
returned in $a0.
(EXTRACT_RETURN_VALUE): Likewise.
Andrew Cagney [Wed, 23 Apr 1997 13:56:14 +0000 (13:56 +0000)]
More Tic80 instructions.
Geoffrey Noer [Wed, 23 Apr 1997 00:21:55 +0000 (00:21 +0000)]
Tue Apr 22 17:17:28 1997 Geoffrey Noer <noer@pizza.cygnus.com>
* configure.in: if target is cygwin32 but host isn't cygwin32,
don't configure gdb tcl tk expect, not just gdb.
David Edelsohn [Tue, 22 Apr 1997 21:44:43 +0000 (21:44 +0000)]
* sim-load.c (sim_load_file): #include <stdio.h> for NULL.
Fred Fish [Tue, 22 Apr 1997 18:57:02 +0000 (18:57 +0000)]
* config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Define to use
floatformat_ieee_double_littlebyte_bigword for little endian
target byte order.
* utils.c (floatformat_to_doublest): Create local preswapped
copy of input for floatformat_littlebyte_bigword formats.
(get_field, put_field): Treat floatformat_littlebyte_bigword
the same as floatformat_little.
(floatformat_from_doublest): Postswap output words for
the floatformat_littlebyte_bigwords format.
David Edelsohn [Tue, 22 Apr 1997 18:05:31 +0000 (18:05 +0000)]
* interf.c (sim_open): Undo patch to add -E support.
Andrew Cagney [Tue, 22 Apr 1997 17:46:07 +0000 (17:46 +0000)]
TIc80 simulator checkpoint - runs 3 instructions - trap, addu, br.a.
David Edelsohn [Tue, 22 Apr 1997 17:31:11 +0000 (17:31 +0000)]
* interp.c (sim_open): Undo patch to add -E support.
Stu Grossman [Tue, 22 Apr 1997 17:13:41 +0000 (17:13 +0000)]
* config/alpha/alpha-osf3.mh config/i386/{i386gnu linux}.mh
config/mips/{embed embed64 embedl embedl64 vr4300 vr4300el vr5000
vr5000el}.mt config/powerpc/{aix aix4}.mh config/rs6000/{aix
aix4}.mh config/sh/sh.mt config/sparc/sp64sim.mt:
start-sanitize-v850
config/v850/v850.mt:
end-sanitize-v850
Remove -lm. That's now handled by configure.
Stu Grossman [Tue, 22 Apr 1997 16:04:38 +0000 (16:04 +0000)]
* Makefile.in (maintainer-clean): Add distclean to dependencies.
Remove duplicate rm's of files.
Stu Grossman [Tue, 22 Apr 1997 16:00:06 +0000 (16:00 +0000)]
* Make-common.in: Change clean targets to use :: so that other
Makefiles can have their own clean targets.
* sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
__STDC__ to control use of stdarg vs. varargs syntax. Some
systems can't use __STDC__, but require stdarg.
Stu Grossman [Tue, 22 Apr 1997 15:56:45 +0000 (15:56 +0000)]
* Makefile.in: Add clean targets.
Fred Fish [Tue, 22 Apr 1997 14:46:58 +0000 (14:46 +0000)]
* gdb.base/a2-run.exp: Add arm-*-coff setup_xfails for cases
where the test executable is run with explicit args.
* gdb.base/default.exp: Handle arm-*-coff case for "info float".
Fred Fish [Mon, 21 Apr 1997 21:56:32 +0000 (21:56 +0000)]
* gdb.base/run.c: Use FAKEARGV to build test executable that
does not require a command line arg, since most simulators
don't currently support passing such an arg into the simulated
program.
* gdb.base/commands.exp: Change tests to insert the proper
value as the arg to the first recursive factorial call. Change
compilation line to define FAKEARGV at compile time.
Gavin Romig-Koch [Mon, 21 Apr 1997 21:26:17 +0000 (21:26 +0000)]
for DIV: check for div by zero and int overflow
David Edelsohn [Mon, 21 Apr 1997 21:01:28 +0000 (21:01 +0000)]
* gdbtk.c (gdb_disassemble): Store endian-ness in `di'.
Stan Shebs [Mon, 21 Apr 1997 20:19:21 +0000 (20:19 +0000)]
One more removal of internal Cygnus stuff
Stan Shebs [Mon, 21 Apr 1997 20:07:53 +0000 (20:07 +0000)]
Fix various standards violations.
Tom Tromey [Mon, 21 Apr 1997 20:00:42 +0000 (20:00 +0000)]
* configure.in: Added gnuserv everywhere sn appears.
* Makefile.in (ALL_MODULES): Added all-gnuserv.
(CROSS_CHECK_MODULES): Added check-gnuserv.
(INSTALL_MODULES): Added install-gnuserv.
(CLEAN_MODULES): Added clean-gnuserv.
(all-gnuserv): New target.
Ian Lance Taylor [Mon, 21 Apr 1997 19:33:57 +0000 (19:33 +0000)]
* doc/c-mips.texi: Document .set autoextend.
Tom Tromey [Mon, 21 Apr 1997 19:30:47 +0000 (19:30 +0000)]
* configure.in (host_libs): Added libide.
Skip libide, vmake if no X. Also skip these everywhere that sn is
skipped.
* Makefile.in (ALL_MODULES): Added all-vmake, all-libide.
(CROSS_CHECK_MODULES): Added check-vmake, check-libide.
(INSTALL_MODULES): Added install-vmake, install-libide.
(CLEAN_MODULES): Added clean-vmake, clean-libide.
(all-vmake, all-libide): New targets.
Stu Grossman [Mon, 21 Apr 1997 16:51:22 +0000 (16:51 +0000)]
* remote-pa.c: Remove. It's broken and no longer necessary.
Ian Lance Taylor [Mon, 21 Apr 1997 15:22:42 +0000 (15:22 +0000)]
Mon Apr 21 11:21:31 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elf32-m68k.c: Follow the last changes in elf32-i386.c:
(struct elf_m68k_pcrel_relocs_copied, struct
elf_m68k_link_hash_entry, struct elf_m68k_link_hash_table,
elf_m68k_link_hash_traverse, elf_m68k_hash_table,
elf_m68k_link_hash_newfunc, elf_m68k_link_hash_table_create,
elf_m68k_discard_copies, bfd_elf32_bfd_link_hash_table_create):
New definitions.
(elf_m68k_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_m68k_size_dynamic_sections): If linking with -Bsymbolic,
traverse with elf_m68k_discard_copies.
Ian Lance Taylor [Sun, 20 Apr 1997 03:18:06 +0000 (03:18 +0000)]
Sat Apr 19 23:16:35 1997 Niklas Hallqvist <niklas@petra.appli.se>
* gas/mips/mips.exp: Handle OpenBSD like NetBSD.
Ian Lance Taylor [Sun, 20 Apr 1997 03:15:48 +0000 (03:15 +0000)]
Sat Apr 19 23:09:25 1997 Niklas Hallqvist <niklas@petra.appli.se>
* configure.in (i386-*-openbsd*, m68k-*-openbsd*,
mips-dec-openbsd*, ppc-*-*bsd*, ns32k-pc532-openbsd*,
sparc-*-openbsd*): New targets.
* configure: Rebuild.
Ian Lance Taylor [Sun, 20 Apr 1997 02:57:25 +0000 (02:57 +0000)]
* elf32-i386.c (elf_i386_check_relocs): Only count PC relative
relocs. From Jamie Lokier <jamie@rebellion.co.uk>.
Ian Lance Taylor [Sun, 20 Apr 1997 02:53:22 +0000 (02:53 +0000)]
Sat Apr 19 22:52:03 1997 Jim Wilson <wilson@cygnus.com>
* config/obj-elf.c (elf_frob_symbol): If TC_MIPS, set BSF_OBJECT
for all undefined symbols.
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.
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.)
Peter Schauer [Sat, 19 Apr 1997 11:53:58 +0000 (11:53 +0000)]
* serial.c (serial_log_command): Fix fputs_unfiltered calls.
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.
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.
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.
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.
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.
David Edelsohn [Fri, 18 Apr 1997 21:32:07 +0000 (21:32 +0000)]
* sim-options.c (standard_options): Add --endian.
(standard_option_handler): Likewise.
David Edelsohn [Fri, 18 Apr 1997 21:15:26 +0000 (21:15 +0000)]
Add a comment.
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.
David Edelsohn [Fri, 18 Apr 1997 20:33:27 +0000 (20:33 +0000)]
* interp.c (sim_resume): Fix argument to poll_quit.
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 ().
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.
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.
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.
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.
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).
Per Bothner [Fri, 18 Apr 1997 02:23:16 +0000 (02:23 +0000)]
Add new Java files.
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.
Fred Fish [Fri, 18 Apr 1997 01:33:07 +0000 (01:33 +0000)]
* arminit.c (ARMul_NewState): Preinitialize the state to
all zero/NULL.
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.