From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18152 invoked by alias); 15 Sep 2009 15:16:35 -0000 Received: (qmail 18134 invoked by uid 22791); 15 Sep 2009 15:16:32 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_56,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Sep 2009 15:16:29 +0000 Received: from zps76.corp.google.com (zps76.corp.google.com [172.25.146.76]) by smtp-out.google.com with ESMTP id n8FFGOl2029316 for ; Tue, 15 Sep 2009 16:16:25 +0100 Received: from ywh34 (ywh34.prod.google.com [10.192.8.34]) by zps76.corp.google.com with ESMTP id n8FFGArM010184 for ; Tue, 15 Sep 2009 08:16:22 -0700 Received: by ywh34 with SMTP id 34so7270337ywh.10 for ; Tue, 15 Sep 2009 08:16:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.159.8 with SMTP id h8mr12489968ybe.302.1253027781163; Tue, 15 Sep 2009 08:16:21 -0700 (PDT) In-Reply-To: References: Date: Tue, 15 Sep 2009 15:16:00 -0000 Message-ID: Subject: Re: Does not stop at break point in GDB-remote From: Doug Evans To: ariga masahiro Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes 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-09/txt/msg00203.txt.bz2 2009/9/15 ariga masahiro : > Hello, > > I understood a little bit of GDB remote serial protocol. > And I newly perused =A0remote-5.log file. > > --- excerpts from remote-5.log : break,continue commands > c b cyg_start =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0; break comm= and > c c =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0; = continue command > w $Z0,411dda,2#d3 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0; Insert (`Z0') = a memory breakpoint at > address 411dda of size 2 > r +$#00 > w +$m411dda,2#8a =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ; Insight gets b= reakpoint address's > codes > r +$1aa2#25 > w +$X411dda,2:\x01\x80#30 =A0 =A0 =A0 =A0 =A0 =A0; Write address 411dda c= odes \x01\x80 > r +$OK#9a > w +$vCont?#49 > r +$#00 > w +$Hc0#db > r +$OK#9a > w +$c#63 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0; exe= cute continue command > r > +$O4E6574776F726B20737461636B207573696E6720363936333220627974657320666F72= 206D6973632073706163650A#0C > w + > r > $O2020202020202020202020202020202020202020363936333220627974657320666F722= 06D627566730A#24 > w + > r > $O202020202020202020202020202020202020202031333932363420627974657320666F7= 2206D62756620636C7573746572730A#DF > w + > r > $O5B6379675F6E65745F696E69745D20496E69743A206D62696E697428307830303030303= 03030290A#60 > w + > r > $O5B6379675F6E65745F696E69745D20496E69743A206379675F6E65745F696E69745F646= 576732830783030303030303030290A#32 > w + > r $O496E697420646576696365202764703833393032615F65746830270A#FC > w + > r > $O4450383339303241202D20656570726F6D204553413A2030303A30323A63623A30313A3= 4323A62390A#45 > w + > r > $O5B6379675F6E65745F696E69745D20496E69743A206C6F6F70617474616368283078303= 0303030303030290A#0D > w + > r > $O5B6379675F6E65745F696E69745D20496E69743A206966696E697428307830303030303= 03030290A#59 > w + > r > $O5B6379675F6E65745F696E69745D20496E69743A20646F6D61696E696E6974283078303= 0303030303030290A#2F > w + > r > $O5B6379675F6E65745F696E69745D20496E69743A206379675F6E65745F6164645F646F6= D61696E2830783030343732386138290A#CF > w + > r $O4E657720646F6D61696E20696E7465726E657420617420307830303030303030300A#= 81 > w + > r > $O5B6379675F6E65745F696E69745D20496E69743A206379675F6E65745F6164645F646F6= D61696E2830783030343732323938290A#CE > w + > r $O4E657720646F6D61696E20726F75746520617420307830303030303030300A#2E > w + > r > $O5B6379675F6E65745F696E69745D20496E69743A2063616C6C5F726F7574655F696E697= 42830783030303030303030290A#5D > w + > r $O5B6379675F6E65745F696E69745D20446F6E650A#2D > w + > r + > w \x03 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0; Here GDB stub's r= eply terminated,and GDB > sent "w \x03" > r > End of log > --- > > What is "w \x03" ? > Because according to GDB remote serial protocol, it is reserved. > Any meaning ? > > If you have any idea why GDB stub terminated reply,please teach me. \x03 is what gdb sends to interrupt the program running on the target when, for example, you press Ctrl-C (while the target program is running). Maybe the stub isn't properly recognizing and handling it?