Article View: gnu.gdb.bug
Article #2700Re: gdb break when exception is thrown how?
From: Michael Snyder
Date: Thu, 14 Feb 2002 00:10
Date: Thu, 14 Feb 2002 00:10
19 lines
1970 bytes
1970 bytes
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.
Technical Details
Message-ID:
<3C6B006F.D4D30AAE@redhat.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!howland.erols.net!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mailReferences:
<pan.2002.02.10.12.01.58.721.2682@linuxfreemail.org>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,6b92450d686a5ca4 X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 2002-02-13 16:18:25 PST x-uunet-gateway: sjc3sosrv11.alter.net from bug-gdb to gnu.gdb.bug; Thu, 14 Feb 2002 00:18:22 GMT Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!howland.erols.net!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail From: msnyder@redhat.com (Michael Snyder) Subject: Re: gdb break when exception is thrown how? Date: Wed, 13 Feb 2002 16:10:23 -0800 Organization: Red Hat, Inc. Message-ID: <3C6B006F.D4D30AAE@redhat.com> References: <pan.2002.02.10.12.01.58.721.2682@linuxfreemail.org> NNTP-Posting-Host: reddwarf.sfbay.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: cronkite.cygnus.com 1013645886 23314 205.180.231.12 (14 Feb 2002 00:18:06 GMT) X-Complaints-To: postmaster@cygnus.com NNTP-Posting-Date: 14 Feb 2002 00:18:06 GMT X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en Approved: bug-gdb-request@mail.gnu.org Newsgroups: gnu.gdb.bug Sender: bug-gdb-request@mail.gnu.org Lines: 19