LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to debug using Eclipse question (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-debug-using-eclipse-question-772642/)

HarryBoy 12-01-2009 05:42 AM

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

Sudhindra Dixit 03-11-2014 09:29 AM

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.

hayya123 03-12-2014 04:27 AM

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

hayya123 03-13-2014 01:26 AM

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

hayya123 03-14-2014 06:23 AM

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

hayya123 03-14-2014 06:59 AM

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


All times are GMT -5. The time now is 09:32 PM.