[fpc-devel] Dwarf3 and the encoding of classes

Joost van der Sluis joost at cnoc.nl
Tue Jan 11 22:39:54 CET 2011


On Tue, 2011-01-11 at 15:59 +0000, Martin wrote:
> On 11/01/2011 09:54, Joost van der Sluis wrote:
> >
> > There's a new version at that location now. This one has a better
> > case-sensitivity patch and support for viewing class-constants. For
> > those interested...
> >
> The new one crashes, when my test application is run (dwarf and dwarf 3):

I coudn't reproduce, but I had some local changes. I reverted them and
now I also have some strange results. I have no time to invest this now
any further. But maybe you can try with my local changes. (Although in
principle this shoudn't make any difference)

Index: gdbmidebugger.pp
===================================================================
--- gdbmidebugger.pp	(revision 28962)
+++ gdbmidebugger.pp	(working copy)
@@ -2979,7 +2979,7 @@
     // check whether we need class cast dereference
     if ExecuteCommand('ptype TObject', R)
     then begin
-      if (LeftStr(R.Values, 15) = 'type = ^TOBJECT')
+      if (sametext(LeftStr(R.Values, 15),'type = ^TOBJECT'))
       then include(TargetInfo^.TargetFlags, tfClassIsPointer);
     end;
 
@@ -5437,6 +5437,7 @@
       // for win32, turn off a new console otherwise breaking gdb will
fail
       // ignore the error on other platforms
       ExecuteCommand('-gdb-set new-console off', [cfIgnoreError]);
+      ExecuteCommand('-gdb-set case-sensitive off', []);
 
       if not ParseGDBVersionMI then ParseGDBVersion;
       CheckGDBVersion;





More information about the fpc-devel mailing list