Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* address space support
@ 2008-04-20 10:11 Doug Evans
  2008-04-21 17:19 ` Daniel Jacobowitz
  2008-04-21 17:57 ` Ulrich Weigand
  0 siblings, 2 replies; 5+ messages in thread
From: Doug Evans @ 2008-04-20 10:11 UTC (permalink / raw)
  To: gdb

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.

So I don't have a specific proposal, I'm just taking a survey of where 
things have left off.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-21 19:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-20 10:11 address space support 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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox