public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Steven Johnson <sbjohnson@ozemail.com.au>
To: Leon Pollak <leonp@plris.com>
Cc: insight@sourceware.cygnus.com
Subject: Re: Virtual memory and gdb/Insight
Date: Wed, 31 May 2000 02:34:00 -0000	[thread overview]
Message-ID: <3934DB0A.EF492B63@ozemail.com.au> (raw)
In-Reply-To: <4.3.0.20000531102122.00aa5c70@plris.com>

Leon,

Welcome to my world.

I've had this same problem for ages with Codewarrior.

RPRoxy needs to simulate the MMU Operation. I Believe RProxy is distributed
with source?
If this is so, then you will need to put some code in that performs
translation of your virtual
addresses to the targets physical addresses. Such that GDB debugs the virtual
address space, but 
RProxy operates on the physical. 

I was thinking of doing something like this with my Debugger (when it is
ready) using a memory map file that defines the virtual to physical mapping.
You might find it quicker just to hack a special version of RProxy to modify
the addresses to suit your target.

You could also do it in GDB, but this is harder as you would have to address
all the different targets. Further, Im not sure it affects many people :( Just
you and me. So it is probably easier to put it in the debug stub than trying
to get it integrated into GDB. Also due to the nature of target resident
monitors, this is not a problem for them. (I Hazard a guess to say that >90%
of people using GDB for embedded development use target resident monitors.)

With metrowerks I limit myself to the first contiguous page. To prevent cross
page translation affecting debugging. This may also be an option. (Although it
is not a good one).

Steven.

  reply	other threads:[~2000-05-31  2:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-31  1:13 Leon Pollak
2000-05-31  2:34 ` Steven Johnson [this message]
2000-05-31  2:57 ` Andrew Cagney

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=3934DB0A.EF492B63@ozemail.com.au \
    --to=sbjohnson@ozemail.com.au \
    --cc=insight@sourceware.cygnus.com \
    --cc=leonp@plris.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).