Patch for throw/catch problems

David Lampell david.lampell@smarts.com
Mon Aug 13 05:56:00 GMT 2001


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tinfo.cc
Type: text/x-c++
Size: 25927 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20010813/72526258/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tinfo2.cc
Type: text/x-c++
Size: 4721 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20010813/72526258/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typeinfo
Type: text/x-c++
Size: 4450 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20010813/72526258/attachment-0002.bin>


More information about the Gcc-patches mailing list