Breakpoints and exceptions
You can use
There are currently some limitations to exception handling in GDB:
Sometimes
To stop just before an exception handler is called, you need some knowledge of
the implementation. In the case of GNU C++, exceptions are raised by calling a library function named
With a conditional breakpoint (see
You can set breakpoints at active exception handlers by using the catch command. exceptions is a list of names of exceptions to catch.
If you call a function interactively, GDB normally returns control to you when
the function has finished executing. If the call raises an exception, however,
the call may bypass the mechanism that returns control to you and cause your
program to simply continue running until it hits a breakpoint, catches a signal
that GDB is listening for, or exits.
You cannot raise an exception interactively.
You cannot install an exception handler interactively.
ID is the exception identifier. */
void __raise_exception (void ** addr, void * id);
|
© 2004 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Contact Red Hat |