From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: dje@sebabeach.org (Doug Evans)
Cc: gdb@sourceware.org
Subject: Re: address space support
Date: Mon, 21 Apr 2008 17:57:00 -0000 [thread overview]
Message-ID: <200804211257.m3LCvWjT000506@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <480A2002.9050405@sebabeach.org> from "Doug Evans" at Apr 19, 2008 09:38:26 AM
Doug Evans wrote:
> At Transmeta we had a hack to implement address spaces. I.e.,
> CORE_ADDR isn't enough to fully describe all the bits of "memory" one
> might want to examine. One could do things like "x/x
> <addr-space-name>:<address>". Using that we also hacked in support for
> x86 segments, so one could do "x/x fs:1234".
>
> We didn't want to maintain a ton of local mods so we took a minimalist
> route. Other ways that have been discussed in the past are things like
> turning CORE_ADDR into a struct:
>
> typedef struct { int address_space ; OLD_CORE_ADDR address; } NEW_CORE_ADDR;
>
> or some such (appropriately typed, named, etc.).
>
> But that's a ton of work, and not necessarily a maintainable way to go
> (the common case is addresses are just ints). Hacking CORE_ADDR by
> putting the address space in the upper bits doesn't necessarily work either.
My current out-of-tree patch to support combined PPU/SPU debugging
on the Cell/B.E. does use the latter method (encode address space into
the upper bits of CORE_ADDR). I'd certainly prefer to see a more
generic method supported by core GDB as well ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
prev parent reply other threads:[~2008-04-21 12:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-20 10:11 Doug Evans
2008-04-21 17:19 ` Daniel Jacobowitz
2008-04-21 19:25 ` Michael Snyder
2008-04-22 20:07 ` Eli Zaretskii
2008-04-21 17:57 ` Ulrich Weigand [this message]
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=200804211257.m3LCvWjT000506@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=dje@sebabeach.org \
--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