aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.h
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1993-10-23 21:56:47 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1993-10-23 21:56:47 +0000
commit592f517aa397bea48d2e47cae2c0d29f94dfc7d1 (patch)
treec37a87356fd64316931192cf5f66d18777eebae7 /gdb/remote-sim.h
parentdcb389736b3a54eadeaff8d80e5cdd42f2ec2141 (diff)
downloadgdb-592f517aa397bea48d2e47cae2c0d29f94dfc7d1.zip
gdb-592f517aa397bea48d2e47cae2c0d29f94dfc7d1.tar.gz
gdb-592f517aa397bea48d2e47cae2c0d29f94dfc7d1.tar.bz2
* remote-sim.h (sim_stop): New enum.
(sim_stop_signal): Change prototype, result is enum sim_stop. * remote-sim.c (gdbsim_wait): Update call to sim_stop_signal.
Diffstat (limited to 'gdb/remote-sim.h')
-rw-r--r--gdb/remote-sim.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/gdb/remote-sim.h b/gdb/remote-sim.h
index bdad3fd..293be34 100644
--- a/gdb/remote-sim.h
+++ b/gdb/remote-sim.h
@@ -63,11 +63,13 @@ int sim_store_register PARAMS ((int regno, char *buf));
int sim_kill PARAMS ((void));
-/* Read LENGTH bytes of the simulated program's memory and store in BUF. */
+/* Read LENGTH bytes of the simulated program's memory and store in BUF.
+ Result is number of bytes read, or zero if error. */
int sim_read PARAMS ((CORE_ADDR mem, char *buf, int length));
-/* Store LENGTH bytes from BUF in the simulated program's memory. */
+/* Store LENGTH bytes from BUF in the simulated program's memory.
+ Result is number of bytes write, or zero if error. */
int sim_write PARAMS ((CORE_ADDR mem, char *buf, int length));
@@ -79,9 +81,12 @@ int sim_info PARAMS ((void));
int sim_set_pc PARAMS ((CORE_ADDR pc));
-/* Fetch why the program stopped. */
+/* Fetch why the program stopped.
+ SIGRC will contain either the argument to exit() or the signal number. */
-int sim_stop_signal PARAMS ((void));
+enum sim_stop { sim_exited, sim_stopped, sim_signalled };
+
+enum sim_stop sim_stop_signal PARAMS ((int *sigrc));
/* Run (or resume) the program. */