From: Jim Blandy <jimb@codesourcery.com>
To: Wenbo Yang <wenbo.yang@simplnano.com>
Cc: dave.tw@gmail.com, gdb@sourceware.org
Subject: Re: RSP handling
Date: Wed, 11 Jul 2007 19:11:00 -0000 [thread overview]
Message-ID: <m3vecqzrg1.fsf@codesourcery.com> (raw)
In-Reply-To: <4694726D.7030306@simplnano.com> (Wenbo Yang's message of "Wed, 11 Jul 2007 14:02:21 +0800")
Wenbo Yang <wenbo.yang@simplnano.com> writes:
>> 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.
> Is there anything wrong? Your stub gave GDB where the PC pointed to,
> and GDB printed it out with source code accordingly. You didn't start
> debugging, you were just attaching to the target. The PC you got
> should be the saved PC value while enter exception handler(stub). It
> has little meaning, you can go ahead by "continue".
Right. When you connect to a target via the remote protocol, GDB
treats that as connecting to a program that's already running; it's
showing you the location where it's currently stopped.
next prev parent reply other threads:[~2007-07-11 19:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
2007-07-11 4:57 s88
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=m3vecqzrg1.fsf@codesourcery.com \
--to=jimb@codesourcery.com \
--cc=dave.tw@gmail.com \
--cc=gdb@sourceware.org \
--cc=wenbo.yang@simplnano.com \
/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