This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Instrument-functions: possible also for function exit via exception?
- From: Tim München <muenchen at physik dot uni-wuppertal dot de>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 29 Aug 2008 11:36:12 +0200
- Subject: Instrument-functions: possible also for function exit via exception?
Hi,
is it somehow possible to also be notified if a function/method is left with
a 'throw'? Or, would it be possible to patch gcc like that? I had a quick
look into function.c but it seems not to be as straight-forward as the
entry/exit instrumentation (What is probably the reason it isn't implemented
yet). Or is it even impossible for some reason?
(And: Would it furthermore be possible to get similar callbacks when an
exception is catched?)
Thanks,
Tim