From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32493 invoked by alias); 1 Sep 2006 00:33:34 -0000 Received: (qmail 32483 invoked by uid 22791); 1 Sep 2006 00:33:32 -0000 X-Spam-Check-By: sourceware.org Received: from sj-iport-5.cisco.com (HELO sj-iport-5.cisco.com) (171.68.10.87) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Sep 2006 00:33:30 +0000 Received: from sj-dkim-8.cisco.com ([171.68.10.93]) by sj-iport-5.cisco.com with ESMTP; 31 Aug 2006 17:33:28 -0700 X-IronPort-AV: i="4.08,195,1154934000"; d="scan'208"; a="316658841:sNHT43485950" Received: from sj-core-3.cisco.com (sj-core-3.cisco.com [171.68.223.137]) by sj-dkim-8.cisco.com (8.12.11.20060308/8.12.11) with ESMTP id k810XSLn022883; Thu, 31 Aug 2006 17:33:28 -0700 Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-3.cisco.com (8.12.10/8.12.6) with ESMTP id k810XSw7000722; Thu, 31 Aug 2006 17:33:28 -0700 (PDT) Received: from xmb-sjc-212.amer.cisco.com ([171.70.151.141]) by xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 31 Aug 2006 17:33:28 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Error running remote gdb Date: Fri, 01 Sep 2006 00:33:00 -0000 Message-ID: From: "Bizhan Gholikhamseh \(bgholikh\)" To: "Daniel Jacobowitz" , "Michael Snyder" Cc: DKIM-Signature: a=rsa-sha1; q=dns; l=2399; t=1157070808; x=1157934808; c=relaxed/relaxed; s=sjdkim8002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=bgholikh@cisco.com; z=From:=22Bizhan=20Gholikhamseh=20\(bgholikh\)=22=20 |Subject:RE=3A=20Error=20running=20remote=20gdb; X=v=3Dcisco.com=3B=20h=3DBjMAa+18shVaIEjXO+NkF601kBk=3D; b=CgRE1FRiwcvUuEnxNSZHPYdUSwOnAzO2wo7pj/qh8fsmDMlR+uGwODUd0U1GqdbzBXcC4Ncz 0cyx+wCoPONdpMuQlzhqwcy4YOM9PsisrLt7nOSJA76A+o8EgxzcTgel; Authentication-Results: sj-dkim-8.cisco.com; header.From=bgholikh@cisco.com; dkim=pass ( sig from cisco.com verified; ); 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: 2006-09/txt/msg00002.txt.bz2 =20 -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: Thursday, August 31, 2006 4:29 PM To: Michael Snyder Cc: Bizhan Gholikhamseh (bgholikh); gdb@sourceware.org Subject: Re: Error running remote gdb On Thu, Aug 31, 2006 at 03:47:28PM -0700, Michael Snyder wrote: > > Sending packet: $vCont?#49...Ack > > Packet received: vCont;c;C;s;S > > Packet vCont (verbose-resume) is supported Sending packet:=20 > > $vCont;c#a8...Ack Packet received: T0501:7ffff850;40:3000ce98; >=20 > gdb asks the target to continue. Target continues, then informs gdb=20 > "I hit a breakpoint at 0x3000ce98". >=20 > This is the first breakpoint that gdb set, above. > I'm pretty sure now that it's the thread event breakpoint. More likely it's the shared library event breakpoint; we don't set the thread breakpoints until after we've got a load event for libpthread. > > Packet received: T0501:7ffffd30;40:10000560;thread:6098; > > [Switching to thread 24728] > > Sending packet: $m3000ce98,4#c9...Ack Packet received: 9421fff0=20 > > Sending packet: $M3000ce98,4:7d821008#b1...Ack Packet received: OK=20 > > Sending packet: $m10000560,4#59...Ack Packet received: 48000181=20 > > Sending packet: $M10000560,4:7d821008#41...Ack Packet received: OK=20 > > Sending packet: $vCont;s:6098;c#67...Ack >=20 > Finally, gdb restores the breakpoints and tells the target to=20 > continue. >=20 > > Packet received: T0501:7ffffd30;40:10000560;thread:6098; >=20 > Whereupon we immediately hit the breakpoint at main. > This is where we went wrong. This shouldn't have happened. >Actually, this looks fine. But we're at 0x10000560; why are we reinserting the breakpoint _at this address_ and >>then continuing? >Normally you leave the breakpoint out to step over it. I> can't think what could cause that. >> This is where I have to admit that I don't know the exact semantics of=20 >> the vCont message. Over to you, Daniel? >That's a "step only thread 6098, continue all other threads" >packet, in other words, it corresponds to a single step other than over a breakpoint. If we're stepping over a > breakpoint we'd have not had the trailing ;c. Sorry I am a little confused here, so you are implying everything is fine, however I am not able to step or next? Many thanks in advance, Bizhan -- Daniel Jacobowitz CodeSourcery