Skip to content

Commit

Permalink
This should fix non-Dynarec builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Jan 11, 2025
1 parent 0c5e6d8 commit 9b7e5d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libtools/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ x64_stack_t* sigstack_getstack() {

#ifndef DYNAREC
typedef void dynablock_t;
dynablock_t* FindDynablockFromNativeAddress(uintptr_t addr) {return NULL;}
dynablock_t* FindDynablockFromNativeAddress(void* addr) {return NULL;}
uintptr_t getX64Address(dynablock_t* db, uintptr_t pc) {return 0;}
#endif

Expand Down Expand Up @@ -1694,8 +1694,6 @@ dynarec_log(/*LOG_DEBUG*/LOG_INFO, "Repeated SIGSEGV with Access error on %p for
}
if(!db_searched)
db = FindDynablockFromNativeAddress(pc);
#else
void* db = NULL;
#endif
if((sig==SIGSEGV || sig==SIGBUS) && box64_quit) {
printf_log(LOG_INFO, "Sigfault/Segbus while quitting, exiting silently\n");
Expand Down

0 comments on commit 9b7e5d6

Please sign in to comment.