debugging shared library

A

Andrea Crotti

I have two shared library, so in short I have


+------------------------+
+---------------------+ | MY LIBRARY |
| MAIN EXECUTABLE | /------+------------------------+
+---------------------+-----
----
\----- +------------------------+
\--+ OTHER LIBRARY |
+------------------------+

(Sorry for the crappy painting I was trying emacs artist-mode)

So the two libraries are loaded by one executable, and I can debug my
code setting breakpoints in my code, but the other library is a black
box.
It's also compiled with "-g" so I should find the symbols, but I can't
step in in any way...

My library is actually loaded from the other library with a "dlopen" if
it makes a difference...

I don't find any useful hint that explains the reason and how I could
avoid it...
Any idea?
 
R

red floyd

[completely OT redacted]
Any idea?

Yes, try posting in a forum where it's relevant.

The C++ standard says nothing about shared libraries,
debuggers, or dlopen().

The answer to your question is the same, regardless of
whether you've coded in C, C++, FORTRAN, Pascal, or
some other language. It's also highly dependent on your
platform and toolset.

May I suggest a newsgroup with unix or linux in its name?

See also FAQ 5.9

http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top