+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
+
+ * aclocal.m4, config.in, configure: Regenerate.
+
+
+ PR sim/9971:
+ * configure.ac: Change AC_CHECK_LIB to AC_SEARCH_LIBS to match
+ the code in gdb's configure.ac with $TERMCAP.
+ * configure: Regenerated.
+
+
+ * aclocal.m4: New file.
+ * configure: Regenerate.
+
+
+ * configure.ac: Change include to common/acinclude.m4.
+
+
+ * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
+ call. Replace common.m4 include with SIM_AC_COMMON.
+ * configure: Regenerate.
+
+
+ * interf.c (sim_open): Accept and ignore `--sysroot=...'.
+
+
+ * interf.c (sim_complete_command): New stub function.
+
+
+ * interf.c (sim_store_register): Update return value to
+ match new API.
+
+
+ * sis.h: Remove #include <stdint.h>.
+ (uint64, int64): Redefine without using stdint.h.
+ (UINT64_MAX): Define.
+
+
+ * erc32.c (sis_memory_write): Change prototype to const unsigned char *.
+ * func.c (exec_cmd, event, advance_time, wait_for_irq): Use uint64
+ for counts.
+ * interf.c (run_sim): Change icount to uint64_t. Use strtol directly.
+ (sim_resume): Specify maximum run time as uint64.
+ * sis.c (run_sim): Change icount to uint64_t.
+ * sis.h: Define uint64 as uint64_t. Change various fields and
+ prototypes to uint64 to support longer simulations.
+
+
+ * interp.c (sim_write): Add const to buf arg.
+
+
+ * configure: Regenerate.
+
+
+ * config.in: Regenerate.
+ * configure: Likewise.
+
+ * configure: Regenerate.
+
+
+ * erc32.c, exec.c: Fix warnings.
+
+
+ * configure: Regenerate to track ../common/common.m4 changes.
+ * config.in: Ditto.
+
+
+ * sis.c: Correct spelling error.
+
+
+ * configure: Regenerate.
+
+
+ * acconfig.h: Remove.
+ * config.in: Regenerate.
+
+
+ * configure.ac: Add test for readline, substitute READLINE.
+ * Makefile.in (READLINE_LIB): New substituted-contents variable.
+ (SIM_EXTRA_LIBDEPS): Don't set.
+ (SIM_EXTRA_LIBS): Use $(READLINE_LIB) instead of
+ ../../readline/libreadline.a.
+ * configure: Regenerate.
+
+
+ * Makefile.in (func.o, help.o): Correct dependencies.
+
+
+ * Makefile.in (install-sis): Honor DESTDIR.
+
+
+ * configure: Regenerated.
+
+
+ * configure: Regenerated.
+
+
+ * configure: Regenerated.
+
+
+ * interf.c: (gdb/signals.h): Include it.
+ (sim_stop_reason): Use TARGET_SIGNAL_*.
+
+
+ * func.c: Remove ANSI_PROTOTYPES conditional code.
+
+
+ * configure: Regenerate.
+
+
+ * sim/erc32/float.c (set_fsr): Do not use deprecated multi-line
+ strings.
+ (clear_accex): Ditto.
+ * sim/erc32/interf.c: Remove the redeclaration of fprintf.
+ * sim/erc32/sis.c: Ditto.
+ * sim/erc32/exec.c: Add missing semicolon.
+ * sim/erc32/func.c: Remove definitions of generic_print_address,
+ generic_symbol_at_address, buffer_read_memory and perror_memory, as
+ they are already defined in opcodes/dis-buf.c.
+
+
+ * configure.ac: Sinclude aclocal.m4 before common.m4. Add
+ explicit call to AC_CONFIG_HEADER.
+ * configure: Regenerate.
+
+
+ * configure.ac: Update to use ../common/common.m4.
+ * configure: Re-generate.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure.ac: Rename configure.in, require autoconf 2.59.
+ * configure: Re-generate.
+
+
+ * configure: Regenerate for ../common/aclocal.m4 update.
+
+
+ * interf.c: Include "libiberty.h" instead of declaring buildargv
+ ourselves.
+
+
+ * interf.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * sis.h: Include "gdb/remote-sim.h" and "gdb/callback.h".
+ * interf.c: Include "gdb/remote-sim.h".
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * Makefile.in (install-sis): Add $(EXEEXT) for Windows host.
+
+
+ * func.c (buffer_read_memory): Change type of size to unsigned to
+ match prototype
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure.in: add termcap and -luser32 for host=cygwin
+ * configure: regenerate
+
+
+ * exec.c (dispatch_instruction):
+ Correct the sense of the
+ if (!sparclite) {
+ sregs->trap = TRAP_UNIMP;
+ break;
+ }
+ clause that has been pasted around: it's correct in the SCAN and
+ DIVScc (divide step) cases (where it was probably originally
+ written?), but reversed in the SDIV, SDIVcc, UDIV, UDIVcc cases
+ ie. instructions only in the SPARC V8 or SPARClite 86x
+ architectures. It was also present when not required for SMUL,
+ SMULcc, UMUL, UMULcc instructions that are present in all
+ architectures.
+
+
+ * interf.c (run_sim): Fix a bug in the main loop's handling of
+ annulled delay slot instructions. There is precedent for this
+ change; the _other_ main loop in sis.c gets it right according to
+ my reading of the code.
+
+ The bug is: if an interrupt happens when the next instruction
+ (at sregs->pc) is annulled, the trap is taken (by execute_trap())
+ with the current values of PC and NPC, so when the trap returns,
+ the annulled instruction is indeed executed. Another giveaway is
+ that the annul flag is cleared in execute_trap(): the information
+ is demonstrably discarded.
+
+ The solution is: perform annulling before looking for traps, in
+ fact it's neater to do annulling, see if there's an interrupt and
+ if not, do the instruction, then handle traps be they generated by
+ interrupts pending or by the instruction we might just have done.
+ That's what the sis.c one does.
+
+
+ * sis.h: Add asr17 register for support of SparcLITE (at least the
+ Hitachi ones I find before me)
+
+ * exec.c (dispatch_instruction): Case WRY: Allow write of asr17 if
+ sparclite. Other ASR numbers than 17 or 0 (Y) trap out.
+ Case RDY: Allow read of asr17 if sparclite. Other ASRs ditto.
+ (execute_trap): Do single-vector-trapping if asr17 bit 0 is set.
+ (init_regs): Initialize y and asr17.
+ NB: In instruction-set space, the Y register is asr0; the
+ instructions have different names for human reasons only.
+
+ * sis.c:
+ * interf.c: Set boolean mode variable dumbio if invoked with
+ argument "-dumbio" and mention it of verbose.
+ * erc32.c: if "dumbio" is set, do not assume that there is a
+ terminal type device attached to stdin/stdout. Do not set
+ buffering or mess with tcsetattr or do any read operations in
+ order to make UART interrupts; not input data is supported.
+ This is necessary to allow the sim to be used within the eCos
+ testing infrastructure where stdin/stdout are pipes to a TCL
+ program; the sim hangs otherwise.
+
+
+ * exec.c (dispatch_instruction): Add SPARClite 'scan' instruction.
+
+
+ * func.c (bfd_load): Add special handling of a.out executables.
+
+
+ * func.c (bfd_load): Print correct endianness.
+ * interf.c (run_sim): Print debugging information if verbosity level
+ is greater than 2.
+ (sim_open): Repeated -v options now increment verbosity level.
+ (sim_store_register): Handle little-endian case.
+ (flush_window): Print debugging information if verbosity level
+ is greater then 2.
+
+
+ * interf.c (sim_open): Use revamped memory_read, which makes
+ byte-swapping unnecessary. Add -sparclite-board option for
+ emulating RAM found on typical SPARClite boards. Print
+ error message for unrecognized option.
+ * erc32.c: Change RAM address and size from constants to variables,
+ to allow emulation of SPARClite board RAM.
+ (fetch_bytes, store_bytes): New helper functions for revamped
+ mememory_read and memory_write.
+ (memory_read, memory_write): Rewrite to store bytes in target
+ byte order instead of storing words in host byte order; this
+ greatly simplifies support of little-endian programs.
+ (get_mem_ptr): Remove unnecessary byte parameter.
+ (sis_memory_write, sis_memory_read): Store words in target
+ byte order instead of host byte order.
+ (byte_swap_words): Remove, no longer needed.
+ * sis.h ((byte_swap_words): Remove declaration, no longer needed.
+ (memory_read): Add new sz parameter.
+ * sis.c (run_sim): Use revamped memory_read, which makes
+ byte-swapping unnecessary.
+ * exec.c (dispatch_instruction): Use revamped memory_read, which
+ makes byte-swapping and double-word fetching unnecessary.
+ * func.c (sparclite_board): Declare new variable.
+ (get_regi): Handle little-endian data.
+ (bfd_load): Recognize little-endian SPARClite as having
+ little-endian data.
+
+
+ * erc32.c (port_init): Print messages only if sis_verbose is true.
+ * func.c (bfd_load): Ditto.
+ * interf.c (sim_open): Ditto.
+
+
+ * sis.h (uint64, int64): Define.
+ * exec.c (SDIV, SDIVCC, UDIV, UDIVCC): Define new opcodes.
+ * (mul64): Simplify calculation of negative result.
+ * (div64): New helper function for 64-bit division.
+ * (dispatch_instruction): Add emulation of SDIV, SDIVCC, UDIV,
+ and UDIVCC.
+
+
+ * erc32.c (close_port): Don't close stdin; it kills GDB.
+ (byte_swap_words): New function.
+ * sis.h: (byte_swap_words): Declare.
+ * interf.c (run_sim): Always fetch instructions as big-endian.
+ * sis.c (run_sim): Ditto.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * acconfig.h: New file.
+ * configure.in: Reverted change of Apr 24; use sinclude again.
+
+Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * configure.in: Don't call sinclude.
+
+
+ * func.c (disp_fpu): Fix build problem on big-endian hosts.
+
+
+ * erc32.c (sim_stop): Handle SIGINT gracefully.
+ * interf.c (sim_open): Don't catch SIGINT; GDB will do that for us.
+
+
+ * exec.c (dispatch_instruction): Change how carry out is calculated
+ in DIVSCC. Add emulation of SMULCC, UMUL, and UMULCC.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * end.c: Update to version 2.7.5, fix compiler warnings and bugs.
+ * erc32.c: Ditto.
+ * exec.c: Ditto.
+ * float.c: Ditto.
+ * func.c: Ditto.
+ * help.c: Ditto.
+ * interf.c: Ditto.
+ * sis.c: Ditto.
+ * sis.h: Ditto.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * interf.c (sim_store_register, sim_fetch_register): Pass in
+ length parameter. Return -1.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * float.c (__setfpucw): Compile on any i386 target. Not just NT.
+
+ * interf.c (sim_kill): Delete.
+ (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD
+ argument.
+ (sim_load): Don't save start address.
+ (start_address): Delete variable.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * interf.c (sim_open): Add ABFD argument. Change ARGV to PARGV.
+
+
+ * Makefile.in (install-sis): Change $(srcdir)/sis to sis.
+
+
+ * interf.c (sim_set_callbacks): Drop SD argument - not applicable.
+ (sim_open): Add callback arg, save it.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * interf.c (sim_open): Undo patch to add -E support.
+
+
+ * 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.
+
+
+ * Makefile.in (install-sis): Depend upon installdirs. Use
+ $(program_transform_name) directly, rather than using
+ $(INSTALL_XFORM).
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * interf.c (sim_open): New arg `kind'.
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Re-generate.
+
+
+ * interf.c (sim_open): New SIM_DESC result. Argument is now in
+ argv form.
+ (other sim_*): New SIM_DESC argument.
+
+
+ * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
+ COMMON_{PRE,POST}_CONFIG_FRAG instead.
+ * configure.in: sinclude ../common/aclocal.m4.
+ * configure: Regenerated.
+
+
+ * configure configure.in Makefile.in: Update to new configure
+ scheme which is more compatible with WinGDB builds.
+ * configure.in: Improve comment on how to run autoconf.
+ * configure: Re-run autoconf to get new ../common/aclocal.m4.
+ * Makefile.in: Use autoconf substitution to install common
+ makefile fragment.
+
+
+ * interf.c (run_sim): Stop the simulator and reset the stdio after
+ breakpoints.
+
+
+ * configure.in: Look for libtermcap.a.
+ * Makefile.in: Only link in -ltermcap if it exists.
+ * erc32.c: Update to version 2.6a. Fix uart handling.
+ * exec.c: Update to version 2.6a. Add sparclite support.
+ * float.c: Update to version 2.6a. Convert comments to
+ preprocessor warnings. Add __setfpucw() for i385 hosts so floating
+ point exceptions work on win32.
+ * func.c: Update to version 2.6a. Fix uart handling, add support
+ for user error traps.
+ * help.c: Update to version 2.6a. Add help note on user error
+ traps.
+ * interf.c: Update to version 2.6a. Fix uart handling, and add
+ sparclite support.
+ * examples/gccx: Use sparclite cross compiler, not native gcc.
+ * examples/srt0.S: Use "mov" rather than "wr" for manipulating
+ the psr register.
+
+
+ * Makefile.in (run.o): Remove this rule, it hides the one in
+ ../common/Make-common.in that correctly references the source
+ in the sibling ../common directory.
+
+
+ * Makefile.in: Delete stuff moved to ../common/Make-common.in.
+ (SIM_{OBJS,EXTRA_LIBS,EXTRA_LIBDEPS,EXTRA_ALL,EXTRA_INSTALL}): Define.
+ (SIM_{EXTRA_CLEAN,EXTRA_CFLAGS}): Define.
+ * configure.in: Simplify using macros in ../common/aclocal.m4.
+ Call AC_CHECK_HEADERS(stdlib.h).
+ * configure: Regenerated.
+ * config.in: New file.
+ * func.c (sim_set_callbacks): Delete, moved to
+ * interf.c (sim_set_callbacks): here.
+ (sim_callback): New global.
+ Rewrite all calls to printf_filtered to go through callback.
+ (sim_size,sim_trace): New functions.
+ (sim_{insert,remove}_breakpoint): #if 0 out.
+ * sis.c: #include "config.h". #include <stdlib.h> if present.
+ (main): Coerce fprintf arg to INIT_DISASSEMBLE_INFO to fprintf_ftype.
+ * sis.h: #include "callback.h".
+ * run.c: Deleted, using one in ../common now.
+
+
+ * Makefile.in (clean): Move config.log to distclean.
+
+
+ * Makefile.in (clean): Also remove config.log.
+
+
+ * Makefile.in (CC_FOR_BUILD): New variable.
+ (AR, AR_FLAGS, BISON, MAKEINFO): Remove duplicate variables.
+ (RANLIB, CC): Likewise.
+ (end): Use $(CC_FOR_BUILD), not $(CC).
+ * configure.in: Set CC_FOR_BUILD.
+ * configure: Rebuild.
+
* erc32.c (port_init): Disable this for __GO32__ (got no pty's