[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb-bugs
Subject:    can't catch exceptions running gdb 5.1 on RH Linux
From:       mvanier () cs ! caltech ! edu (Michael C !  Vanier)
Date:       2001-11-26 3:47:53
Message-ID: c5f1726e.0111251947.1018c53c () posting ! google ! com
[Download RAW message or body]

The documentation for gdb 5.1 seems to have a bug.  It suggests that
typing:

  catch throw

will catch all exceptions as they're being thrown.  If you do this on
Linux, you get:

(gdb) catch throw
warning: Unsupported with this platform/compiler combination.
warning: Perhaps you can achieve the effect you want by setting
warning: a breakpoint on __raise_exception().

OK, fine.  If you then do:

(gdb) break __raise_exception
Function "__raise_exception" not defined.
(gdb) 
 
This is using gcc/g++ 3.0.2.  Is there a way to catch exceptions on
Linux using gcc 3.0.2?

Thanks,

Mike


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic