diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2024-11-07 16:02:30 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2024-11-07 16:02:30 +0000 |
commit | 3997efc3b96796a7b3c7119ea89732bad107d8e6 (patch) | |
tree | 610310ee141a3cd1fc6f76acff7fc1f0457fbf34 /sys/arch/arm64 | |
parent | 4b64df74e27c132c8ee8abc403a495d4ee7d575a (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/arm64')
-rw-r--r-- | sys/arch/arm64/arm64/db_trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm64/arm64/db_trace.c b/sys/arch/arm64/arm64/db_trace.c index cd460530a5a..55c105ac7a9 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.16 2024/03/12 13:32:53 kettenis Exp $ */ +/* $OpenBSD: db_trace.c,v 1.17 2024/11/07 16:02:29 miod Exp $ */ /* $NetBSD: db_trace.c,v 1.8 2003/01/17 22:28:48 thorpej Exp $ */ /* @@ -57,7 +57,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; int trace_thread = 0; |