This is the mail archive of the
mailing list for the Archer project.
Re: C++ exceptions catching through GDB-patched .eh_frame
On Sun, Dec 14, 2008 at 01:23:59PM +0100, Mark Wielaard wrote:
> Another complication might be that if the CIE doesn't yet have a
> personality routine, you will need to modify the augmentation string and
> adjust the augmentation data length. If so, you will have to move stuff
> around to extend the actual augmentation data, which is probably too
> much work because that means adjusting almost everything in
> the .eh_frame data. This might be a non-issue if for c++ there always is
> a personality routine registered already (then you just patch it and
> store a lookup table somewhere to map the original address), but I
> didn't actually look if it has or hasn't.
I've got to say I'm nervous about all this talk of patching CIEs.
Thread safety is going to be very difficult to preserve in that case.
Can't we set breakpoints on the involved personality routines