This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for throw/catch problems
- To: <gcc-patches at gcc dot gnu dot org>
- Subject: Patch for throw/catch problems
- From: "David Lampell" <david dot lampell at smarts dot com>
- Date: Mon, 13 Aug 2001 08:56:50 -0400
Concerning GCC 3.0:
I had the problem of a throw from one shared library not being caught in
code within another shared library. I tracked down the problem and have
made a fix. Attached are the 3 files. This problem has been reported by
other and PRs exist in gnats about it.
I have marked the modified code with the #define SM_GCC_FIX073101_
Modules are libsupc++/typeinfo
tinfo.cc
tinfo2.cc
Specifically, the assumption that testing the address of a class name is
sufficient for equality is not true in the case of multiple shared libraries
and the older, if the strings compare the same needs to be
used.
Please modify my #define as I used it only to make the patch more visible.
David
lampeld@smarts.com
tinfo.cc
tinfo2.cc
typeinfo