LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2009, 06:42 AM   #1
HarryBoy
Member
 
Registered: Apr 2008
Distribution: MontaVista Linux Version 4.0.1, Professional Edition
Posts: 215

Rep: Reputation: 16
Unable to debug using Eclipse question


Hi, I am trying to debug a c++ program in Eclipse. I done a 'make all' with the following in the makefile: CPPFLAGS=-Werror -o0 -g -ggdb $(INCLUDES) so a debug version of my exe is made.

Then when I press the debug button on Eclipse the following happens:

gdbDebugger Error
Error stopping at main.
Reason: target request failed. Function 'main' not defined. Continue??

Then if I hit 'Yes' to continue the main GUI of the application pops up but I cannot set any breakpoints in the code to debug it. If I look at the output of the Eclipse debug window it has lots of messages like so:

Missing separate debuginfo for /VENVR/NVR/deliverables/staging/rootfs/lib/libgio-2.0.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/50/720f16e2e5e5890abe1ddd70b3330a401cd1db.debug
(no debugging symbols found)

Missing separate debuginfo for /VENVR/NVR/deliverables/staging/rootfs/lib/libglib-2.0.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/8f/bb6be1c2ff10b513627486e7f25c50be2cb5a4.debug
(no debugging symbols found)

Missing separate debuginfo for /VENVR/NVR/deliverables/staging/rootfs/lib/libgmodule-2.0.so.0
Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/fc/76f69d9f16ff2158b9a2be4c25d46d71f72d67.debug
(no debugging symbols found)


If I take each one of these in turn and do as it suggests e.g. Yum -- blah blah then I get the following errors that 'no more mirrors to try'

Trying other mirror.
http://download1.rpmfusion.org/free/...ry.sqlite.bz2: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: failure: repodata/d8f32953112ced624a7ea87a2ef2add39fe04ae7-primary.sqlite.bz2 from rpmfusion-free-updates: [Errno 256] No more mirrors to try.



What can I do to be able to debug my program? Thanks
 
Old 03-11-2014, 10:29 AM   #2
Sudhindra Dixit
LQ Newbie
 
Registered: Mar 2014
Location: Bangalrore
Posts: 1

Rep: Reputation: Disabled
Symbol info might have been omitted during linking

You have to include the symbol information (-s) in your linker settings of eclipse. If omit symbol information is selected then the gdb wont have the symbol info to map for debugging on your host PC. If your host and the target executable are of the same size then you have omitted symbol info. Your host image of the executable will be big in size than that of the target if you include the symbol info with your build.
 
Old 03-12-2014, 05:27 AM   #3
hayya123
LQ Newbie
 
Registered: Mar 2014
Posts: 5

Rep: Reputation: Disabled
I think the problem is because you have set the wrong path to jre .try right click on your project and click run configuration and set jre correct path. Could you please elaborate more about the issue.

For more information please visit six week industrial training in chandigarh
 
Old 03-13-2014, 02:26 AM   #4
hayya123
LQ Newbie
 
Registered: Mar 2014
Posts: 5

Rep: Reputation: Disabled
I'm using:

Spring Tool Suite Version: 3.2.0.RELEASE
Tomcat v7.0.42
When I just run my tomcat server everything is fine but I'm unable to debug it even locally. It produces following error:

Startich Apache Tomcat v7.0.42 at localhost has encoutered a problem.

Server Apache Tomcat v7.0.42 bat localhost was unable to start within 45 seconds.


For more information please visit six week industrial training in chandigarh
 
Old 03-14-2014, 07:23 AM   #5
hayya123
LQ Newbie
 
Registered: Mar 2014
Posts: 5

Rep: Reputation: Disabled
please try this:-

(1) Enter an exception breakpoint to catch "StackOverflowError"
(2) Debug the following program.
(3) The program stops, with a deep stack (slowly - which there is a bug for).
(4) A bunch of errors appear in the log (attached).

public class Overflow {

public static void main(String[] args) {

Overflow o = new Overflow();
o.recurse("a");
}

public void recurse(String a) {
recurse(a);
}
}


For more please click onmouth guard
 
Old 03-14-2014, 07:59 AM   #6
hayya123
LQ Newbie
 
Registered: Mar 2014
Posts: 5

Rep: Reputation: Disabled
A mouthguard is a protective device for the mouth that covers the teeth and gums to prevent and reduce injury to the teeth, arches, lips and gums. A mouthguard is most often used to prevent injury in contact sports, as a treatment for bruxism or TMD, or as part of certain dental procedures, such as tooth bleaching. Depending on application, it may also be called a mouth protector, mouth piece, gumshield, gumguard, nightguard, occlusal splint, bite splint, or bite plane.


For more please click on mouth guard
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse Debug mode not working (/dev/ttys0) cyber.cbm Programming 1 09-02-2009 09:27 AM
LXer: Debug Java applications remotely with Eclipse LXer Syndicated Linux News 0 12-15-2008 05:20 PM
LXer: Hardware-assisted debug tools gain Eclipse support LXer Syndicated Linux News 0 01-24-2007 04:33 PM
Debug in Eclipse as root guysoft Programming 3 10-16-2006 08:30 PM
Using Eclipse to debug from Windows To Linux flashburn Linux - Software 1 09-19-2005 07:28 AM


All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration