Fixed stabs parsing for GCC 3.0 (default types).
Added boolean type support.
Simplified internal types handling.
diff --git a/debugger/info.c b/debugger/info.c
index 695fd6b..b01bdf4 100644
--- a/debugger/info.c
+++ b/debugger/info.c
@@ -65,11 +65,7 @@
case 0:
if( default_format != NULL )
{
- if (strstr(default_format, "%S") == NULL)
- {
- DEBUG_nchar += DEBUG_Printf( DBG_CHN_MESG, default_format, res );
- }
- else
+ if (strstr(default_format, "%S") != NULL)
{
char* ptr;
int state = 0;
@@ -107,6 +103,14 @@
}
}
}
+ else if (strcmp(default_format, "%B") == 0)
+ {
+ DEBUG_nchar += DEBUG_Printf( DBG_CHN_MESG, "%s", res ? "true" : "false");
+ }
+ else
+ {
+ DEBUG_nchar += DEBUG_Printf( DBG_CHN_MESG, default_format, res );
+ }
}
break;
}