path: root/makefile
diff options
author Aaron Giles <>2008-06-26 14:51:23 +0000
committer Aaron Giles <>2008-06-26 14:51:23 +0000
commit68f3a9ab9e20b3737b18e2034f5f5b5a2b016506 (patch)
tree99695c99728052fd906c54a69fccf1744769ab3a /makefile
parent2f6f4aed589190b041704a2994689ffb7c03622e (diff)
Removed DEBUGGER flag from makefile and ENABLE_DEBUGGER
macro from the source code. All MAME builds now include the debugger, and it is enabled/disabled exclusively by the runtime command-line/ini settings. This is a minor speed hit for now, but will be further optimized going forward. Changed the 'd' suffix in the makefile to apply to DEBUG builds (versus DEBUGGER builds as it did before). Changed machine->debug_mode to machine->debug_flags. These flags now indicate several things, such as whether debugging is enabled, whether CPU cores should call the debugger on each instruction, and whether there are live watchpoints on each address space. Redesigned a significant portion of debugcpu.c around the concept of maintaining these flags globally and a similar, more complete set of flags internally for each CPU. All previous functionality should work as designed but should be more robust and faster to work with. Added new debugger hooks for starting/stopping CPU execution. This allows the debugger to decide whether or not a given CPU needs to call the debugger on each instruction during the coming timeslice. Added new debugger hook for reporting exceptions. Proper exception breakpoints are not yet implemented. Added new module debugger.c which is where global debugger functions live.
Diffstat (limited to 'makefile')
1 files changed, 2 insertions, 10 deletions
diff --git a/makefile b/makefile
index b587e5b73c6..19db1882f97 100644
--- a/makefile
+++ b/makefile
@@ -97,9 +97,6 @@ endif
# for details
-# uncomment next line to enable the debugger
# uncomment next line to build a debug version
# DEBUG = 1
@@ -205,8 +202,8 @@ RM = @rm -f
# form the name of the executable
-# debugger builds just get the 'd' suffix and nothing more
+# debug builds just get the 'd' suffix and nothing more
+ifdef DEBUG
@@ -265,11 +262,6 @@ ifdef PTR64
-# define ENABLE_DEBUGGER if we are a debugger-enabled build
# define MAME_DEBUG if we are a debugging build
ifdef DEBUG