Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
[deliverable/binutils-gdb.git] / sim / d10v / interp.c
index d06b86bb84c40fa1f61a1de179ea637edda79bb2..21d48112c5771afc4a8af0d5e69240ada265ac50 100644 (file)
@@ -317,11 +317,7 @@ sim_resume (step, siggnal)
 
 /*   (*d10v_callback->printf_filtered) (d10v_callback, "sim_resume (%d,%d)  PC=0x%x\n",step,siggnal,PC); */
 
- if (step)
-   State.exception = SIGTRAP;
- else
-   State.exception = 0;
+  State.exception = 0;
  do
    {
      uint32 byte_pc = ((uint32)PC) << 2;
@@ -369,7 +365,10 @@ sim_resume (step, siggnal)
           PC++;
        }
    } 
- while (!State.exception);
+ while ( !State.exception && !step);
+
+ if (step && !State.exception)
+   State.exception = SIGTRAP;
 }
 
 int
This page took 0.022986 seconds and 4 git commands to generate.