summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/db_machdep.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2004-09-22 01:27:06 +0000
committerpeter <peter@FreeBSD.org>2004-09-22 01:27:06 +0000
commitfd5eab6b9140f7fdc2d4354c43f415ee2f9c4a7d (patch)
treef43739cdab73560da259f1f79a01cc68b77c1962 /sys/amd64/include/db_machdep.h
parenta88a734efcee0ad86c34aa7d05736536e053f52e (diff)
downloadFreeBSD-src-fd5eab6b9140f7fdc2d4354c43f415ee2f9c4a7d.zip
FreeBSD-src-fd5eab6b9140f7fdc2d4354c43f415ee2f9c4a7d.tar.gz
MFi386: adapt rev 1.19 (debugger fixes)
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