Patch by Magliocchetti Riccardo:

fix GDB_STUB regression in gtk frontend.
This commit is contained in:
yabause 2008-11-09 09:12:23 +00:00
parent 4e7337972f
commit 55098165f3
1 changed files with 2 additions and 2 deletions

View File

@ -189,12 +189,12 @@ fill_configured_features( struct configured_features *config,
}
#ifdef GDB_STUB
if (config->arm9_gdb_port < 1 || config->arm9_gdb_port > 65535) {
if (config->arm9_gdb_port != 0 && (config->arm9_gdb_port < 1 || config->arm9_gdb_port > 65535)) {
g_printerr("ARM9 GDB stub port must be in the range 1 to 65535\n");
goto error;
}
if (config->arm7_gdb_port < 1 || config->arm7_gdb_port > 65535) {
if (config->arm7_gdb_port != 0 && (config->arm7_gdb_port < 1 || config->arm7_gdb_port > 65535)) {
g_printerr("ARM7 GDB stub port must be in the range 1 to 65535\n");
goto error;
}