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

src/osd/sdl/sdl.mak
r1655r1656
214214endif
215215
216216# the new debugger relies on GTK+ in addition to the base SDLMAME needs
217ifdef DEBUG
217ifdef DEBUGGER
218218OSDOBJS += $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o
219219CFLAGS += `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gconf-2.0`
220220LIBS += `pkg-config --libs gtk+-2.0` `pkg-config --libs gconf-2.0`
221endif # DEBUG
221endif # DEBUGGER
222222
223223# make sure we can find X headers
224224CFLAGS += -I/usr/X11/include -I/usr/X11R6/include -I/usr/openwin/include
r1655r1656
234234SDLMAIN = $(SDLOBJ)/main.o
235235
236236# at least compile some stubs to link it
237ifdef DEBUG
237ifdef DEBUGGER
238238OSDOBJS += $(SDLOBJ)/debugwin.o
239239endif
240240
r1655r1656
263263SDLMAIN = $(SDLOBJ)/SDLMain_tmpl.o
264264
265265# the new debugger relies on GTK+ in addition to the base SDLMAME needs
266ifdef DEBUG
266ifdef DEBUGGER
267267OSDOBJS += $(SDLOBJ)/debugosx.o
268268LIBS += -framework Carbon
269endif   # DEBUG
269endif   # DEBUGGER
270270endif   # Mac OS X
271271
272272# OS2: add the necessary libraries
src/osd/sdl/dview.c
r1655r1656
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"
27#include "dview.h"
3#include <gconf/gconf-client.h>
48
59G_DEFINE_TYPE(DView, dview, GTK_TYPE_CONTAINER);
610
src/osd/sdl/debugwin.c
r1655r1656
1414#include <gdk/gdkkeysyms.h>
1515#include <gtk/gtk.h>
1616
17#include "driver.h"
18#include "debug/debugvw.h"
19#include "debug/debugcon.h"
20#include "debug/debugcpu.h"
21#include "deprecat.h"
22
1723#include "debug-intf.h"
1824#include "debug-sup.h"
1925#include "debug-cb.h"
2026
2127#include "dview.h"
22#include "deprecat.h"
2328
2429typedef struct hentry {
2530   struct hentry *h;
src/osd/sdl/video.c
r1655r1656
378378   sdlinput_poll();
379379   check_osd_inputs();
380380
381#ifdef MAME_DEBUG
381#ifdef ENABLE_DEBUGGER
382382   debugwin_update_during_game();
383383#endif
384384}
r1655r1656
596596   #endif
597597
598598
599#ifdef MAME_DEBUG
599#ifdef ENABLE_DEBUGGER
600600   // if we are in debug mode, never go full screen
601601   if (options_get_bool(mame_options(), OPTION_DEBUG))
602602      video_config.windowed = TRUE;
src/osd/sdl/window.c
r1655r1656
501501
502502   ASSERT_WINDOW_THREAD();
503503
504#ifdef MAME_DEBUG
504#ifdef ENABLE_DEBUGGER
505505   // if we are in debug mode, never go full screen
506506   if (options_get_bool(mame_options(), OPTION_DEBUG))
507507      return NULL;
r1655r1656
693693{
694694   // do not do mouse capture if the debugger's enabled to avoid
695695   // the possibility of losing control
696   #ifdef MAME_DEBUG
696   #ifdef ENABLE_DEBUGGER
697697   if (!options_get_bool(mame_options(), OPTION_DEBUG))
698698   #endif
699699   {
src/osd/sdl/sdlmain.c
r1655r1656
388388   MACRO_VERBOSE(PTR64);
389389   MACRO_VERBOSE(MAME_DEBUG);
390390   MACRO_VERBOSE(NDEBUG);
391   MACRO_VERBOSE(ENABLE_DEBUGGER);
391392   MACRO_VERBOSE(VODOO_DRC);
392393   mame_printf_verbose("\n");
393394   mame_printf_verbose("SDL/OpenGL defines: ");
makefile.sdl
r1655r1656
9595# for details
9696#-------------------------------------------------
9797
98# uncomment next line to enable the debugger
99# DEBUGGER = 1
100
98101# uncomment next line to include the debugger
99102# DEBUG = 1
100103
r1655r1656
204207#-------------------------------------------------
205208
206209# debug builds just get the 'd' suffix and nothing more
207ifdef DEBUG
210ifdef DEBUGGER
208211DEBUGSUFFIX = d
209212endif
210213
r1655r1656
263266DEFS += -DPTR64
264267endif
265268
269# define ENABLE_DEBUGGER if we are a debugger-enabled build
270ifdef DEBUGGER
271DEFS += -DENABLE_DEBUGGER
272endif
273
266274# define MAME_DEBUG if we are a debugging build
267275ifdef DEBUG
268276DEFS += -DMAME_DEBUG

Previous 15994 Revisions Next


© 1998-2018 The MESS Team