From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15112 invoked by alias); 23 Nov 2005 02:03:50 -0000 Received: (qmail 15102 invoked by uid 22791); 23 Nov 2005 02:03:49 -0000 X-Spam-Check-By: sourceware.org Received: from web32910.mail.mud.yahoo.com (HELO web32910.mail.mud.yahoo.com) (68.142.206.57) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 23 Nov 2005 02:03:47 +0000 Received: (qmail 63644 invoked by uid 60001); 23 Nov 2005 02:03:46 -0000 Message-ID: <20051123020346.63642.qmail@web32910.mail.mud.yahoo.com> Received: from [203.193.55.70] by web32910.mail.mud.yahoo.com via HTTP; Tue, 22 Nov 2005 18:03:45 PST Date: Wed, 23 Nov 2005 02:05:00 -0000 From: Peter Choi Subject: Re: multi-thread remote debugging i386-linux target (NEED HELP) To: Daniel Jacobowitz Cc: gdb@sources.redhat.com In-Reply-To: <20051122135523.GA15501@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00512.txt.bz2 Hi, 1. Yes, the host and target running exactly the same libraries 2. Protocol packets are captured as follows: Breakpoint 1 at 0x8048527: file test.c, line 21. Remote debugging using 10.247.1.237:2345 Sending packet: $Hc-1#09...Ack Packet received: OK Sending packet: $qC#b4...Ack Packet received: Sending packet: $qOffsets#4b...Ack Packet received: Sending packet: $?#3f...Ack Packet received: T0505:00000000;04:108df4bf;08:503c8400; Sending packet: $m843c50,8#38...Ack Packet received: 89e0e83900000089 Sending packet: $m843c50,7#37...Ack Packet received: 89e0e839000000 0x00843c50 in ?? () Continuing. Sending packet: $Z0,8048527,1#85...Ack Packet received: Packet Z0 (software-breakpoint) is NOT supported Sending packet: $m8048527,1#3c...Ack Packet received: 83 Sending packet: $X8048527,0:#60...Ack Packet received: binary downloading NOT suppported by target Sending packet: $M8048527,1:cc#1c...Ack Packet received: OK Sending packet: $vCont?#49...Ack Packet received: vCont;c;C;s;S Packet vCont (verbose-resume) is supported Sending packet: $vCont;c#a8...Ack Packet received: T0505:888cf4bf;04:508cf4bf;08:28850408; Sending packet: $Hg0#df...Ack Packet received: OK Sending packet: $p0#a0...Ack Packet received: Sending packet: $g#67...Ack Packet received: 5c8cf4bf08ebdcbc0000000098099900508cf4bf888cf4bf148df4bf1c8df4bf2885040802020000230000002b0000002b0000002b000000000000003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f03000000000000ffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000801f0000ffffffff Sending packet: $P8=27850408#67...Ack Packet received: Sending packet: $G5c8cf4bf08ebdcbc0000000098099900508cf4bf888cf4bf148df4bf1c8df4bf2785040802020000230000002b0000002b0000002b000000000000003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f03000000000000ffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000801f0000ffffffff#5b...Ack Packet received: OK Sending packet: $M8048527,1:83#c1...Ack Packet received: OK Breakpoint 1, main (Sending packet: $mbff48c90,4#33...Ack Packet received: 01000000 argc=1, Sending packet: $mbff48c94,4#37...Ack Packet received: 148df4bf argv=0xbff48d14) at test.c:21 21 sleep(5); Sending packet: $qfThreadInfo#bb...Ack Packet received: mff3 Sending packet: $qsThreadInfo#c8...Ack Packet received: l 1 Thread 4083Sending packet: $qThreadExtraInfo,ff3#84...Ack Packet received: Sending packet: $qP0000001f0000000000000ff3#e7...Ack Packet received: Sending packet: $Hgff3#ae...Ack Packet received: OK Sending packet: $g#67...Ack Packet received: 5c8cf4bf08ebdcbc0000000098099900508cf4bf888cf4bf148df4bf1c8df4bf2785040802020000230000002b0000002b0000002b000000000000003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f03000000000000ffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000801f0000ffffffff main (Sending packet: $mbff48c90,4#33...Ack Packet received: 01000000 argc=1, Sending packet: $mbff48c94,4#37...Ack Packet received: 148df4bf argv=0xbff48d14) at test.c:21 Sending packet: $Hg0#df...Ack Packet received: OK Sending packet: $g#67...Ack Packet received: 5c8cf4bf08ebdcbc0000000098099900508cf4bf888cf4bf148df4bf1c8df4bf2785040802020000230000002b0000002b0000002b000000000000003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f03000000000000ffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000801f0000ffffffff #0 main (Sending packet: $mbff48c90,4#33...Ack Packet received: 01000000 argc=1, Sending packet: $mbff48c94,4#37...Ack Packet received: 148df4bf argv=0xbff48d14) at test.c:21 Pls advise. Thank you for your attention. Regards. Peter Choi --- Daniel Jacobowitz wrote: > On Mon, Nov 21, 2005 at 11:23:18PM -0800, Peter Choi > wrote: > > Hi, > > > > 1. On my host, library files of my i386-linux > target > > residues under directory /lib so well. So, need to > add > > prefix by "solib-absolute-prefix". > > Are the host and target running exactly the same > libraries? > > > 2. If I use "symb test" to load symbols from my > test > > program on my host, I can then break in the main > > thread (But I can't see all other threads > created). > > > > However, If I use "file test" to load my test > > program on my host, I CANNOT break at all. It > simply > > halt at somewhere, not sending/receiving any debug > > packet at all. After all, it cannot stop at the > end of > > my test program too. > > > > Please advise what can possibly go wrong. Thank > you > > for your attention. > > Please post a session transcript, including "set > debug remote 1", so > that we can see what happened. > > > -- > Daniel Jacobowitz > CodeSourcery, LLC > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com