GTK: Fix gdb stub support
I never tried to build this codepath, this is now done. Fixes #381.
This commit is contained in:
parent
e07e5e5db4
commit
cb49416952
|
@ -104,6 +104,11 @@ VideoFilter* video;
|
||||||
|
|
||||||
desmume::config::Config config;
|
desmume::config::Config config;
|
||||||
|
|
||||||
|
#ifdef GDB_STUB
|
||||||
|
gdbstub_handle_t arm9_gdb_stub = NULL;
|
||||||
|
gdbstub_handle_t arm7_gdb_stub = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
MAIN_BG_0 = 0,
|
MAIN_BG_0 = 0,
|
||||||
MAIN_BG_1,
|
MAIN_BG_1,
|
||||||
|
@ -3865,9 +3870,6 @@ common_gtk_main(GApplication *app, gpointer user_data)
|
||||||
#ifdef GDB_STUB
|
#ifdef GDB_STUB
|
||||||
gdbstub_mutex_init();
|
gdbstub_mutex_init();
|
||||||
|
|
||||||
gdbstub_handle_t arm9_gdb_stub = NULL;
|
|
||||||
gdbstub_handle_t arm7_gdb_stub = NULL;
|
|
||||||
|
|
||||||
if ( my_config->arm9_gdb_port > 0) {
|
if ( my_config->arm9_gdb_port > 0) {
|
||||||
arm9_gdb_stub = createStub_gdb( my_config->arm9_gdb_port,
|
arm9_gdb_stub = createStub_gdb( my_config->arm9_gdb_port,
|
||||||
&NDS_ARM9,
|
&NDS_ARM9,
|
||||||
|
|
|
@ -219,6 +219,7 @@ endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if get_option('gdb-stub')
|
if get_option('gdb-stub')
|
||||||
|
add_global_arguments('-DGDB_STUB', language: ['c', 'cpp'])
|
||||||
libdesmume_src += [
|
libdesmume_src += [
|
||||||
'../../gdbstub/gdbstub.cpp',
|
'../../gdbstub/gdbstub.cpp',
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue