Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: David Carlton <carlton@kealia.com>
Cc: gdb <gdb@sources.redhat.com>, Jeff Johnston <jjohnstn@redhat.com>
Subject: Re: gdb.base/pending.exp failures
Date: Thu, 05 Feb 2004 00:21:00 -0000	[thread overview]
Message-ID: <20040205002140.GA29659@nevyn.them.org> (raw)
In-Reply-To: <yf2u126iecu.fsf@hawaii.kealia.com>

Just a note of probable-cause: Jeff, on which platforms did you test
this testcase?  I bet it wasn't i386-linux.

On Wed, Feb 04, 2004 at 04:01:21PM -0800, David Carlton wrote:
> (gdb) break pendfunc1
> 
> Breakpoint 1 at 0x804839c
> 
> (gdb) FAIL: gdb.base/pending.exp: set pending breakpoint

This function is in a shared library that hasn't been loaded yet. 
However, on i386-linux (and many other platforms), the call will go
through a PLT entry, and the entry in the application's symbol table
will appear as an SHN_UNDEF symbol with a non-zero address pointing at
the PLT entry.  GDB will re-resolve the breakpoint after shared
libraries have been loaded.  This is already-existing functionality.

If you don't want to use dlopen in the test, try setting breakpoints on
a function not called directly from the executable (i.e. called from
within the library).


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2004-02-05  0:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-05  0:06 David Carlton
2004-02-05  0:21 ` Daniel Jacobowitz [this message]
2004-02-05  1:03   ` Jeff Johnston
2004-02-05  1:22     ` [PATCH]: " Jeff Johnston
2004-02-05  1:48       ` David Carlton
2004-02-05  4:25       ` Daniel Jacobowitz

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=20040205002140.GA29659@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=carlton@kealia.com \
    --cc=gdb@sources.redhat.com \
    --cc=jjohnstn@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