Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Paul Bartlett" <paul.bartlett@st.com>
To: <gdb@sources.redhat.com>
Subject: Fw: gdbserver, remote serial protocol and endian issues
Date: Mon, 08 Apr 2002 08:40:00 -0000	[thread overview]
Message-ID: <00e501c1df13$b0ec66a0$300e81a4@bri.st.com> (raw)


----- Original Message -----
From: "Paul Bartlett" <paul.bartlett@st.com>
To: <drow@mvista.com>
Sent: Monday, April 08, 2002 4:33 PM
Subject: Re: gdbserver, remote serial protocol and endian issues


> Hi Daniel,
>
> > I don't agree.  Target registers are in
> > target-endianness when you read them off
> > the stack; they should be in target endianness
> > in memory.  GDB has 'set endian little' and
> > 'set endian big', and the stub should just pass
> > them along however it gets them.  gdbserver is
> > also meant to run in a native configuration,
> > where compile-time checks can tell you the
> > endianness.
>
> Well, maybe I'm guilty of not considering the
> general case - haven't thought it through yet.
>
> Our application connects to the H-UDI (JTAG)
> port of the SH4 for high speed (~20 MBits/s)
> access through the back door into the chip.
>
> The physical implementation includes a 32 bit
> shift register. What we notice is that if we
> change endianness then we have to endswap the
> 32 bit quantity that appears in the register
> before transferring it to the target machine
> reg. - it never actually gets into memory.
>
> > My first impression is that gdbserver is the
> > wrong tool for the job. Gdbserver is meant as
> > a remote stub for Unix-like systems.  You're
> > not running it on a Unix-like system; you're
> > using it as a proxy, right? Since GDB already
> > has a stub to speak to the hardware monitor
> > on SH4 boards, as far as I'm aware.
> > This sounds like a job for rproxy
> > (http://world.std.com/~qqi) instead.
>
> Maybe we re-invented the wheel, some. Our
> implementation runs on a box equipped with
> cpu/flash/ram and ethernet and jtag interfaces.
> It does implement the remote protocol in much
> the same way that rproxy does, but also adds
> facilities like posix i/o through the debug
> port.
>
> Works well. We've used it for debugging both
> 'bare machine' embedded and rtos based apps.
> (I also brought up a linux kernel with it).
>
> Best,
>
> Paul
>
>


             reply	other threads:[~2002-04-08 15:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-08  8:40 Paul Bartlett [this message]
2002-04-09  9:31 Paul Bartlett
2002-04-09 10:16 ` Andrew Cagney
2002-04-10  2:50 FW: " Paul Bartlett

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='00e501c1df13$b0ec66a0$300e81a4@bri.st.com' \
    --to=paul.bartlett@st.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