Fedora Linux Support Community & Resources Center
  #1  
Old 11th May 2017, 01:19 PM
dcrdev Offline
Registered User
 
Join Date: Oct 2015
Location: Sheffield UK
Posts: 58
windows_7chrome
Quick Help with GDB

I'm in the process of packaging an application for Fedora - unfortunately it's not working and there's nothing revealing in the logs apart from listing the method that's failing.

I'd like to use gdb to debug the issue, but I'm not familiar with it at all. Could someone briefly explain to me how I can set a breakpoint in a particular source file provided by the debuginfo package.

Currently it's not really recognising what I'm trying to do - I just get "Make breakpoint pending on future shared library load? (y or [n]) y" and it never breaks.

I've been searching the web for quite some time and have found virtually nothing on using debuginfo packages to set breakpoints. Would really appreciate a quick point in the right direction!

Many Thanks
Reply With Quote
  #2  
Old 22nd May 2017, 08:26 AM
nobody Online
Registered User
 
Join Date: Mar 2012
Location: München, Deutschland
Posts: 765
windows_98_nt_2000chrome
Question Re: Quick Help with GDB

Quote:
Originally Posted by dcrdev View Post
I'm in the process of packaging an application for Fedora - unfortunately it's not working and there's nothing revealing in the logs apart from listing the method that's failing.
Would be nice to post to us the (at least) the whole failing log, so we can get the grasp of the problem. The ideal case should be to see the script you are using (I expect you use bash shell script for packaging).

In such the case GDB is not the best tool to be used (rather for C applications/user space C code, compiled with option -g/debug info/symbol table to be embedded into .exe code).

_nobody_
__________________
I am nobody, and nobody is perfect, therefore I am perfect!
Reply With Quote
  #3  
Old 22nd May 2017, 01:12 PM
dcrdev Offline
Registered User
 
Join Date: Oct 2015
Location: Sheffield UK
Posts: 58
windows_7chrome
Re: Quick Help with GDB

Quote:
Originally Posted by nobody View Post
Would be nice to post to us the (at least) the whole failing log, so we can get the grasp of the problem. The ideal case should be to see the script you are using (I expect you use bash shell script for packaging).

In such the case GDB is not the best tool to be used (rather for C applications/user space C code, compiled with option -g/debug info/symbol table to be embedded into .exe code).

_nobody_
Yeah I think you misunderstood me - the packaging process was not not failing, the build was not failing and the rpm, srpm and debuginfo packages were all being spat out. The problem was that the resultant package was just not working, the package in question was actually a plugin for another application; one that was not spitting out any meaningful debug information beyond the name of the C++ method that it was faltering on.

So yes a debugger would have been the best option, the binary in question was being compiled with the debug symbols and I had installed the resultant debuginfo package. I never did get it working though it just spat out random characters. I have never used gdb before and would have liked to figure it out.

In the end I attached strace and pinpointed the source of the problem to the build not having access to the OpenGL header files and for some reason the build was succeeding anyway.

I have it all working now though.
Reply With Quote
Reply

Tags
gdb, quick

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A quick hello and a thank you Rhorse Suggestions & Feedback 0 21st December 2009 06:18 PM
Quick one... biased99 Using Fedora 3 18th June 2007 08:46 AM
quick ? chile712 Using Fedora 5 2nd March 2006 04:59 AM
Quick Help chile712 Using Fedora 2 16th July 2005 08:56 AM
Very Quick How-To crackers Guides & Solutions (Not For Questions) 4 19th February 2005 05:58 PM


Current GMT-time: 14:09 (Thursday, 29-06-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat