Bug 335831 - Debugging is not happening
Summary: Debugging is not happening
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0   Edit
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-31 05:57 EST by GaneshrajS CLA
Modified: 2020-09-04 15:18 EDT (History)
4 users (show)

See Also:


Attachments
execute.jpg (142.16 KB, image/jpeg)
2011-01-31 06:02 EST, GaneshrajS CLA
no flags Details
before_starting_debug.jpeg (143.04 KB, image/jpeg)
2011-01-31 06:03 EST, GaneshrajS CLA
no flags Details
debug.jpeg (146.31 KB, image/jpeg)
2011-01-31 06:04 EST, GaneshrajS CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description GaneshrajS CLA 2011-01-31 05:57:16 EST
Build Identifier: M20100909-0800

I tried debugging a simple makefile project. I am unsuccessful in creating a debug session from eclipse. Please let me know what is going wrong. I dont see anything logged inside the errorlog.

Reproducible: Always

Steps to Reproduce:
1- I have downloaded the eclipse for hpux and installed on a hpux machine. I am able to create a
   makefile project and execute it. (Fig: execute.jpg)

2- I am following the below mentioned steps to debug the binary created,
   a- Right click on the binary created(here it is test) --> Debug as --> Local C/C++ Application 
   b- 'Launch Debug Configuration Selection' window comes up. I have selected 'gdb/mi' option is selected.(Fig: before_starting_debug.jpg)
   c- Debug is not starting and it looks debug process is hung. (Fig: debug.jpg)
Comment 1 GaneshrajS CLA 2011-01-31 06:02:04 EST
Created attachment 187947 [details]
execute.jpg
Comment 2 GaneshrajS CLA 2011-01-31 06:03:26 EST
Created attachment 187948 [details]
before_starting_debug.jpeg
Comment 3 GaneshrajS CLA 2011-01-31 06:04:00 EST
Created attachment 187949 [details]
debug.jpeg
Comment 4 Marc-André Laperle CLA 2011-02-26 02:11:28 EST
I am unfamiliar with hpux. The screenshots you attached look like Windows. Can you describe your setup a bit? Are you compiling remotely?

In the third screenshot, it is strange that you don't have anything in the error log. You should at least get an info message from the indexer 'Indexed 'test' ...' I see some other strangeness in this image, maybe this is a drawing problem? Can you debug fine in Java?

I notice in your first screenshot that the includes are unresolved so the toolchain is probably not detected. What toolchain are you using? Cygwin GCC? MinGW GCC? Linux GCC? If the toolchain is not detected properly, then the built-in includes paths and symbols will not be setup and the index will not be accurate. This will limit features such as content assist.

Is the folder that contains GDB in the PATH variable? Also, which launcher are you using? You can see that in Debug Configurations, at the bottom of the dialog, you should see "Using GDB (DSF)..." or something else.