From: Jim Blandy <jimb@red-bean.com>
To: Russell Shaw <rjshaw@netspace.net.au>
Cc: gdb@sources.redhat.com
Subject: Re: dlopen()
Date: Tue, 17 Jan 2006 06:00:00 -0000 [thread overview]
Message-ID: <8f2776cb0601162154k6b509013ndaccf217f3b36e39@mail.gmail.com> (raw)
In-Reply-To: <43CC73CE.2030709@netspace.net.au>
On 1/16/06, Russell Shaw <rjshaw@netspace.net.au> wrote:
> Hi,
>
> I do:
>
> void *handle = dlopen("libfile1.so", RTLD_NOW);
> ...
> newfunc = dlsym(handle, "afunc");
> ...
> int res = (*newfunc)(app);
>
> How do i stop inside the "newfunc" function? I set a breakpoint
> there, but it doesn't activate.
After you step over the dlopen call, GDB should have read the symbols
from libfile1.so. If you say "break afunc" at that point, what does
GDB say?
If that doesn't work for you, you'll need to give us more details.
You need to include an actual transcript of your GDB session to start
with, not just an English description of what you did and what
happened. If we don't see any misunderstandings there, then you'll
need to provide us with a test case we can use to make the problem
happen on our own machines.
next prev parent reply other threads:[~2006-01-17 5:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-17 5:54 dlopen() Russell Shaw
2006-01-17 6:00 ` Jim Blandy [this message]
2006-01-17 21:28 ` dlopen() Russell Shaw
2006-01-17 6:12 ` dlopen() Russell Shaw
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=8f2776cb0601162154k6b509013ndaccf217f3b36e39@mail.gmail.com \
--to=jimb@red-bean.com \
--cc=gdb@sources.redhat.com \
--cc=rjshaw@netspace.net.au \
/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