This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Attaching to an already running process on gdb 5.1
- From: Prabha Suresh <Prabha dot Venkatachalam at alcatel dot com>
- To: Ranjan Parthasarathy <Ranjan dot Parthasarathy at efi dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 07 Dec 2001 17:40:11 -0500
- Subject: Re: Attaching to an already running process on gdb 5.1
- Organization: Axes Technologies (I)Pvt.Ltd
- References: <200112061902.fB6J2UU02671@mrelay2.alcatel.com>
- Reply-to: Prabha dot Venkatachalam at alcatel dot com
Ranjan Parthasarathy wrote:
>
> Can anyone let me know as to whether attach on already running ( multi
> threaded processes works on gdb 5.1 ). I have tried the attach with a non
> threaded program but trying to attach to a multi threaded ( pthreads ) fails.
>
> Is there an option which I am missing or is this broken?
>
> Thanks
>
> Ranjan
I did find the same problem,the error is as follows
#0 0x12e6f0 in ?? ()
#1 0x93cb8 in pstruct ()
#2 0x94544 in pstruct ()
#3 0x9476c in pstruct ()
#4 0x949fc in pstruct ()
#5 0x94ca4 in pstruct ()
#6 0xf3e6c in ?? ()
#7 0xad33c in pstruct ()
#8 0x76204 in pstruct ()
#9 0xca65c in ?? ()
#10 0x839a0 in pstruct ()
#11 0x840b8 in pstruct ()
#12 0x187828 in ?? ()
#13 0x8313c in pstruct ()
#14 0x83844 in pstruct ()
#15 0xe7a48 in ?? ()
#16 0xe73c0 in ?? ()
#17 0xe7410 in ?? ()
#18 0xc97a8 in ?? ()
#19 0xe744c in ?? ()
#20 0x83228 in pstruct ()
#21 0x4f320 in strstream::~strstream (this=0x0, __in_chrg=324344)
at ../../../src/libio/iostream.h:230
#22 0xc97a8 in ?? ()
#23 0x4fdf4 in __ptmd_type_info::~__ptmd_type_info (this=0x0, __in_chrg=0)
at ../../src/gcc/cp/tinfo2.cc:459
#24 0xc97a8 in ?? ()
#25 0x5000c in bad_cast type_info function ()
at
/homes/diwilson/cygnus/all-builds/native-00r1-solaris/obj/gcc/include/typeinfo:1209
Is there any patches have been put up in the latest release,i use GNU gdb
5.0-gnupro-00r1
for Solaris 2.7 version
-- Prabha
--
************* Leadership is action,not the position *****************