From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20615 invoked by alias); 21 Nov 2003 15:15:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20608 invoked from network); 21 Nov 2003 15:15:19 -0000 Received: from unknown (HELO ngate.noida.hcltech.com) (202.54.110.230) by sources.redhat.com with SMTP; 21 Nov 2003 15:15:19 -0000 Received: from exch-01.noida.hcltech.com (exch-01 [204.160.254.29]) by ngate.noida.hcltech.com (8.12.8/8.12.8) with ESMTP id hALFnWwa017502; Fri, 21 Nov 2003 21:19:33 +0530 Received: by EXCH-01 with Internet Mail Service (5.5.2653.19) id ; Fri, 21 Nov 2003 20:48:20 +0530 Message-ID: <1B3885BC15C7024C845AAC78314766C501033536@EXCH-01> From: "Manoj Verma, Noida" To: Mark Salter Cc: gdb@sources.redhat.com Subject: RE: remote debugging packets Date: Fri, 21 Nov 2003 15:15:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2003-11/txt/msg00196.txt.bz2 Let me explain my concern in this way... I have following C snippet: ... for(i=0; i<100; i++) // say line #xx *b0++ = *b1++; // say line #yy ... and the assembly instruction corresponding to it is: ... lc = 100; rep(lc) *b0++ = *b1++; ... I set the breakpoint to both of these lines xx & yy. Now when I am at XX, I say 'Continue'. If it steps first then it comes to line #yy. Then if it continues, then I will not see my program stopping at YY where it should. Or is it like, before proceeding from line #YY the debugger looks for some traps present at that particular line and then continues.. Pl. correct me if I am wrong. Thanks.. > -----Original Message----- > From: Mark Salter [mailto:msalter@redhat.com] > Sent: Friday, November 21, 2003 8:22 PM > To: manojv@noida.hcltech.com > Cc: gdb@sources.redhat.com > Subject: Re: remote debugging packets > > > >>>>> Manoj Verma, Noida writes: > > >> > 2) On the Gdb client side when I continue, "(gdb) > >> continue", why it first > >> > sends a packet ($s#73...Ack) and then the packet > >> ($c#63...Ack) as shown > >> > below in sanpshot-2 ? It should only send the packet > ($c#63...Ack). > >> > >> This is expected. GDB has to single-step past the one machine > >> instruction > >> before re-inserting any breakpoints and continuing. > >> > > > But consider the scenario when I have breakpoints set on > two consecutive > > lines. Will in this case also this behavior is justified? > > It is certainly correct behavior. I don't see any problem with > your scenario. > > --Mark > >