Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Thu, 2 Aug 2001 14:51:57 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@sources.redhat.com
Subject: Re: Thread Debugging in GDB for Cygwin
Message-ID: <20010802145156.H28906@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@sources.redhat.com
References: <01f301c11b17$d1150ce0$5328010a@tataelxsi.co.in>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <01f301c11b17$d1150ce0$5328010a@tataelxsi.co.in>; from kiranc@tataelxsi.co.in on Thu, Aug 02, 2001 at 11:26:04AM +0530

On Thu, Aug 02, 2001 at 11:26:04AM +0530, Kiran C wrote:
>Hi,
>    I am using GDB 5.0 on Cygwin(NT).I have tried debuggibg threads but I am
>not able to do so..
>Is such a debugging option available in GDB 5.0 for Cygwin(NT)?
>I wrote a pgm which forked another process.
>After the forking was performed I typed the follwing gdb command.
>info threads

fork != thread

gdb understands threads and has for some time.  fork() doesn't start
a new thread.  It starts a new process.  That's a completely different
thing.

>I got a list of two threads.(a * indicating my active thread)
>But when I tired to switch to the other thread using the thread gdb command.
>I  was switched to the other task but..I could not debug it..
>I got an error saying cannot find bounds of function..
>I tried the same using pthread_create function in cygwin..But it too did not
>work.

The other thread is a gdb internal thread.  It has nothing to do with fork.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

