[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: more stabs
From: Gregory McGarry <greg () bitlynx ! com>
Date: 2007-11-30 23:19:28
Message-ID: F79CCA8D-F1C1-4645-AB33-A0E39B3E72D9 () bitlynx ! com
[Download RAW message or body]
According to some documentation at:
http://www.math.utah.edu/docs/info/stabs_12.html
the size of the types don't belong in the description. I can confirm
that gcc doesn't put them their either.
Index: cc/ccom/stabs.c
===================================================================
RCS file: /cvsroot/pcc/cc/ccom/stabs.c,v
retrieving revision 1.19
diff -u -r1.19 stabs.c
--- cc/ccom/stabs.c 29 Nov 2007 14:35:37 -0000 1.19
+++ cc/ccom/stabs.c 30 Nov 2007 23:14:14 -0000
@@ -32,6 +32,10 @@
* Not complete but at least makes it possible to set breakpoints,
* examine simple variables and do stack traces.
* Based on the stabs documentation that follows gdb.
+ *
+ * Information is available here:
+ *
+ * http://www.math.utah.edu/docs/info/stabs_12.html
*/
#include "pass1.h"
@@ -330,28 +334,28 @@
printtype(s, ostr, sizeof(ostr));
switch (s->sclass) {
case PARAM:
- cprint(savestabs, ".stabs \"%s:p%s\",%d,0,%d,%d",
sname, ostr,
- N_PSYM, BIT2BYTE(s->ssue->suesize), BIT2BYTE(s-
>soffset));
+ cprint(savestabs, ".stabs \"%s:p%s\",%d,0,0,%d",
sname, ostr,
+ N_PSYM, BIT2BYTE(s->soffset));
break;
case AUTO:
- cprint(savestabs, ".stabs \"%s:%s\",%d,0,%d,%d",
sname, ostr,
- N_LSYM, BIT2BYTE(s->ssue->suesize), BIT2BYTE(s-
>soffset));
+ cprint(savestabs, ".stabs \"%s:%s\",%d,0,0,%d",
sname, ostr,
+ N_LSYM, BIT2BYTE(s->soffset));
break;
case STATIC:
if (blevel)
- cprint(savestabs, ".stabs \"%s:V%s\",%d,0,%
d," LABFMT, sname, ostr,
- N_LCSYM, BIT2BYTE(s->ssue->suesize), s-
>soffset);
+ cprint(savestabs, ".stabs \"%s:V%s\",%d,0,0,"
LABFMT, sname, ostr,
+ N_LCSYM, s->soffset);
else
- cprint(savestabs, ".stabs \"%s:S%s\",%d,0,%d,%
s", sname, ostr,
- N_LCSYM, BIT2BYTE(s->ssue->suesize),
exname(sname));
+ cprint(savestabs, ".stabs \"%s:S%s\",%d,0,0,%
s", sname, ostr,
+ N_LCSYM, exname(sname));
break;
case EXTERN:
case EXTDEF:
- cprint(savestabs, ".stabs \"%s:G%s\",%d,0,%d,0",
sname, ostr,
- N_GSYM, BIT2BYTE(s->ssue->suesize));
+ cprint(savestabs, ".stabs \"%s:G%s\",%d,0,0,0",
sname, ostr,
+ N_GSYM);
break;
case REGISTER:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic