Fixed stabs parsing for GCC 3.0 (default types).
Added boolean type support.
Simplified internal types handling.
diff --git a/debugger/memory.c b/debugger/memory.c
index 5971382..f6740b1 100644
--- a/debugger/memory.c
+++ b/debugger/memory.c
@@ -212,7 +212,7 @@
* and hope that this is a sensible thing to do.
*/
if (value->type != NULL) {
- if (value->type == DEBUG_TypeIntConst) {
+ if (value->type == DEBUG_GetBasicType(DT_BASIC_CONST_INT)) {
/*
* We know that we have the actual offset stored somewhere
* else in 32-bit space. Grab it, and we
@@ -227,7 +227,7 @@
if (DEBUG_TypeDerefPointer(value, &testtype) == 0)
return FALSE;
- if (testtype != NULL || value->type == DEBUG_TypeIntConst)
+ if (testtype != NULL || value->type == DEBUG_GetBasicType(DT_BASIC_CONST_INT))
value->addr.off = DEBUG_GetExprValue(value, NULL);
}
} else if (!value->addr.seg && !value->addr.off) {