From 19a5afd7443aee23a4e76555b98b539a659f8924 Mon Sep 17 00:00:00 2001 From: jasper Date: Fri, 9 Jul 2021 20:59:51 +0000 Subject: [PATCH] use vaddr_t as type for frames as is commonly used elsewhere too ok kettenis@ --- sys/arch/arm64/arm64/db_trace.c | 4 ++-- sys/arch/riscv64/riscv64/db_trace.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/arm64/arm64/db_trace.c b/sys/arch/arm64/arm64/db_trace.c index c4cf77677cd..d36db66c6ad 100644 --- a/sys/arch/arm64/arm64/db_trace.c +++ b/sys/arch/arm64/arm64/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.12 2020/09/11 09:27:10 mpi Exp $ */ +/* $OpenBSD: db_trace.c,v 1.13 2021/07/09 20:59:51 jasper Exp $ */ /* $NetBSD: db_trace.c,v 1.8 2003/01/17 22:28:48 thorpej Exp $ */ /* @@ -65,7 +65,7 @@ void db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count, char *modif, int (*pr)(const char *, ...)) { - u_int64_t frame, lastframe, lr, lastlr, sp; + vaddr_t frame, lastframe, lr, lastlr, sp; char c, *cp = modif; db_expr_t offset; Elf_Sym * sym; diff --git a/sys/arch/riscv64/riscv64/db_trace.c b/sys/arch/riscv64/riscv64/db_trace.c index acf1d83e98b..348eb20569c 100644 --- a/sys/arch/riscv64/riscv64/db_trace.c +++ b/sys/arch/riscv64/riscv64/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.3 2021/05/12 01:20:52 jsg Exp $ */ +/* $OpenBSD: db_trace.c,v 1.4 2021/07/09 20:59:51 jasper Exp $ */ /* * Copyright (c) 2000, 2001 Ben Harris @@ -51,7 +51,7 @@ void db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count, char *modif, int (*pr)(const char *, ...)) { - u_int64_t frame, lastframe, ra, lastra, sp; + vaddr_t frame, lastframe, ra, lastra, sp; char c, *cp = modif; db_expr_t offset; Elf_Sym * sym; -- 2.20.1