fix windows CI (disable gdb stub)
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
file(GLOB SOURCES *.cpp)
|
||||
file(GLOB HEADERS *.hpp)
|
||||
|
||||
add_library(backend ${SOURCES} ${HEADERS})
|
||||
add_library(backend ${SOURCES} ${HEADERS})
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(backend PUBLIC DISABLE_GDB_STUB)
|
||||
endif()
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <backend/core/Dynarec.hpp>
|
||||
#include <backend/core/registers/Registers.hpp>
|
||||
#include <Debugger.hpp>
|
||||
#include <SDL_timer.h>
|
||||
#include <SDL2/SDL_timer.h>
|
||||
|
||||
struct Window;
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#include <Debugger.hpp>
|
||||
|
||||
#ifndef DISABLE_GDB_STUB
|
||||
#define GDBSTUB_IMPLEMENTATION
|
||||
#include <gdbstub.h>
|
||||
#include <log.hpp>
|
||||
@@ -254,7 +256,7 @@ Debugger::Debugger(n64::Core& core) : core(core) {
|
||||
|
||||
gdb = gdbstub_init(config);
|
||||
if (!gdb) {
|
||||
Util::panic("Failed to initialize GDB stub!");
|
||||
Util::panic("Failed to initialize GDB stub!\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,3 +274,20 @@ void Debugger::breakpointHit() {
|
||||
broken = true;
|
||||
gdbstub_breakpoint_hit(gdb);
|
||||
}
|
||||
#else
|
||||
Debugger::Debugger(n64::Core& core) {
|
||||
|
||||
}
|
||||
|
||||
Debugger::~Debugger() {
|
||||
|
||||
}
|
||||
|
||||
void Debugger::tick() const {
|
||||
|
||||
}
|
||||
|
||||
void Debugger::breakpointHit() {
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -12,7 +12,9 @@ namespace n64 { struct Core; }
|
||||
struct Debugger {
|
||||
Debugger(n64::Core& core);
|
||||
~Debugger();
|
||||
bool broken = false, enabled = true;
|
||||
|
||||
bool broken = false, enabled = true;
|
||||
#ifndef DISABLE_GDB_STUB
|
||||
int steps = 0;
|
||||
gdbstub_t* gdb;
|
||||
Breakpoint* breakpoints = nullptr;
|
||||
@@ -28,7 +30,9 @@ struct Debugger {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
#else
|
||||
inline bool checkBreakpoint(u32 address) const { return false; }
|
||||
#endif
|
||||
void tick() const;
|
||||
void breakpointHit();
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <Audio.hpp>
|
||||
#include <SDL_audio.h>
|
||||
#include <SDL2/SDL_audio.h>
|
||||
#include <log.hpp>
|
||||
|
||||
namespace n64 {
|
||||
|
||||
Reference in New Issue
Block a user