Save a copy of argv, not just a pointer.
[deliverable/binutils-gdb.git] / sim / common / ChangeLog
index 2719e33115947c29c5e5bec964a7b2f1ebd46bfe..b4dd6782e033fd9e70570387dfab6eedf24a1d53 100644 (file)
@@ -1,3 +1,186 @@
+Wed Aug 27 09:51:42 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
+       used by copyargv and freeargv.
+
+       * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
+       STATE_PROG_ARGV, not just a pointer.
+
+Mon Aug 25 17:50:22 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * configure: Regenerated to track ../common/aclocal.m4 changes.
+       * config.in: Ditto.
+
+Mon Aug 25 12:11:06 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * aclocal.m4 (sim-endian): Add second argument to
+       SIM_AC_OPTION_ENDIAN.  First is hardwired endian, second is
+       default endian when not hardwired.
+
+       * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
+       else failes value for target byte order.
+
+       * sim-config.c (sim_config): Add abfd arguments. Set
+       STATE_PROG_BFD accordingly.  Determine prefered_target_byte_order
+       from same.
+       (sim_config): Return SIM_RC, don't abort.
+       (bfd.h): Include.
+       
+       * run.c (main): Update call to sim_open - add ABFD argument.
+       * nrun.c (main): Add NULL ABFD argument.
+
+Thu Aug 14 12:48:57 1997  Doug Evans  <dje@canuck.cygnus.com>
+
+       * callback.c (os_poll_quit): Make static.
+       Call sim_cb_eprintf, not p->eprintf.
+       (sim_cb_printf, sim_cb_eprintf): New functions.
+       * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
+
+       * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
+       sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
+       sim-utils.h. #include sim-utils.h.
+       * sim-utils.h: Above decls moved here.
+       (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
+
+       * sim-watch.c (action_watchpoint): Fix thinkos.
+
+Thu Jul 24 08:48:05 1997  Stu Grossman  (grossman@critters.cygnus.com)
+
+       * sim-types.h:  Fix defs of 64 bit data types for MSVC.
+
+Tue Jul 22 10:35:37 1997  Doug Evans  <dje@canuck.cygnus.com>
+
+       * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
+       to FORCED_ALIGNMENT case.
+
+Thu Jun  5 13:48:37 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * callback.c (target_to_host_open): Handle hosts with O_BINARY.
+
+Thu Jun  5 08:47:10 1997  Jeffrey A Law  (law@cygnus.com)
+
+       * Make-common.in (libsim.a): Fix typo.
+
+Thu Jun  5 13:48:37 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * nrun.c (main): Verify the structure returned before using it.
+
+Wed Jun  4 11:44:06 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
+       default.
+
+       * sim-engine.c (sim_engine_install): New function.  Install the
+       engine init functions.
+       (sim_engine_init): [Re]initialize the simulator engine.
+       
+       * sim-module.c: Add sim_engine to list of modules that always
+       install.
+
+Tue Jun  3 04:52:04 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
+       to remove the old watchpoint, not delete_watchpoint.
+       (watch_option_handler): Action the correct watchpoint, not just
+       cycles.
+
+Wed May 28 14:47:41 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
+       both low and high word.
+       (sim_core_write_aligned_N): Ditto.
+       
+       * sim-trace.c (set_trace_options): Delete code explicitly setting
+       core->trace.
+
+       * sim-options.c (sim_print_help): Call the list commands if not a
+       standalone simulator.
+       (sim_print_help): Advise that some options may not be applicable.
+       
+       * sim-trace.c (set_trace_options): Assume core present.
+
+       * sim-events.c (sim_events_schedule_after_signal): Overflow signal
+       buffer when full not almost full.
+
+Tue May 27 14:32:00 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-events.c (sim_events_process): Don't blat the event queue
+       when processing watchpoints.
+
+       * sim-watch.h: Make arg unsigned long - stop sign extension.
+
+       * sim-events.c (sim_watch_valid): rewrite so debugable.
+
+       * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
+
+       * sim-watch.c (schedule_watchpoint): Add is_within option so that
+       inequality test is possible.
+       (handle_watchpoint): Re-pass is_within arg.
+       (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
+       0 to schedule_watchpoint's is_within arg.
+       (sim_watchpoint_init): Re-pass is_within arg.
+
+       * sim-options.c (sim_print_help): Add is_command argument.  Don't
+       include -- prefix when called from the command line interpreter.
+
+       * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
+
+       * sim-events.c (sim_events_watch_sim): Add is_within argument,
+       zero indicates that the test should be reversed.
+       (sim_events_watch_core): Ditto.
+       (WATCH_CORE): Compare range against is_within.
+       (WATCH_SIM): Ditto.
+
+Tue May 27 12:48:03 1997  Andrew Cagney  <cagney@b2.cygnus.com>
+
+       * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
+       sim_core_read_buffer.  Check nr-bytes transfered.
+
+       * sim-core.h (sim_core_common): Define a new struct that contains
+       the common data.  to sd and cpu structures.
+       * sim-core.c (sim_core_attach): Update.
+       (sim_core_init): Update. Remember to copy initialized data to each
+       cpu.
+       (sim_core_find_mapping): Ditto.
+
+       * sim-core.c (sim_core_read_buffer): Add cpu argument.
+       (sim_core_write_buffer): Ditto.
+
+       * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
+       transfer use xor version of read buffer.
+       (sim_core_write_unaligned_N): Ditto for write.
+       
+       * sim-core.c (sim_core_xor_read_buffer): New function implement
+       xor-endian data read breaking transfer up into xor-endian sized
+       blocks.
+       (sim_core_xor_write_buffer): Ditto for write.
+       (reverse_n): Reverse order of arbitrary number of bytes in buffer
+       - needed for xor-endian transfers.
+
+Fri May 23 14:24:31 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-inline.h: Review description.
+       
+       * sim-core.h, sim-core.c: Reduce number of functions being inlined
+       to just those involved in data transfers and configuration.
+       
+       * sim-xcat.h (XSTRING): New macro, map macro definition onto
+       string.
+       * sim-n-core.h (sim_core_read_aligned_N): Use.
+       (sim_core_read_unaligned_N): Ditto.
+       (sim_core_read_unaligned_N): Ditto..
+       (sim_core_write_unaligned_N): Ditto.
+       
+       * sim-core.h: Add xor endian bitmap to main structure.  *
+       
+       sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
+       endian.
+       (sim_core_read_aligned_N): Ditto.
+
+       * sim-core.c (sim_core_set_xor_endian): New function.
+       (sim_core_attach): Don't overwrite the per-cpu xor map when
+       cloning the global core.
+
 Fri May 23 10:53:13 1997  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * sim-engine.h: Update below so that it is using an enumerated
This page took 0.049381 seconds and 4 git commands to generate.