aboutsummaryrefslogtreecommitdiff
path: root/src/dbg.c
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-08-02 14:43:19 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-08-02 14:43:19 +0100
commit0d905d7998a031c2d7a1cdc5d0d1148b55b610a2 (patch)
treeea73c7cadd583a8c95b4a7ba6edaa10e99067098 /src/dbg.c
parentf2f9f18a893527ee80260a2d57bca3023f8fd44f (diff)
downloadsst-0d905d7998a031c2d7a1cdc5d0d1148b55b610a2.tar.gz
sst-0d905d7998a031c2d7a1cdc5d0d1148b55b610a2.zip
Make additional use of untyped command callbacks
Diffstat (limited to 'src/dbg.c')
-rw-r--r--src/dbg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbg.c b/src/dbg.c
index af995ce..aa21edf 100644
--- a/src/dbg.c
+++ b/src/dbg.c
@@ -93,9 +93,9 @@ DEF_CCMD_HERE(sst_dbg_getcmdcb, "Get the address of a command callback", 0) {
}
#ifdef _WIN32
con_msg("addr: %p\nghidra: %p\n", (void *)thecmd->cb_insns,
- (void *)dbg_toghidra((void *)thecmd->cb_insns)); // ugh
+ (void *)dbg_toghidra(thecmd->cb_insns)); // ugh
#else
- con_msg("addr: %p\n", (void *)thecmd->cb);
+ con_msg("addr: %p\n", (void *)thecmd->cb_insns);
#endif
}