From: Daniel Jacobowitz <drow@false.org>
To: Randolph Chung <randolph@tausq.org>
Cc: gdb-patches@sources.redhat.com, Andrew Cagney <cagney@gnu.org>
Subject: Re: [patch/rfa] Allow breakpoing to be added after inferior has started
Date: Mon, 07 Jun 2004 15:20:00 -0000 [thread overview]
Message-ID: <20040607152038.GA17470@nevyn.them.org> (raw)
In-Reply-To: <20040607030413.GD601@tausq.org> <20040522023133.GG7207@tausq.org>
On Fri, May 21, 2004 at 07:31:33PM -0700, Randolph Chung wrote:
> The shlib-call.exp test fails on hppa (also ia64) because it tries to
> add a breakpoint before the inferior is started, so there's no where
> to put the breakpoint. gdb can handle this case if we allow pending
> breakpoints in the test.
>
> this only works on x86 and some other architectures because they put
> instructions into the plt; but some architectures put addresses in the
> plt.
This is a naming issue only. Some architectures call the table of
addresses the PLT and have another fancy name for the stubs; other
architectures put the table of addresses in .got.plt in the GOT, and
call the stubs "PLT entries". Your import stub serves the same purpose
as a PLT entry "normally" would.
This is why I was so confused by your explanation - PLT slots are
"normally" code :)
The difference on HPPA is that the undefined symbol for printf has a
value of 0 instead of a value pointing at the beginning of the import
stub. Some other architectures do this also. It's a generally
legitimate thing to do; if we worked really hard at it, we could
reconstruct the address of the import stub by grubbing around in the
text section, symbols, and relocations, but it would be quite
complicated.
>
> ok to commit?
>
> randolph
>
> 2004-05-21 Randolph Chung <tausq@debian.org>
>
> * gdb.base/shlib-call.exp: Allow breakpoint to be added after inferior
> has started.
OK.
--
Daniel Jacobowitz
prev parent reply other threads:[~2004-06-07 15:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-22 2:31 Randolph Chung
2004-05-25 18:17 ` Andrew Cagney
2004-05-25 18:30 ` Randolph Chung
2004-06-07 3:04 ` Randolph Chung
2004-06-07 15:20 ` Daniel Jacobowitz [this message]
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=20040607152038.GA17470@nevyn.them.org \
--to=drow@false.org \
--cc=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=randolph@tausq.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