[fpc-devel] Dwar2 changed?

Marc Weustink marc.weustink at cuperus.nl
Thu Jan 13 10:39:08 CET 2011


Joost van der Sluis wrote:
> On Wed, 2011-01-12 at 23:52 +0000, Martin wrote:
>> Has dwarf 2 changed ?
>
>>   >>  TCmdLineDebugger.SendCmdLn "-data-evaluate-expression
>> ^^shortstring(^POINTER($eax)^+12)^^"
>> <<  TCmdLineDebugger.ReadLn "^done,value="#0<repeats 20 times>""
>> <<  TCmdLineDebugger.ReadLn "(gdb) "
>
> You do realize that this is an hack? (I partly wrote it)

It looks much like I first wrote it :)

Anyway, without rtl debug info this is the only way to retrieve the 
classname of the exception object.

> It could also be that the location of the exception-name has been
> changed by something. This hack doesn't use any debug-information. Only
> the definitions of a shortstring  and pointer.

I don't think that the exception name location is changed, it would mean 
that the VMT layout has changed.

Marc



More information about the fpc-devel mailing list