ifeq "$(profile)" "2"
CFLAGS += -fprofile-use
endif
+ifeq "$(pdb)" "1"
+DEFINES += PDB
+OBJS += cpu/debug.o
+ ifeq "$(pdb_net)" "1"
+ DEFINES += PDB_NET
+ endif
+ ifeq "$(readline)" "1"
+ DEFINES += HAVE_READLINE
+ LDFLAGS += -lreadline
+ endif
+endif
ifeq "$(pprof)" "1"
DEFINES += PPROF
OBJS += platform/linux/pprof.o
#include "config.h"\r
#include "input.h"\r
#include "plat.h"\r
+#include <cpu/debug.h>\r
#include <version.h>\r
\r
\r
else if (strcasecmp(argv[x], "-loadstate") == 0) {\r
if (x+1 < argc) { ++x; load_state_slot = atoi(argv[x]); }\r
}\r
+ else if (strcasecmp(argv[x], "-pdb") == 0) {\r
+ if (x+1 < argc) { ++x; pdb_command(argv[x]); }\r
+ }\r
+ else if (strcasecmp(argv[x], "-pdb_connect") == 0) {\r
+ if (x+2 < argc) { pdb_net_connect(argv[x+1], argv[x+2]); x += 2; }\r
+ }\r
else {\r
unrecognized = 1;\r
break;\r
#drc_debug_interp = 1
#profile = 1
+all: mkdirs PicoDrive
+
-include Makefile.local
ifndef ARCH
DEFINES += ARM
endif
-CC = $(CROSS)gcc
+CC ?= $(CROSS)gcc
# frontend
OBJS += io.o emu.o blit.o in_evdev.o plat.o sndout_oss.o log_io.o
DIRS += platform/linux zlib unzip
-all: mkdirs PicoDrive
-
include ../common/common.mak
include ../common/revision.mak
if (name != NULL)
printf("%s:\n", name);
- printf(" %08lx ", (long)vma);
+ printf(" %08lx ", (long)vma);
vma += print_insn_func(vma, &di);
printf("\n");
}
#define SIMPLE_WRITE_SOUND 0
#define mix_32_to_16l_stereo_lvl mix_32_to_16l_stereo
-#define EL_LOGMASK (EL_STATUS|EL_ANOMALY|EL_UIO|EL_IDLE)
-// EL_VDPDMA|EL_ASVDP|EL_SR | EL_BUSREQ|EL_Z80BNK | EL_32X)
+#define EL_LOGMASK (EL_STATUS|EL_ANOMALY|EL_UIO)
+// EL_VDPDMA|EL_ASVDP|EL_SR | EL_IDLE | EL_BUSREQ|EL_Z80BNK | EL_32X)
//#define dprintf(f,...) printf("%05i:%03i: " f "\n",Pico.m.frame_count,Pico.m.scanline,##__VA_ARGS__)
#define dprintf(x...)