From ee8fd5674f74f307878f2dabef7641a837fb2a99 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 8 Oct 2022 21:26:23 +0300 Subject: [PATCH] allow debug build (make DEBUG=1) no need for PCSX's internal debugger (unmaintained here) --- Makefile | 2 +- libpcsxcore/psxcounters.c | 2 +- libpcsxcore/psxinterpreter.c | 2 +- libpcsxcore/psxmem.c | 2 +- plugins/gpu-gles/gpuStdafx.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 91bf5773..87613eed 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ OBJS += libpcsxcore/cdriso.o libpcsxcore/cdrom.o libpcsxcore/cheat.o libpcsxcore OBJS += libpcsxcore/gte.o libpcsxcore/gte_nf.o libpcsxcore/gte_divider.o ifeq ($(DEBUG), 1) -OBJS += libpcsxcore/debug.o libpcsxcore/socket.o libpcsxcore/disr3000a.o +#OBJS += libpcsxcore/debug.o libpcsxcore/socket.o libpcsxcore/disr3000a.o endif ifeq ($(WANT_ZLIB),1) diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index bb91280e..d3935fc5 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -375,7 +375,7 @@ void psxRcntUpdate() psxRcntSet(); -#ifndef NDEBUG +#if 0 //ndef NDEBUG DebugVSync(); #endif } diff --git a/libpcsxcore/psxinterpreter.c b/libpcsxcore/psxinterpreter.c index 4ae9417a..3d083645 100644 --- a/libpcsxcore/psxinterpreter.c +++ b/libpcsxcore/psxinterpreter.c @@ -1101,7 +1101,7 @@ static void intExecute() { execI_(memRLUT, regs_); } -static void intExecuteBlock() { +void intExecuteBlock() { psxRegisters *regs_ = &psxRegs; u8 **memRLUT = psxMemRLUT; diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c index 5d9b1616..a85fb27d 100644 --- a/libpcsxcore/psxmem.c +++ b/libpcsxcore/psxmem.c @@ -42,7 +42,7 @@ boolean writeok = TRUE; -#ifndef NDEBUG +#if 0 //ndef NDEBUG #include "debug.h" #else void DebugCheckBP(u32 address, enum breakpoint_types type) {} diff --git a/plugins/gpu-gles/gpuStdafx.h b/plugins/gpu-gles/gpuStdafx.h index 41051dce..6b8e23de 100644 --- a/plugins/gpu-gles/gpuStdafx.h +++ b/plugins/gpu-gles/gpuStdafx.h @@ -75,7 +75,7 @@ extern "C" { #endif #include -#define __inline inline +#define __inline static inline #endif -- 2.39.5