Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2001 12:30:22 +0000
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        k Macy <kip_macy@yahoo.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: problems with recurring SIGTRAP under gdb 
Message-ID:   <200110291230.aa64062@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Sun, 28 Oct 2001 18:37:46 PST." <20011029023746.94559.qmail@web14001.mail.yahoo.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20011029023746.94559.qmail@web14001.mail.yahoo.com>, k Macy writes:
>Any idea why when I insert a breakpoint I get a
>SIGTRAP 
>and can't continue any further? Is this a bug in the 

I've seen this on applications that use SIGIO on stdin. If this is the
case, a workaround is to disable the SIGIO signal while using the
debugger, e.g:

	(gdb) set $oldsigio = signal(23, (void *)1)

The signal handler can be put back later with:

	call signal(23, (void *)$oldsigio)

Ian

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200110291230.aa64062>