From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8170 invoked by alias); 21 Nov 2003 14:00:03 -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 8154 invoked from network); 21 Nov 2003 14:00:01 -0000 Received: from unknown (HELO ngate.noida.hcltech.com) (202.54.110.230) by sources.redhat.com with SMTP; 21 Nov 2003 14:00:01 -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 hALEYMwa015293 for ; Fri, 21 Nov 2003 20:04:24 +0530 Received: by EXCH-01 with Internet Mail Service (5.5.2653.19) id ; Fri, 21 Nov 2003 19:33:14 +0530 Message-ID: <1B3885BC15C7024C845AAC78314766C501033444@EXCH-01> From: "Manoj Verma, Noida" To: gdb@sources.redhat.com Subject: remote debugging packets Date: Fri, 21 Nov 2003 14:00:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2003-11/txt/msg00190.txt.bz2 Hi, I am doing remote debugging using GDB server over ethernet. Both host and target are i386-linux machines. On the Gdb client side: (gdb) break main (gdb) set debug remote 1 (gdb) step I see the following (Snapshot-1) packet transaction between Gdb client and Gdb server. My question is, 1) I did the "step" only once but why there are three packets (sometimes two packets) corresponding to the "step" ($s#73...Ack) as shown below in sanpshot-1, evenif the correct response is received for the first packet. 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). Kindly clarify. ******************************** Sanpshot-1 ********************************* (gdb) s Sending packet: $m4000e4f0,1#bd...Ack Packet received: 55 Sending packet: $M4000e4f0,1:cc#9d...Ack Packet received: OK Sending packet: $m40050444,1#5f...Ack Packet received: 55 Sending packet: $M40050444,1:cc#3f...Ack Packet received: OK Sending packet: $s#73...Ack Packet received: T0505:b8faffbf;04:a0faffbf;08:85840408; Sending packet: $s#73...Ack Packet received: T0505:b8faffbf;04:a0faffbf;08:88840408; Sending packet: $s#73...Ack Packet received: T0505:b8faffbf;04:a0faffbf;08:8b840408; Sending packet: $M4000e4f0,1:55#41...Ack Packet received: OK Sending packet: $M40050444,1:55#e3...Ack Packet received: OK 16 z += func1(); **************************************************************************** **** and ******************************** Sanpshot-2 ********************************* (gdb) c Continuing. Sending packet: $Hc0#db...Ack Packet received: OK Sending packet: $s#73...Ack Packet received: T0505:b8faffbf;04:98faffbf;08:f5840408; Sending packet: $m8048466,1#3e...Ack Packet received: c7 Sending packet: $M8048466,1:cc#1e...Ack Packet received: OK Sending packet: $m80484ce,1#9a...Ack Packet received: c7 Sending packet: $M80484ce,1:cc#7a...Ack Packet received: OK Sending packet: $m4000e4f0,1#bd...Ack Packet received: 55 Sending packet: $M4000e4f0,1:cc#9d...Ack Packet received: OK Sending packet: $Hc0#db...Ack Packet received: OK Sending packet: $c#63...Ack Packet received: T0505:98faffbf;04:8cfaffbf;08:fb840408; **************************************************************************** **** Any clarification would be appreciated.