Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 Fixed stack analyzing backtrace (bt...



details:   https://anonhg.NetBSD.org/src/rev/353de15f2a3c
branches:  trunk
changeset: 370156:353de15f2a3c
user:      ryo <ryo%NetBSD.org@localhost>
date:      Mon Sep 19 17:24:23 2022 +0000

description:
Fixed stack analyzing backtrace (bt/s) correctly for nested trapframes.

diffstat:

 sys/arch/aarch64/aarch64/db_trace.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r e932d7b323ab -r 353de15f2a3c sys/arch/aarch64/aarch64/db_trace.c
--- a/sys/arch/aarch64/aarch64/db_trace.c       Mon Sep 19 17:23:14 2022 +0000
+++ b/sys/arch/aarch64/aarch64/db_trace.c       Mon Sep 19 17:24:23 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.19 2022/06/07 23:55:25 ryo Exp $ */
+/* $NetBSD: db_trace.c,v 1.20 2022/09/19 17:24:23 ryo Exp $ */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.19 2022/06/07 23:55:25 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.20 2022/09/19 17:24:23 ryo Exp $");
 
 #include <sys/param.h>
 #include <sys/bitops.h>
@@ -544,8 +544,8 @@
                                pc = aarch64_strip_pac(tf_buf.tf_lr);
                        if (pc == 0)
                                break;
-
-                       pr_traceaddr("sp", sp, pc, flags, pr);
+                       lr0 = aarch64_strip_pac(tf_buf.tf_lr);
+                       allow_leaf_function = true;
 
                } else {
                        db_sym_t sym;



Home | Main Index | Thread Index | Old Index