summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/db_machdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/include/db_machdep.h')
-rw-r--r--sys/amd64/include/db_machdep.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/amd64/include/db_machdep.h b/sys/amd64/include/db_machdep.h
index 0a737eb..0c57aa7 100644
--- a/sys/amd64/include/db_machdep.h
+++ b/sys/amd64/include/db_machdep.h
@@ -41,9 +41,17 @@ typedef long db_expr_t; /* expression - signed */
#define BKPT_SIZE (1) /* size of breakpoint inst */
#define BKPT_SET(inst) (BKPT_INST)
-#define BKPT_SKIP kdb_frame->tf_rip += 1
+#define BKPT_SKIP \
+do { \
+ kdb_frame->tf_rip += 1; \
+ kdb_thrctx->pcb_rip += 1; \
+} while(0)
-#define FIXUP_PC_AFTER_BREAK kdb_frame->tf_rip -= 1;
+#define FIXUP_PC_AFTER_BREAK \
+do { \
+ kdb_frame->tf_rip -= 1; \
+ kdb_thrctx->pcb_rip -= 1; \
+} while(0);
#define db_clear_single_step kdb_cpu_clear_singlestep
#define db_set_single_step kdb_cpu_set_singlestep
OpenPOWER on IntegriCloud