This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dlopen()


Russell Shaw 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.

I'm using GNU gdb 6.3-debian on a pc.
I compiled with CFLAGS="-g -O0".

For some reason, it is working now. I'm also using gdb-6.4 now.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]