mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix software single-stepping: we need to check if the instruction is a
return instruction as well, or we'll stop single-stepping as soon as we'll return from a function. MFC after: 3 days
This commit is contained in:
parent
4ed897041f
commit
08cfba5d14
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue