extern int stop_soon_quietly; /* for wait_for_inferior */
/* Forward data declarations */
-extern struct target_ops sim_ops; /* Forward declaration */
+/*extern struct target_ops sim_ops; /* Forward declaration */
void sim_store_register ();
void sim_set_oc ();
+int inferior_pid;
int
sim_write_inferior_memory (memaddr, myaddr, len)
CORE_ADDR memaddr;
char *arg;
int from_tty;
{
-
}
/*
* Download a file specified in 'args', to the sim.
*/
static void
-sim_load (args, fromtty)
+sasassim_load (args, fromtty)
char *args;
int fromtty;
{
bfd_get_section_contents (abfd, s, buffer, i, sub_delta);
sim_write_inferior_memory (s->vma + i, buffer, sub_delta);
printf_filtered ("*");
- fflush (stdout);
+ gdb_flush (gdb_stdout);
}
printf_filtered ("\n");
free (buffer);
sim_clear_breakpoints ();
init_wait_for_inferior ();
insert_breakpoints ();
- proceed (entry_pt, -1, 0);
+ proceed (entry_pt, TARGET_SIGNAL_DEFAULT, 0);
}
-
+#if 0
static void
sim_open (name, from_tty)
char *name;
if (from_tty)
printf_filtered ("Ending remote %s debugging\n", target_shortname);
}
-
+#endif
/* Tell the remote machine to resume. */
/* Wait until the remote machine stops, then return,
storing status in STATUS just as `wait' would. */
-
+#if 0
+/* See remote-sim.c for how this is done now. */
int
-sim_wait (status)
+sim_wait (pid, status)
+ int pid;
WAITTYPE *status;
{
- *status = sim_stop_signal ();
- return 0;
+ sim_stop_reason (&reason, &sigrc);
+ return inferior_pid;
}
-
+#endif
/* Get ready to modify the registers array. On machines which store
individual registers, this doesn't need to do anything. On machines
which store all the registers in one fell swoop, this makes sure
target specified yet, this will loop prompting the user to do so.
*/
+#if 0
void
sim_before_main_loop ()
{
push_target (&sim_ops);
}
+
/* Clear the sims notion of what the break points are */
static void
sim_mourn ()
unpush_target (&sim_ops);
generic_mourn_inferior ();
}
-
+#endif
static void
-rem_resume (a, b)
+rem_resume (pid, a, b)
+ int pid;
int a;
- int b;
+ enum target_signal siggnal;
{
- sim_resume (a, b);
+ sim_resume (a, target_signal_to_host (siggnal));
}
-/* Define the target subroutine names */
+/* Define the target subroutine names */
+#if 0
struct target_ops sim_ops =
{
"sim", "Remote SIM monitor",
void
_initialize_remote_sim ()
{
- extern int sim_z8001_mode;
-
- sim_z8001_mode = z8001_mode;
add_target (&sim_ops);
-
}
+#endif