2
0
Эх сурвалжийг харах

* fixed stabs generation for local variables on systems where they have
a positive offset relative to the stack/framepointer

Jonas Maebe 22 жил өмнө
parent
commit
e514b12f7a

+ 7 - 3
compiler/symsym.pas

@@ -379,7 +379,7 @@ implementation
        { module }
        { module }
        fmodule,
        fmodule,
        { codegen }
        { codegen }
-       paramgr,cgbase,cresstr
+       tgobj,paramgr,cgbase,cresstr
        ;
        ;
 
 
 {****************************************************************************
 {****************************************************************************
@@ -1824,7 +1824,7 @@ implementation
                   tostr(N_LCSYM)+',0,'+tostr(fileinfo.line)+','+mangledname)
                   tostr(N_LCSYM)+',0,'+tostr(fileinfo.line)+','+mangledname)
            else
            else
            stabstring := strpnew('"'+name+':'+st+'",'+
            stabstring := strpnew('"'+name+':'+st+'",'+
-                  tostr(N_LSYM)+',0,'+tostr(fileinfo.line)+',-'+tostr(address-owner.address_fixup))
+                  tostr(N_LSYM)+',0,'+tostr(fileinfo.line)+','+tostr(tg.direction*address+owner.address_fixup))
        else
        else
          stabstring := inherited stabstring;
          stabstring := inherited stabstring;
   end;
   end;
@@ -2557,7 +2557,11 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.98  2003-04-27 07:29:51  peter
+  Revision 1.99  2003-04-27 10:03:18  jonas
+    * fixed stabs generation for local variables on systems where they have
+      a positive offset relative to the stack/framepointer
+
+  Revision 1.98  2003/04/27 07:29:51  peter
     * aktprocdef cleanup, aktprocdef is now always nil when parsing
     * aktprocdef cleanup, aktprocdef is now always nil when parsing
       a new procdef declaration
       a new procdef declaration
     * aktprocsym removed
     * aktprocsym removed