From: Todd Whitesel <toddpw@best.com>
To: ac131313@cygnus.com (Andrew Cagney)
Cc: qqi@world.std.com, fche@redhat.com, gdb@sourceware.cygnus.com
Subject: Re: [remote] Make registers network byteordered?
Date: Wed, 21 Mar 2001 15:59:00 -0000 [thread overview]
Message-ID: <200103211051.CAA14665@shell17.ba.best.com> (raw)
In-Reply-To: <3A2ED523.70DCA415@cygnus.com>
Another December twin-dilemma time warp victim...
> Even when you know the target, you may not know its current byte order.
> I must admit, thought, that it is a very rare situtation to be trying to
> debug a target that switches its byte order.
>
> Oh, and I've seen people debug targets using the wrong GDB. Sick yes,
> but it does work.
Commercial debuggers in the USA embedded market generally detect endianness
on startup, or design the issue out of their protocols by using a "network
byte order" concept or endian-neutral formats (like bigendian hex ascii).
Switching endianness after startup is rare, except possibly on bi-endian
targets that set bits at runtime or have memory spaces which can select
the endianness (i960 Cx core series...) Sounds like a job for JTC's memory
attributes!
In any case, I consider hard-compiled endian assumptions to be disgusting.
It should always be possible to force a specific endianness in the case
where the auto-detect fails for any reason, but it's lame to rely on people
picking the right configure option or typing "set endianness" all the time...
Todd Whitesel
toddpw @ best.com
next parent reply other threads:[~2001-03-21 15:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3A2ED523.70DCA415@cygnus.com>
2001-03-21 15:59 ` Todd Whitesel [this message]
[not found] <3A2C4305.6D9E53B3@cygnus.com>
2000-12-05 13:03 ` Frank Ch. Eigler
2000-12-05 14:34 ` Jim Blandy
[not found] ` <3A2D84F3.48F372E@cygnus.com>
2000-12-06 3:51 ` Frank Ch. Eigler
2000-12-07 12:53 ` J.T. Conklin
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=200103211051.CAA14665@shell17.ba.best.com \
--to=toddpw@best.com \
--cc=ac131313@cygnus.com \
--cc=fche@redhat.com \
--cc=gdb@sourceware.cygnus.com \
--cc=qqi@world.std.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