🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by augie Sun, 10 Feb 2002 20:00
gdb break when exception is thrown how?
#2697
Author: 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
Re: gdb break when exception is thrown how?
#2700
Author: Michael Snyder
Date: Thu, 14 Feb 2002 00:10
19 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads