Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Alexei Minayev <aminayev@yahoo.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb@sources.redhat.com
Subject: Re: gdb-h8-stub
Date: Thu, 18 Jul 2002 11:25:00 -0000	[thread overview]
Message-ID: <20020718182550.41560.qmail@web13507.mail.yahoo.com> (raw)
In-Reply-To: <20020718143656.GA17241@nevyn.them.org>

Hi Daniel,

thanks for clarification.
My question is though, after sending an absolute start address with the 'X'
command, and getting rejected, the gdb doesn't replicate it with 'M' command.
The 'M' command has only relative addresses...

X200000
M0,15:...    ; (this would actually mean 0x200000 to 0x200015)
M15,15:...
M30,15:...
...

So according to this, the stub *must* read the address from the X command and
store it for future memory operations, even if it doesn't support binary
downloads. 
In your opinion, is that what gdb means?

Thanks a lot!
Regards -- Alexei


--- Daniel Jacobowitz <drow@mvista.com> wrote:
> On Thu, Jul 18, 2002 at 10:26:30AM -0400, Peter Barada wrote:
> > 
[skipped]
> > You're right about gdb infering that the stub doesn't support 'X' by
> > the empty response packet.  An empty packet is the response the stub
> > sends back to the host for any command that it doesn't understand.
> > Once gdb figures out that 'X' (write binary to memory) isn't supported
> > by the stub(due to the empy packet), it falls back to trying 'M'
> > (write hex to memory) and finds that it works(since all stubs are
> > required to support 'M').  The 'X' command is an extension so 'load'
> > runs about twice as fast.
> 
> Right.  The corollary is that M and X should be using the same address. 
> This works for most targets; you'll need to figure out why it doesn't
> work for yours.  It may be a VMA/LMA thing...
> 
> -- 
> Daniel Jacobowitz                           Carnegie Mellon University
> MontaVista Software                         Debian GNU/Linux Developer


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com


  reply	other threads:[~2002-07-18 18:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-17 23:27 gdb-h8-stub Alexei Minayev
2002-07-18  7:26 ` gdb-h8-stub Peter Barada
2002-07-18  7:37   ` gdb-h8-stub Daniel Jacobowitz
2002-07-18 11:25     ` Alexei Minayev [this message]
2002-07-18 13:05       ` gdb-h8-stub Daniel Jacobowitz
2002-07-18 23:00         ` gdb-h8-stub Alexei Minayev
2002-07-19  5:34           ` gdb-h8-stub Daniel Jacobowitz
2002-07-20 11:39             ` gdb-h8-stub Alexei Minayev
2002-07-19  7:23           ` gdb-h8-stub Peter Barada
2002-07-22  2:29 gdb-h8-stub Andrew Volkov

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=20020718182550.41560.qmail@web13507.mail.yahoo.com \
    --to=aminayev@yahoo.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.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