[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gdb break when exception is thrown how?
From: |
Michael Snyder |
Subject: |
Re: gdb break when exception is thrown how? |
Date: |
Wed, 13 Feb 2002 16:10:23 -0800 |
augie wrote:
>
> i read this in the gdb documentation:
>
> Set catchpoints to catch events.
> Raised exceptions may be caught:
> catch throw - all exceptions, when thrown
>
> i read somewhere that when you use this gdb will break when a c++
> exception is thrown, but im not quite sure how to use it?
>
> i compiled with debugging set and then ran gdb on the program and tried
> just typing "catch throw" but i get an error:
>
> "warning: Unsupported with this platform/compiler combination."
Well, that's because breaking on a C++ exception is unsupported
with your platform and/or compiler. I don't think there are
many for which it is supported -- possibly hpux.