Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: s88 <dave.tw@gmail.com>
To: gdb@sourceware.org
Subject: RSP handling
Date: Wed, 11 Jul 2007 04:57:00 -0000	[thread overview]
Message-ID: <c9d32f760707102157q27aa224dw339a3cbefe5f1ef8@mail.gmail.com> (raw)

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


             reply	other threads:[~2007-07-11  4:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-11  4:57 s88 [this message]
     [not found] <1183949787.19182.ezmlm@sourceware.org>
2007-07-09  5:19 ` early buf termination Wenbo Yang
2007-07-11  7:50   ` RSP handling Wenbo Yang
2007-07-11 19:11     ` Jim Blandy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9d32f760707102157q27aa224dw339a3cbefe5f1ef8@mail.gmail.com \
    --to=dave.tw@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox