mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
Debugger: Fixed crash when opening debugger for SA-1 games (Linux)
This commit is contained in:
parent
b22a469c11
commit
9113101ea2
2 changed files with 5 additions and 11 deletions
|
@ -74,7 +74,8 @@ Debugger::Debugger(Emulator* emu, IConsole* console)
|
|||
_traceLogSaver.reset(new TraceLogFileSaver());
|
||||
_cdlManager.reset(new CdlManager(this, _disassembler.get()));
|
||||
|
||||
for(CpuType type : _cpuTypes) {
|
||||
//Use cpuTypes for iteration (ordered), not _cpuTypes (order is important for coprocessors, etc.)
|
||||
for(CpuType type : cpuTypes) {
|
||||
unique_ptr<IDebugger> &debugger = _debuggers[(int)type].Debugger;
|
||||
switch(type) {
|
||||
case CpuType::Snes: debugger.reset(new SnesDebugger(this, CpuType::Snes)); break;
|
||||
|
|
13
makefile
13
makefile
|
@ -22,16 +22,9 @@ CXXFLAGS=-fPIC -Wall --std=c++17 -O3 $(MESENFLAGS) -I/usr/include/SDL2 -I $(real
|
|||
CFLAGS=-fPIC -Wall -O3 $(MESENFLAGS)
|
||||
LINKOPTIONS=
|
||||
|
||||
ifeq ($(MESENPLATFORM),x86)
|
||||
MESENPLATFORM=x86
|
||||
|
||||
CXXFLAGS += -m32
|
||||
CFLAGS += -m32
|
||||
else
|
||||
MESENPLATFORM=x64
|
||||
CXXFLAGS += -m64
|
||||
CFLAGS += -m64
|
||||
endif
|
||||
MESENPLATFORM=x64
|
||||
CXXFLAGS += -m64
|
||||
CFLAGS += -m64
|
||||
|
||||
ifneq ($(LTO),false)
|
||||
CFLAGS += -flto
|
||||
|
|
Loading…
Add table
Reference in a new issue