🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #2697

gdb break when exception is thrown how?

#2697
From: augie
Date: Sun, 10 Feb 2002 20:00
17 lines
1744 bytes
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."

suggestions?

--augie
Technical Details
Message-ID: <pan.2002.02.10.12.01.58.721.2682@linuxfreemail.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!portc01.blue.aol.com!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,6b92450d686a5ca4,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-02-10 12:00:33 PST
x-uunet-gateway: mr0.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Sun, 10 Feb 2002 20:00:30 GMT
X-envelope-info: <news@typhoon.sonic.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!portc01.blue.aol.com!uunet!dca.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail
From: "augie" <ihatespam@linuxfreemail.org>
Subject: gdb break when exception is thrown how?
Message-ID: <pan.2002.02.10.12.01.58.721.2682@linuxfreemail.org>
User-Agent: Pan/0.10.0 (Unix)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Comment-To: ALL
Date: Sun, 10 Feb 2002 20:00:26 GMT
NNTP-Posting-Host: 209.204.191.176
X-Complaints-To: abuse@sonic.net
X-Trace: typhoon.sonic.net 1013371226 209.204.191.176 (Sun, 10 Feb 2002 12:00:26 PST)
NNTP-Posting-Date: Sun, 10 Feb 2002 12:00:26 PST
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Sender: bug-gdb-request@mail.gnu.org
Lines: 17