[fpc-devel] Calling virtual methods in GDB
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Sep 28 10:29:03 CEST 2011
On 28 Sep 2011, at 03:55, Paul Ishenin wrote:
> 28.09.2011 4:08, Jonas Maebe wrote:
>>> - Exceptions => I know gdb has some features to restore the
>>> stackframe => but I have no idea, if that relies on c-style
>>> stuff, or would work with fpc exceptions too.
>>
>> It does not rely on anything C-specific. However, FPC's exception
>> handling modifies global variables and there is not much gdb can do
>> about that. The proper way to fix this (and many other issues)
>> would be to implement FPC exception handling using DWARF EH-frame
>> information.
>
> I thought exceptions does not work properly because they don't use
> SEH on windows and the proper way to solve the problems is to
> implement compiler and RTL support for SEH.
That's indeed the Windows-specific version of EH-frame based exception
handling. I should have written "EH-frame" instead of "DWARF EH-frame".
Jonas
More information about the fpc-devel
mailing list