| Previous | 15994 Revisions | Next |
| r1656 Sunday 3rd February, 2008 at 23:18:10 UTC by R. Belmont |
|---|
| [SDLMESS] Fixed DEBUGGER=1 builds (note: *not* DEBUG=1 now!) |
| [ROOT] | makefile.sdl |
| [src/osd/sdl] | debugwin.c dview.c sdl.mak sdlmain.c video.c window.c |
| r1655 | r1656 | |
|---|---|---|
| 214 | 214 | endif |
| 215 | 215 | |
| 216 | 216 | # the new debugger relies on GTK+ in addition to the base SDLMAME needs |
| 217 | ifdef DEBUG | |
| 217 | ifdef DEBUGGER | |
| 218 | 218 | OSDOBJS += $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o |
| 219 | 219 | CFLAGS += `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gconf-2.0` |
| 220 | 220 | LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0` |
| 221 | endif # DEBUG | |
| 221 | endif # DEBUGGER | |
| 222 | 222 | |
| 223 | 223 | # make sure we can find X headers |
| 224 | 224 | CFLAGS += -I/usr/X11/include -I/usr/X11R6/include -I/usr/openwin/include |
| r1655 | r1656 | |
| 234 | 234 | SDLMAIN = $(SDLOBJ)/main.o |
| 235 | 235 | |
| 236 | 236 | # at least compile some stubs to link it |
| 237 | ifdef DEBUG | |
| 237 | ifdef DEBUGGER | |
| 238 | 238 | OSDOBJS += $(SDLOBJ)/debugwin.o |
| 239 | 239 | endif |
| 240 | 240 | |
| r1655 | r1656 | |
| 263 | 263 | SDLMAIN = $(SDLOBJ)/SDLMain_tmpl.o |
| 264 | 264 | |
| 265 | 265 | # the new debugger relies on GTK+ in addition to the base SDLMAME needs |
| 266 | ifdef DEBUG | |
| 266 | ifdef DEBUGGER | |
| 267 | 267 | OSDOBJS += $(SDLOBJ)/debugosx.o |
| 268 | 268 | LIBS += -framework Carbon |
| 269 | endif # DEBUG | |
| 269 | endif # DEBUGGER | |
| 270 | 270 | endif # Mac OS X |
| 271 | 271 | |
| 272 | 272 | # OS2: add the necessary libraries |
| r1655 | r1656 | |
|---|---|---|
| 1 | ||
| 1 | #include <gconf/gconf-client.h> | |
| 2 | #include "driver.h" | |
| 3 | #include "debug/debugvw.h" | |
| 4 | #include "debug/debugcon.h" | |
| 5 | #include "debug/debugcpu.h" | |
| 6 | #include "deprecat.h" | |
| 2 | 7 | #include "dview.h" |
| 3 | #include <gconf/gconf-client.h> | |
| 4 | 8 | |
| 5 | 9 | G_DEFINE_TYPE(DView, dview, GTK_TYPE_CONTAINER); |
| 6 | 10 |
| r1655 | r1656 | |
|---|---|---|
| 14 | 14 | #include <gdk/gdkkeysyms.h> |
| 15 | 15 | #include <gtk/gtk.h> |
| 16 | 16 | |
| 17 | #include "driver.h" | |
| 18 | #include "debug/debugvw.h" | |
| 19 | #include "debug/debugcon.h" | |
| 20 | #include "debug/debugcpu.h" | |
| 21 | #include "deprecat.h" | |
| 22 | ||
| 17 | 23 | #include "debug-intf.h" |
| 18 | 24 | #include "debug-sup.h" |
| 19 | 25 | #include "debug-cb.h" |
| 20 | 26 | |
| 21 | 27 | #include "dview.h" |
| 22 | #include "deprecat.h" | |
| 23 | 28 | |
| 24 | 29 | typedef struct hentry { |
| 25 | 30 | struct hentry *h; |
| r1655 | r1656 | |
|---|---|---|
| 378 | 378 | sdlinput_poll(); |
| 379 | 379 | check_osd_inputs(); |
| 380 | 380 | |
| 381 | #ifdef | |
| 381 | #ifdef ENABLE_DEBUGGER | |
| 382 | 382 | debugwin_update_during_game(); |
| 383 | 383 | #endif |
| 384 | 384 | } |
| r1655 | r1656 | |
| 596 | 596 | #endif |
| 597 | 597 | |
| 598 | 598 | |
| 599 | #ifdef | |
| 599 | #ifdef ENABLE_DEBUGGER | |
| 600 | 600 | // if we are in debug mode, never go full screen |
| 601 | 601 | if (options_get_bool(mame_options(), OPTION_DEBUG)) |
| 602 | 602 | video_config.windowed = TRUE; |
| r1655 | r1656 | |
|---|---|---|
| 501 | 501 | |
| 502 | 502 | ASSERT_WINDOW_THREAD(); |
| 503 | 503 | |
| 504 | #ifdef | |
| 504 | #ifdef ENABLE_DEBUGGER | |
| 505 | 505 | // if we are in debug mode, never go full screen |
| 506 | 506 | if (options_get_bool(mame_options(), OPTION_DEBUG)) |
| 507 | 507 | return NULL; |
| r1655 | r1656 | |
| 693 | 693 | { |
| 694 | 694 | // do not do mouse capture if the debugger's enabled to avoid |
| 695 | 695 | // the possibility of losing control |
| 696 | #ifdef | |
| 696 | #ifdef ENABLE_DEBUGGER | |
| 697 | 697 | if (!options_get_bool(mame_options(), OPTION_DEBUG)) |
| 698 | 698 | #endif |
| 699 | 699 | { |
| r1655 | r1656 | |
|---|---|---|
| 388 | 388 | MACRO_VERBOSE(PTR64); |
| 389 | 389 | MACRO_VERBOSE(MAME_DEBUG); |
| 390 | 390 | MACRO_VERBOSE(NDEBUG); |
| 391 | MACRO_VERBOSE(ENABLE_DEBUGGER); | |
| 391 | 392 | MACRO_VERBOSE(VODOO_DRC); |
| 392 | 393 | mame_printf_verbose("\n"); |
| 393 | 394 | mame_printf_verbose("SDL/OpenGL defines: "); |
| r1655 | r1656 | |
|---|---|---|
| 95 | 95 | # for details |
| 96 | 96 | #------------------------------------------------- |
| 97 | 97 | |
| 98 | # uncomment next line to enable the debugger | |
| 99 | # DEBUGGER = 1 | |
| 100 | ||
| 98 | 101 | # uncomment next line to include the debugger |
| 99 | 102 | # DEBUG = 1 |
| 100 | 103 | |
| r1655 | r1656 | |
| 204 | 207 | #------------------------------------------------- |
| 205 | 208 | |
| 206 | 209 | # debug builds just get the 'd' suffix and nothing more |
| 207 | ifdef DEBUG | |
| 210 | ifdef DEBUGGER | |
| 208 | 211 | DEBUGSUFFIX = d |
| 209 | 212 | endif |
| 210 | 213 | |
| r1655 | r1656 | |
| 263 | 266 | DEFS += -DPTR64 |
| 264 | 267 | endif |
| 265 | 268 | |
| 269 | # define ENABLE_DEBUGGER if we are a debugger-enabled build | |
| 270 | ifdef DEBUGGER | |
| 271 | DEFS += -DENABLE_DEBUGGER | |
| 272 | endif | |
| 273 | ||
| 266 | 274 | # define MAME_DEBUG if we are a debugging build |
| 267 | 275 | ifdef DEBUG |
| 268 | 276 | DEFS += -DMAME_DEBUG |
| Previous | 15994 Revisions | Next |