From: Andrew Cagney <ac131313@cygnus.com>
To: Kevin Buettner <kevinb@cygnus.com>
Cc: gdb@sources.redhat.com
Subject: Re: How to add core addresses (or LM_ADDR problems revisited)
Date: Tue, 02 Oct 2001 19:59:00 -0000 [thread overview]
Message-ID: <3BBA7ED7.50205@cygnus.com> (raw)
In-Reply-To: <1011003013114.ZM22147@ocotillo.lan>
Kevin,
This has an interesting interaction with Michael's harvard proposal. A
CORE_ADDR, in core-gdb (er ..) could be represented as a ``struct value
*'' where TARGET_SPACE_PTR_BIT (src space, dest space) determines the
modulo / mask in any computation.
However, while their functionality might appear to overlap, I don't
think they should be tied together.
Looking at the proposal:
> CORE_ADDR
> core_addr_add (CORE_ADDR addr1, CORE_ADDR addr2)
Thinking of C, I suspect two operators are required:
CORE_ADDR core_addr_add (CORE_ADDR addr, LONGEST offset);
LONGEST core_addr_sub (CORE_ADDR a1, CORE_ADDR a2);
Don't forget that the MIPS expects sign extension so that will need to
be handled from day one. I suspect core_addr_add() and core_addr_sub()
are the things to multi-arch.
Any way, yes, I think this is long overdue!
Andrew
PS: The comment should suggest gdbarch_data() not gdbarch_swap() :-)
next prev parent reply other threads:[~2001-10-02 19:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-02 18:31 Kevin Buettner
2001-10-02 19:59 ` Andrew Cagney [this message]
2001-10-03 1:03 ` Kevin Buettner
2001-10-03 8:50 ` 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=3BBA7ED7.50205@cygnus.com \
--to=ac131313@cygnus.com \
--cc=gdb@sources.redhat.com \
--cc=kevinb@cygnus.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