This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Problem with pthead.h - child's thread ending, causes main program to exit
- From: "Dave Korn" <dk at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 29 Oct 2004 13:28:58 +0100
- Subject: RE: Problem with pthead.h - child's thread ending, causes main program to exit
> -----Original Message-----
> From: cygwin-owner On Behalf Of Igor Pechtchanski
> Sent: 28 October 2004 17:24
> On Thu, 28 Oct 2004, jdeifik wrote:
>
> > > On Wed, 27 Oct 2004, jdeifik wrote:
> > >
> > > > When I run the program with gdb, I get really weird segmentation
> > > > faults, for example:
> > >
> > > http://www.cygwin.com/ml/cygwin/2004-10/msg01033.html
>
> Does anyone know gdb macros well enough to say off-hand whether it's
> possible to write a function to ignore those particular SEGVs?
I dunno the language syntax, but I can see the design: set a breakpoint on
IsBadWritePtr, and have a macro routine that is called by that breakpoint,
that 1) issues the 'handle' instruction 2) issues a 'finish' to step until
out of IsBadWritePtr 3) cancels the 'handle' instruction 4) issues a 'cont'
to let the app continue running.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/