Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Mar 2021 14:08:22 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bd0b7cbf5ac1 - main - arm64: update kdb_thrctx->pcb_lr with BKPT_SKIP
Message-ID:  <202103011408.121E8MX6040538@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=bd0b7cbf5ac1baff4211e09584e0b86d4d96228b

commit bd0b7cbf5ac1baff4211e09584e0b86d4d96228b
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2021-03-01 14:00:17 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2021-03-01 14:04:22 +0000

    arm64: update kdb_thrctx->pcb_lr with BKPT_SKIP
    
    This value should be kept in sync with updates to kdb_frame->tf_elr,
    since it is queried by PC_REGS() in several places.
    
    Reviewed by:    markj, jhb
    MFC after:      5 days
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D28943
---
 sys/arm64/include/db_machdep.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/arm64/include/db_machdep.h b/sys/arm64/include/db_machdep.h
index f2fd2a57a9c3..61b58415e41c 100644
--- a/sys/arm64/include/db_machdep.h
+++ b/sys/arm64/include/db_machdep.h
@@ -49,8 +49,9 @@ typedef long		db_expr_t;
 #define	BKPT_SIZE	(4)
 #define	BKPT_SET(inst)	(BKPT_INST)
 
-#define	BKPT_SKIP do {							\
-	kdb_frame->tf_elr += BKPT_SIZE; \
+#define	BKPT_SKIP do {				\
+	kdb_frame->tf_elr += BKPT_SIZE;		\
+	kdb_thrctx->pcb_lr += BKPT_SIZE;	\
 } while (0)
 
 #define	db_clear_single_step	kdb_cpu_clear_singlestep



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103011408.121E8MX6040538>