Non i386 machines are polite and don't point at instructions. They
count 'em. Just to be nice, access the program counter with a macro...
This commit is contained in:
parent
4b68c8d809
commit
a69a3d2260
|
@ -24,10 +24,14 @@
|
||||||
* rights to redistribute these changes.
|
* rights to redistribute these changes.
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* $Id: db_run.c,v 1.2 1993/05/20 03:39:28 cgd Exp $
|
* $Id: db_run.c,v 1.3 1993/12/15 15:08:11 briggs Exp $
|
||||||
*
|
*
|
||||||
* HISTORY
|
* HISTORY
|
||||||
* $Log: db_run.c,v $
|
* $Log: db_run.c,v $
|
||||||
|
* Revision 1.3 1993/12/15 15:08:11 briggs
|
||||||
|
* Non i386 machines are polite and don't point at instructions. They
|
||||||
|
* count 'em. Just to be nice, access the program counter with a macro...
|
||||||
|
*
|
||||||
* Revision 1.2 1993/05/20 03:39:28 cgd
|
* Revision 1.2 1993/05/20 03:39:28 cgd
|
||||||
* add explicit rcs id
|
* add explicit rcs id
|
||||||
*
|
*
|
||||||
|
@ -144,7 +148,7 @@ db_stop_at_pc(is_breakpoint)
|
||||||
return (TRUE); /* stop here */
|
return (TRUE); /* stop here */
|
||||||
}
|
}
|
||||||
} else if (*is_breakpoint) {
|
} else if (*is_breakpoint) {
|
||||||
ddb_regs.tf_eip += 1;
|
PC_REGS(&ddb_regs) += BKPT_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
*is_breakpoint = FALSE;
|
*is_breakpoint = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue