Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Getting debugging info from glibmm and gtkmm sources

 
   Soft32 Home -> Linux -> GTK-GNOME RSS
Next:  nautilus, tracker and beagle  
Author Message
José_Alburquerque

External


Since: May 03, 2007
Posts: 5



(Msg. 1) Posted: Thu Nov 15, 2007 7:20 pm
Post subject: Getting debugging info from glibmm and gtkmm sources
Archived from groups: linux>debian>maint>gtk>gnome (more info?)

Hello everyone. This is my first post to this list and I just want to
ask a question I think someone here will be able to answer: I'm
contributing to wrapping gstreamer for C++ and I find that I may need to
debug the library. The library is wrapped using a tool called
glibmmproc which has also been used to produce glibmm and gtkmm. I
noticed that there are debugging libraries for both glibmm and gtkmm
(libglibmm-2.4-dbg and gtkmm-2.4-dbg). Would someone here be able to
tell me how these packages are generated from the sources (or give me
some idea)? I think I may be able to use the same method to generate
debugging info for gstreamermm. I'd appreciate any help. If no one
knows, that's fine. Thanks.

-Jose


--
To UNSUBSCRIBE, email to debian-gtk-gnome-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
José_Alburquerque

External


Since: May 03, 2007
Posts: 5



(Msg. 2) Posted: Thu Nov 15, 2007 11:20 pm
Post subject: Re: Getting debugging info from glibmm and gtkmm sources [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

José Alburquerque wrote:
> Hello everyone. This is my first post to this list and I just want to
> ask a question I think someone here will be able to answer: I'm
> contributing to wrapping gstreamer for C++ and I find that I may need
> to debug the library. The library is wrapped using a tool called
> glibmmproc which has also been used to produce glibmm and gtkmm. I
> noticed that there are debugging libraries for both glibmm and gtkmm
> (libglibmm-2.4-dbg and gtkmm-2.4-dbg). Would someone here be able to
> tell me how these packages are generated from the sources (or give me
> some idea)? I think I may be able to use the same method to generate
> debugging info for gstreamermm. I'd appreciate any help. If no one
> knows, that's fine. Thanks.
>
> -Jose
>
>
I'm sorry; I was using checknstall which automatically strips libraries
and executables before creating and installing a package out of a "make
install" command so the debugging info was being removed. This is why I
couldn't debug the library. I found how to disable the stripping and I
can now debug the gstreamermm library. Sorry.

-Jose


--
To UNSUBSCRIBE, email to debian-gtk-gnome-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Login to vote
José_Alburquerque

External


Since: May 03, 2007
Posts: 5



(Msg. 3) Posted: Fri Nov 16, 2007 2:47 pm
Post subject: Re: Getting debugging info from glibmm and gtkmm sources [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

José Alburquerque wrote:
> José Alburquerque wrote:
>> Hello everyone. This is my first post to this list and I just want
>> to ask a question I think someone here will be able to answer: I'm
>> contributing to wrapping gstreamer for C++ and I find that I may need
>> to debug the library. The library is wrapped using a tool called
>> glibmmproc which has also been used to produce glibmm and gtkmm. I
>> noticed that there are debugging libraries for both glibmm and gtkmm
>> (libglibmm-2.4-dbg and gtkmm-2.4-dbg). Would someone here be able to
>> tell me how these packages are generated from the sources (or give me
>> some idea)? I think I may be able to use the same method to generate
>> debugging info for gstreamermm. I'd appreciate any help. If no one
>> knows, that's fine. Thanks.
>>
>> -Jose
>>
>>
> I'm sorry; I was using checknstall which automatically strips
> libraries and executables before creating and installing a package out
> of a "make install" command so the debugging info was being removed.
> This is why I couldn't debug the library. I found how to disable the
> stripping and I can now debug the gstreamermm library. Sorry.
>
> -Jose
>
>
But if I can, may I ask another question: If I install a debugging
package (libglibmm-2.4-dbg for example), can I step into the library's
source with gdb? For example if I have the following simple code:

#include <glibmm.h>

int main (int argc, char* argv[]) {
Glib::init();
}

will gdb step into the library's code (Glib::init)? I know this seems
c++ specific, but I think it would work the same with c libraries like
glib/gtk, etc. Does anyone have some knowledge as to how to look at the
libraries source code? I know that debugging packages install the
unstripped libraries in "/usr/lib/debug/", but even if I try to use "set
debug-file-directory /usr/lib/debug" in gdb stepping into the source
still doesn't seem possible. I'd really appreciate any help. Thanks.

Sincerely
Jose


--
To UNSUBSCRIBE, email to debian-gtk-gnome-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Login to vote
José_Alburquerque

External


Since: May 03, 2007
Posts: 5



(Msg. 4) Posted: Sun Nov 18, 2007 8:47 pm
Post subject: Re: Getting debugging info from glibmm and gtkmm sources [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

José Alburquerque wrote:
> But if I can, may I ask another question: If I install a debugging
> package (libglibmm-2.4-dbg for example), can I step into the library's
> source with gdb? For example if I have the following simple code:
>
> #include <glibmm.h>
>
> int main (int argc, char* argv[]) {
> Glib::init();
> }
>
> will gdb step into the library's code (Glib::init)? I know this seems
> c++ specific, but I think it would work the same with c libraries like
> glib/gtk, etc. Does anyone have some knowledge as to how to look at
> the libraries source code? I know that debugging packages install the
> unstripped libraries in "/usr/lib/debug/", but even if I try to use
> "set debug-file-directory /usr/lib/debug" in gdb stepping into the
> source still doesn't seem possible. I'd really appreciate any help.
> Thanks.
>
> Sincerely
> Jose
>
>

I just needed to install the source of the packages. Thanks.

-Jose


--
To UNSUBSCRIBE, email to debian-gtk-gnome-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
GTK application ----run error - hi i had created one same application in glad interface designer with c option.the n i compiled the same after that i....

[gentoo-user] problem emerging glibmm - When I try to compile glibmm I get these error: .../../glib/glibmm/.libs/libglibmm-2.4.so: undefined reference to ..

[gentoo-user] glibmm-2.8.4 failing to compile - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I'm running an `emerge -Duatv world' and emerge is wanting to..

[gentoo-dev] gtkmm-2.4.7 - is there any specific reason why gtkmm-2.4.7 is not in ~x86 ? -- gentoo-dev@gentoo.org mailing list

[gentoo-user] gtkmm-2.4.7 - is there any specific reason why gtkmm-2.4.7 is not in ~x86 ? -- gentoo-user@gentoo.org mailing list

[gentoo-dev] gtkmm- 2.2.11 - I've got the following problem: Yesterday I emerged gtkmm.... after that I tried to compile the most simple..
       Soft32 Home -> Linux -> GTK-GNOME All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]