diff options
Diffstat (limited to 'src/dbg.h')
-rw-r--r-- | src/dbg.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* - * Copyright © 2022 Michael Smith <mikesmiffy128@gmail.com> + * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,6 +17,8 @@ #ifndef INC_DBG_H #define INC_DBG_H +#include "intdefs.h" + /* * These functions can all be used for development and debugging but aren't * available to release builds; this header shouldn't even be #included in real @@ -24,14 +26,14 @@ */ /* Prints out a basic hexadecimal listing of a byte range. */ -void dbg_hexdump(char *name, const void *p, int len); +void dbg_hexdump(const char *name, const void *p, int len); /* Prints out a disassembly of some instructions in memory. */ -void dbg_asmdump(char *name, const void *p, int len); +void dbg_asmdump(const char *name, const void *p, int len); #ifdef _WIN32 // at least for now /* Returns a function's Ghidra address, assuming default project offsets. */ -void *dbg_toghidra(void *addr); +usize dbg_toghidra(const void *addr); #endif #endif |