Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* unwindonsignal variable question
@ 2008-09-16 15:58 Phil Muldoon
  2008-09-16 16:12 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Muldoon @ 2008-09-16 15:58 UTC (permalink / raw)
  To: gdb

Setting this to "on" fixes the most problematic aspects of gnats pr 
2495. (This is where an exception is raised in a C++ function executed 
by inferior function call, and no in-frame exception handler results in 
a sigabrt being delivered to the inferior).

As this is a very useful flag, and it only seems to apply in inferior 
function calls, I am curious why it appears to default as "off", 
requiring the user to perform:

set unwindonsignal on

(I'm not advocating changing it, just curious if there is a  particular 
reason for it to be this way). And also, if there would be known 
side-effects to having it to default as on.

Regards

Phil



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unwindonsignal variable question
  2008-09-16 15:58 unwindonsignal variable question Phil Muldoon
@ 2008-09-16 16:12 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-09-16 16:12 UTC (permalink / raw)
  To: Phil Muldoon; +Cc: gdb

On Tue, Sep 16, 2008 at 04:57:24PM +0100, Phil Muldoon wrote:
> Setting this to "on" fixes the most problematic aspects of gnats pr 2495. 
> (This is where an exception is raised in a C++ function executed by 
> inferior function call, and no in-frame exception handler results in a 
> sigabrt being delivered to the inferior).
>
> As this is a very useful flag, and it only seems to apply in inferior  
> function calls, I am curious why it appears to default as "off",  
> requiring the user to perform:
>
> set unwindonsignal on
>
> (I'm not advocating changing it, just curious if there is a  particular  
> reason for it to be this way). And also, if there would be known  
> side-effects to having it to default as on.

Well, it makes things harder if the abort is what you're trying to
debug.

It would be nice if there was a single command that would do this:
discard the dummy frame and clear the received signal...

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-16 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-16 15:58 unwindonsignal variable question Phil Muldoon
2008-09-16 16:12 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox