Hi. I had some trouble getting this to work with a static linked libstdc++ which is required for the system I'm using.
I got it to work eventually but changing the __cxa... function overrides to use -Wl,-wrap=... instead of the dynamic method being used.
This also works when not static linking libstdc++. It might be more portable.
New linker flags needed -Wl,-wrap=__cxa_begin_catch -Wl,-wrap=__cxa_end_catch -Wl,-wrap=__cxa_throw.
And I've attached a patch of the code changes.
funtrace.patch
Hi. I had some trouble getting this to work with a static linked libstdc++ which is required for the system I'm using.
I got it to work eventually but changing the
__cxa...function overrides to use-Wl,-wrap=...instead of the dynamic method being used.This also works when not static linking libstdc++. It might be more portable.
New linker flags needed
-Wl,-wrap=__cxa_begin_catch -Wl,-wrap=__cxa_end_catch -Wl,-wrap=__cxa_throw.And I've attached a patch of the code changes.
funtrace.patch