From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6650 invoked by alias); 10 Jun 2009 07:18:31 -0000 Received: (qmail 6639 invoked by uid 22791); 10 Jun 2009 07:18:30 -0000 X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_40,J_CHICKENPOX_63,SARE_URGBIZ,URG_BIZ X-Spam-Check-By: sourceware.org Received: from outbound1-1.us4.outblaze.com (HELO outbound1-1.us4.outblaze.com) (208.36.123.129) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Jun 2009 07:18:25 +0000 Received: from wfilter3.us4.outblaze.com.int (wfilter3.us4.outblaze.com.int [192.168.8.242]) by outbound1-1.us4.outblaze.com (Postfix) with QMQP id 4832E7A0A29 for ; Wed, 10 Jun 2009 07:18:23 +0000 (GMT) X-OB-Received: from unknown (205.158.62.50) by wfilter3.us4.outblaze.com; 10 Jun 2009 07:18:23 -0000 Received: by ws1-4.us4.outblaze.com (Postfix, from userid 1001) id 04F30606884; Wed, 10 Jun 2009 07:18:19 +0000 (GMT) Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 From: "suresh ds" To: gdb@sourceware.org Date: Wed, 10 Jun 2009 07:18:00 -0000 Subject: Behaviour of default all-stop mode -- Why no one has replied ? Received: from [203.92.57.132] by ws1-4.us4.outblaze.com with http for dssuresh66@mail.com; Wed, 10 Jun 2009 02:18:19 -0500 X-Ob-Auth: dssuresh66:mail.com@mail.com Message-Id: <20090610071819.04F30606884@ws1-4.us4.outblaze.com> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00080.txt.bz2 I'm re-posting my previous query. I need information on this urgently. Plea= se reply. The foll. are w.r.to remote debugging in gdb 6.8 cross-compiled for mips64. In the default all-stop mode, 1) The document says, "whenever your program stops under GDB for any reason= ,all threads of execution stop, not just the current thread" -- Here, the initiation is done by gdb or the (remote) stub should take car= e of this ? Suppose three threads are running, say 1, 2, & 3. Suppose thread 1 hits the breakpoint; It'll send the status to gdb; At this= point, gdb itself will send (further) packets to stop other threads, or th= e stub itself should take the initiative to stop other threads ? 2) The document says, "whenever you restart the program, all threads start = executing". -- Again, the gdb takes initiative to continue all the threads or the stub = should have a mechanism to do this ? Suppose three threads, 1, 2, & 3 are in a stopped state. Now, "continue" from thread 1 will continue all the threads ? When I checked the packets, I found that it does only "Hc1" to set the furt= her continue packets only for thread 1. Ideally, what I expected is, gdb will take care of continuing all the thre= ads, something like this (assuming no breakpoints set in any of the threads= ): continue Sending packet: $Hc1#xx...Ack Packet received: OK Sending packet: $c#63...Ack Sending packet: $Hc2#xx...Ack Packet received: OK Sending packet: $c#63...Ack Sending packet: $Hc3#xx...Ack Packet received: OK Sending packet: $c#63...Ack gdb can even do this in a simpler way, as just: continue Sending packet: $Hc-1#xx...Ack Packet received: OK Sending packet: $c#63...Ack since the '-1' in "Hc-1" indicates 'all threads'. But, it does neither of this, and does something like this: continue Sending packet: $Hc1#xx...Ack Packet received: OK Sending packet: $c#63...Ack Sending packet: $Hc0#xx...Ack Sending packet: $c#63...Ack But '0' in "Hc0" indicates 'any thread'; Should the stub take this as an in= dication to continue all the threads ? The document does not clearly explain whether the initiative, to stop all t= he threads once a thread hits a break and to continue all the threads if a = continue is given from a thread, is the responsibility of gdb or stub, and = how. And an inspection of gdb's packets sent to stub throw no light either. Can someone clarify ? Thanks, Suresh --=20 Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com