summaryrefslogtreecommitdiff
path: root/sys/arch/riscv64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-11-07 16:02:30 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-11-07 16:02:30 +0000
commit3997efc3b96796a7b3c7119ea89732bad107d8e6 (patch)
tree610310ee141a3cd1fc6f76acff7fc1f0457fbf34 /sys/arch/riscv64
parent4b64df74e27c132c8ee8abc403a495d4ee7d575a (diff)
Constify strings in symbol-related ddb interfaces, and make the iterator
callback interface a bit simpler. ok beck@ claudio@ mpi@
Diffstat (limited to 'sys/arch/riscv64')
-rw-r--r--sys/arch/riscv64/riscv64/db_trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/riscv64/riscv64/db_trace.c b/sys/arch/riscv64/riscv64/db_trace.c
index 041f0b4f5a2..a84898e9326 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.6 2024/10/17 01:57:18 jsg Exp $ */
+/* $OpenBSD: db_trace.c,v 1.7 2024/11/07 16:02:29 miod Exp $ */
/*
* Copyright (c) 2000, 2001 Ben Harris
@@ -54,7 +54,7 @@ db_stack_trace_print(db_expr_t addr, int have_addr, db_expr_t count,
char c, *cp = modif;
db_expr_t offset;
Elf_Sym * sym;
- char *name;
+ const char *name;
int kernel_only = 1;
while ((c = *cp++) != 0) {