How to see external libraries code when debugging
Posted
by Sanva
on Stack Overflow
See other posts from Stack Overflow
or by Sanva
Published on 2010-03-24T20:19:04Z
Indexed on
2010/03/24
20:23 UTC
Read the original article
Hit count: 254
Hello!!
First of all... this is my message #1 in this place, so... please be nice with me ;)
I just started recently to study Gnome apps/libraries and I found that debuggers are an excellent way to learn, because seeing the code running helps a lot in understanding the structure of the program.
But I have a problem. For example, debugging gnome-panel I found a lot of calls to external functions (basically the GTK+ functions), and although pretending to see all the code of all the functions applications like this call would be crazy, there are a lot that will be very interesting to see in action. The problem is that the debugger hasn't the code of those libraries loaded and it can't show it to me —at most it shows the line number where the execution is.
I'm using Nemiver and when it tries to enter in an external function it claims because it can't find a file it supposed to be somewhere. For example, trying to enter in gtk_window_set_default_icon_name it tries to load /build/buildd/gtk+2.0-2.16.1/gtk/gtkwindow.c, and calling XSetIOErrorHandler, ../../src/ErrHndlr.c.
So now I think that I'm doing something wrong... Why Nevimer are looking for those source files in those places??
My system does not even have the /build/buildd/ folders... and I don't know if I'm doing something wrong or I need to install somethig or what.
Any suggestion? How do you debug this kind of applications?
Best regards and thanks a lot for your time —and forgive me if my English is bad.
© Stack Overflow or respective owner