Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Russell Shaw <rjshaw@netspace.net.au>
Cc: gdb@sources.redhat.com
Subject: Re: dlopen()
Date: Tue, 17 Jan 2006 21:28:00 -0000	[thread overview]
Message-ID: <43CC8AD5.2020804@netspace.net.au> (raw)
In-Reply-To: <8f2776cb0601162154k6b509013ndaccf217f3b36e39@mail.gmail.com>

Jim Blandy wrote:
> 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.

It works now, for some reason. After dlopen(), "info shared" shows that
the symbols are read.


  reply	other threads:[~2006-01-17  6:12 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 ` dlopen() Jim Blandy
2006-01-17 21:28   ` Russell Shaw [this message]
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=43CC8AD5.2020804@netspace.net.au \
    --to=rjshaw@netspace.net.au \
    --cc=gdb@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