From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] New (!) BFD target
Date: Thu, 23 Oct 2003 02:41:00 -0000 [thread overview]
Message-ID: <20031023024105.GB2637@nevyn.them.org> (raw)
In-Reply-To: <3F9725D2.3000102@redhat.com>
On Wed, Oct 22, 2003 at 08:50:26PM -0400, Andrew Cagney wrote:
> Hello,
>
> The attached adds a really simple BFD "target" and is used:
>
> bfd = bfd_open.. (...);
> targ = target_bfd_reopen (bfd)
> ... operation involving targ ...
> target_close (targ, 0);
>
> Looking at solib-svr4, this object makes it possible to change this:
>
> load_addr = read_pc () - tmp_bfd->start_address;
>
> into this:
>
> load_addr = (read_pc ()
> - gdbarch_convert_from_func_ptr_addr (current_gdbarch,
>
> bfd_get_start_address (tmp_bfd),
> tmp_bfd_target));
>
> i.e., pointer conversion is performed using the original executable and
> not the running program. Something needed to fix PPC64 needs.
>
> thoughts?
> I'll look to commit this in a few days,
I've already said my pieces about "xclose" and adding more mutable
members to the target_ops structure in separate messages, so I won't
repeat them. However, please explain more clearly why this is
necessary - you haven't provided enough context to understand.
Also, how does this interact with the "exec" target, whose
functionality it seems to duplicate in some ways? There should be an
exec target down the stack somewhere, why aren't you using that?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-10-23 2:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-23 0:50 Andrew Cagney
2003-10-23 2:41 ` Daniel Jacobowitz [this message]
2003-10-23 5:08 ` Andrew Cagney
2003-10-23 15:43 ` Daniel Jacobowitz
2003-10-31 19:23 ` 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=20031023024105.GB2637@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb-patches@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