From: Michael Eager <eager@eagerm.com>
To: gdb@sourceware.org
Subject: Translate memory addresses
Date: Sun, 06 Mar 2011 23:53:00 -0000 [thread overview]
Message-ID: <4D741E53.2090104@eagerm.com> (raw)
Hi --
I'm working with a target which needs to translate
a virtual memory addresses to a physical address
before accessing the target's memory or the core file.
I added a new field to target_ops to specify the
translation function and added the following to
target_xfer_partial():
/* Translate address if needed. */
if (ops->to_translate_address)
offset = ops->to_translate_address (ops, offset);
So far, so good. I can add this to the target definition
for the live targets. But this doesn't work for core files.
Core_ops is defined in corelow.c, and there doesn't appear
to be an obvious hook for the target code to modify it to
add the translation routine.
Any suggestions on the best way to add a hook or how to specify
a target routine to do address translations for core files?
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
next reply other threads:[~2011-03-06 23:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-06 23:53 Michael Eager [this message]
2011-03-08 16:28 ` Tom Tromey
2011-03-08 16:48 ` Michael Eager
2011-03-08 17:04 ` Mark Kettenis
2011-03-08 17:21 ` Michael Eager
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=4D741E53.2090104@eagerm.com \
--to=eager@eagerm.com \
--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