[397] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

GDB Support for Posix Threads Development

daemon@ATHENA.MIT.EDU (Pete Delaney)
Tue Aug 27 20:41:48 1996

Date: Tue, 27 Aug 1996 17:21:25 -0700
From: Pete Delaney <peted@swdc.stratus.com>
To: grossman@cygnus.com
Cc: peted@swdc.stratus.com, gdb-local@cygnus.com, bug-gdb@prep.ai.mit.edu,
        pthreads@MIT.EDU


Hi Stu: 

   I'm looking at implementing Pthreads on a Stratus System 5.4 port (FTX)
and I'm wondering about what can be done to best support thread debugging.
Since threads can cross into LWP and other Processes I thought it would
be rather helpfull if we can follow processes when they fork with a
clone of GDB. GDB currently leaves the breakpoints in place during a fork
and the child process gets a SIGTRAP. I was wondering if in the process 
of developing the Tk/Tcl GUI interface to GDB you had considered the
difficulty in enhancing GDB to follow a forking process as I recall SunSoft's
Debugger (enhanced dbxtool) can do as well as a Silicon Graphics Debugger 
on their systems about 10 years ago. I thought it might not be that difficult 
and someone likely has investigated the difficulty or have taken a shot at 
trying it. I just downloaded the latest gdbtk-4.16.tar from Cygnus but
haven't had a chance to try it.  


   On (Dr) Frank Muellers`s home page:

		http://www.informatik.hu-berlin.de:80/~mueller/	

is a reference to some work done by Sudhir Halbhavi Douglas Niehaus 
(niehaus@tisl.ukans.edu) on a changes made to GDB to support Pthreads. 
I'm contacting them also to check into their effort.

  Perhaps you and the others have some suggestions on using GDB with
Pthreads, including the global scope of multiple processes, 

		PTHREAD_SCOPE_GLOBEL 

that you could take a few minutes to communicate at your convenience. 

-pete

---------------------------------------------------------------------
Pete Delaney - Rm:153			pete@Rahul.Net
Stratus Western Development Center	pete@rm.Rahul.Net
peted@SWDC.Stratus.Com 			pete@RockyMountain.Rahul.Net
(408) 559-5332				(408) 243-8872
----------------------------------------------------------------------

home help back first fref pref prev next nref lref last post