From: Paul Koning <pkoning@equallogic.com>
To: drow@mvista.com
Cc: gdb@sources.redhat.com
Subject: Re: Looking for a gdb function to handle alias addresses
Date: Wed, 31 Dec 2003 16:53:00 -0000 [thread overview]
Message-ID: <16370.65275.609000.91914@gargle.gargle.HOWL> (raw)
In-Reply-To: <20031231163751.GA18231@nevyn.them.org>
>>>>> "Daniel" == Daniel Jacobowitz <drow@mvista.com> writes:
>> If the latter, is another gdbarch function hook the right way?
Daniel> Maybe. What you're describing is very system-specific,
Daniel> rather than architecture-specific - I realize that the basic
Daniel> K0/K1 is a standard MIPS feature, but the details of what
Daniel> regions alias will definitely vary based on more than the
Daniel> gdbarch. So perhaps it should be directly user-configurable
Daniel> instead.
It certainly is system-specific. The K0/K1 and also the corresponding
64-bit aliases are MIPS standard. But in my case, I also wanted an
alias from a 64-bit unmapped address to a canonical address that's
mapped (through the user address space, no less) and that's a
programmable mapping that's specific to our target.
I wasn't thinking user-configurable because the mapping I have is
fixed for the platform, so I'd rather program it in. My dump analyzer
already knows a whole lot of hairy details about that target
anyway... :-) Also, a rule of the form "walk through the VM region
descriptors for a region that maps to the physical address, and take
the inverse" is hard to express in the UI.
From what I've heard so far I'm inclined to make this a private hook,
without a lot of effort spent to make it nice & generic because it's
not likely to be generally useful/applicable.
Thanks Daniel.... any other opinions/comments would also be welcome.
paul
next prev parent reply other threads:[~2003-12-31 16:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-30 22:19 Paul Koning
2003-12-30 23:00 ` Daniel Jacobowitz
2003-12-31 15:26 ` Paul Koning
2003-12-31 16:37 ` Daniel Jacobowitz
2003-12-31 16:53 ` Paul Koning [this message]
2003-12-31 17:36 ` Andrew Cagney
2003-12-31 18:31 ` Paul Koning
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=16370.65275.609000.91914@gargle.gargle.HOWL \
--to=pkoning@equallogic.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