summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/ddb/db_run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ddb/db_run.c b/sys/ddb/db_run.c
index 18f9c0d..f0b31bf 100644
--- a/sys/ddb/db_run.c
+++ b/sys/ddb/db_run.c
@@ -269,7 +269,7 @@ db_set_single_step(void)
* at pc was not executed.
*/
inst = db_get_value(pc, sizeof(int), FALSE);
- if (inst_branch(inst) || inst_call(inst)) {
+ if (inst_branch(inst) || inst_call(inst) || inst_return(inst)) {
brpc = branch_taken(inst, pc);
if (brpc != pc) { /* self-branches are hopeless */
db_taken_bkpt = db_set_temp_breakpoint(brpc);
OpenPOWER on IntegriCloud