From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25743 invoked by alias); 11 Jul 2007 04:57:13 -0000 Received: (qmail 25652 invoked by uid 22791); 11 Jul 2007 04:57:12 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.176) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jul 2007 04:57:10 +0000 Received: by wa-out-1112.google.com with SMTP id l35so2020226waf for ; Tue, 10 Jul 2007 21:57:07 -0700 (PDT) Received: by 10.114.160.1 with SMTP id i1mr4814887wae.1184129827462; Tue, 10 Jul 2007 21:57:07 -0700 (PDT) Received: by 10.114.107.13 with HTTP; Tue, 10 Jul 2007 21:57:07 -0700 (PDT) Message-ID: Date: Wed, 11 Jul 2007 04:57:00 -0000 From: s88 To: gdb@sourceware.org Subject: RSP handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: 2007-07/txt/msg00087.txt.bz2 Hi all: My gdb is configured as "--host=i686-pc-linux-gnu --target=arm-elf" and remote debugging with an arm simulator which be a target. but something is strange after the connection created. I set a breakpoint in the main function (br main), but after the connection created the gdb stop at the first instruction of crt0.S. (gdb) target remote 140.123.103.7:23137 Remote debugging using 140.123.103.7:23137 start () at ../../../../../../gcc-3.4.1/newlib/libc/sys/arm/crt0.S:36 36 mov r0, #AngelSWI_Reason_HeapInfo Current language: auto; currently asm (gdb) Maybe my gdb stub doesn't handle the packet well. Following is the command form gdb and the correspond reply by my gdb stub. waiting for GDB connection establish... A new GDB connection established received from gdb ... $qSupported#37 <--from gdb reply='' <--gdb stub reply to gdb received from gdb ... + received from gdb ... $Hc-1#09 reply='OK' received from gdb ... $qC#b4 reply='*' received from gdb ... $qOffsets#4b reply='Text=0;Data=0;Bss=0' received from gdb ... $qOffsets#4b reply='Text=0;Data=0;Bss=0' received from gdb ... $?#3f reply='S05' received from gdb ... $Hg0#df reply='OK' received from gdb ... $pf#d6 reply='10810000' received from gdb ... $m8110,4#97 reply='1600a0e3' received from gdb ... $qSymbol::#5b reply='OK' any suggestion? best regards, Dave. -- System on Chip Design Lab. Dept. of Computer Science and Information Engineering, National Chung Cheng University E-mail : s88.tw@acm.org