After some experimenting along the lines that you suggested
(DEBUG_PrintTypeCast faulted!),
hmmm may be the type isn't fully initialized... strange indeed
it may be that the problem is something to
do with the 'bool' type as I now eventually get lots of errors like this:
would the attached patch fix is someway ?
if it does, I'll provide a more elaborate fix.
A+
--
---------------
Eric Pouech (
http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle
Index: stabs.c
===================================================================
RCS file: /usr/share/cvs/cvsroot/wine/wine/debugger/stabs.c,v
retrieving revision 1.41
diff -u -r1.41 stabs.c
--- stabs.c 2001/08/10 22:29:21 1.41
+++ stabs.c 2001/11/21 22:01:31
@@ -516,8 +516,24 @@
new_dt = DEBUG_NewDataType(lo, ptd->buf + idx);
ptd->idx = idx;
break;
+ case '-':
+ if (DEBUG_PTS_ReadNum(ptd, &lo) == -1) {
+ DEBUG_Printf(DBG_CHN_MESG, "Should be a number...\n");
+ return -1;
+ }
+ switch (lo)
+ {
+ case 1: new_dt = DEBUG_TypeInt; break;
+ case 7: new_dt = DEBUG_TypeShortUInt; break;
+ case 16: new_dt = DEBUG_TypeUSInt; break;
+ case 19: new_dt = DEBUG_TypeString; break;
+ default:
+ DEBUG_Printf(DBG_CHN_MESG, "Unsupported integral type (%d)\n", lo);
+ return -1;
+ }
+ break;
default:
- DEBUG_Printf(DBG_CHN_MESG, "Unknown type '%c'\n", *ptd->ptr);
+ DEBUG_Printf(DBG_CHN_MESG, "Unknown type '%c'\n", ptd->ptr[-1]);
return -1;
}
}