From: Andrew Cagney <ac131313@redhat.com>
To: Jim Blandy <jimb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [ppc64-linux] gdbarch hook to find true execution entry point
Date: Thu, 12 Jun 2003 22:25:00 -0000 [thread overview]
Message-ID: <3EE8FDBD.5000308@redhat.com> (raw)
In-Reply-To: <vt2r85zt3si.fsf@zenia.home>
> Andrew Cagney <ac131313@redhat.com> writes:
>
>
>> > 2003-06-11 Jim Blandy <jimb@redhat.com>
>> > * gdbarch.sh (gdbarch_bfd_entry_point): New gdbarch method.
>> > * arch-utils.c (generic_bfd_entry_point): New function.
>> > * arch-utils.h (generic_bfd_entry_point): New declaration.
>> > * gdbarch.c, gdbarch.h: Regenerated.
>> > * solib-svr4.c (enable_break): Call it, instead of accessing
>> > tmp_bfd->start_address directly.
>> >
>
>> I think this should be in BFD. Not just GDB but also the simulators
>> are going to need this information.
>
>
> Not sure I agree. The interesting information for process startup is
> intrinsically ABI-specific; for PPC64 Linux it's the TOC and
> environment pointers, but for another target it might be something
> else. You need ABI-specific code on the consumer's side anyway, just
> to know, for example, which registers everything goes in, so as long
> as that's there anyway, why not let BFD stick to what it does best ---
> interpreting object files?
not forgettting architecture, disassembler, minimal symbols, ...
> In general, the code in GDB supporting an ABI needs to be able to
> provide its own code to interpret what comes out of BFD. This is just
> one case that wasn't covered --- thus the gdbarch method.
From my PS:
> I think this should be in BFD. Not just GDB but also the simulators are going to need this information.
>
> PS: If BFD does this, ENTRY_POINT_ADDRESS can also, finally, be deleted.
The above and CALL_DUMMY_ADDRESS are effecively doing the same thing -
returning the entry-point address. If nothing else, some juggling will
let them share a common architecture method and avoid this duplication.
Anyway, I still think it's better to have it available in bfd (where the
sim can use it).
Andrew
next prev parent reply other threads:[~2003-06-12 22:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-11 13:21 Jim Blandy
2003-06-11 13:26 ` Andrew Cagney
2003-06-11 13:48 ` Andrew Cagney
2003-06-12 20:59 ` Jim Blandy
2003-06-12 22:25 ` Andrew Cagney [this message]
2003-06-11 23:11 ` Kevin Buettner
2003-06-13 22:31 ` Jim Blandy
2003-06-13 22:48 ` Kevin Buettner
2003-06-13 23:38 ` Andrew Cagney
2003-06-27 18:46 ` Andrew Cagney
2003-06-30 22:52 ` Jim Blandy
2003-07-01 22:53 ` Andrew Cagney
2003-08-28 22:48 ` 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=3EE8FDBD.5000308@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@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