aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index d0f0f50..124022a 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -280,6 +280,9 @@ gdbsim_resume (pid, step, siggnal)
int pid, step;
enum target_signal siggnal;
{
+ if (inferior_pid != 42)
+ error ("The program is not being run.");
+
if (sr_get_debug ())
printf_filtered ("gdbsim_resume: step %d, signal %d\n", step, siggnal);