Debug options greyed out [message #1398080] |
Thu, 10 July 2014 15:26  |
Wojciech Domski Messages: 5 Registered: July 2014 |
Junior Member |
|
|
I have encountered a problem with debugging in eclipse.
First things first. I have installed a standard edition of Eclipse Luna. After that I added CDT package to it. Moreover I have installed gnu arm plugin for eclipse to write for ARMs. I am using gdb from GNU ARM toolchain if that matters.
If I start debugging my program I switch to debug perspective but then I am unable to do anything. The icons along with shortcuts do not work. The functionality I am missing is like reset, step, next.
What I can do is setting breakpoints and removing them by double click on certain line of code and terminate debug with tiny red square. What is more, in the console of gdb which integrates with eclipse during debugging I can write all the commands and in the result control the flow of the program. However, it is not very convenient. I have tried to reset the debug perspective but it did not help.
Domski.pl
|
|
|
|
|
|
|
|
|
Re: Debug options greyed out [message #1405236 is a reply to message #1404910] |
Wed, 06 August 2014 22:48   |
Trescott Jensen Messages: 4 Registered: August 2014 |
Junior Member |
|
|
I wonder if there is a quick hack I could make to just make the buttons always available. They could send their respective signals to the GDB regardless of the current state. The GDB would complain, but everything would work (I think).
For the time being, I can get by with entering the commands in the GDB console, but later when I get more heavily into the debugging process, that is going to become a major hindrance. So, I'm not in a big rush to fix it, but I do need to solve it.
I have looked at temp files and have not found anything helpful. Perhaps I should try a fresh install.
At this point, I'm not sure where to look next. I had done a lot of searching before finding this thread. Everything I found had to do with not having the stack frame selected. This is the first and only place I have found someone who had the same problem as me.
Wojciech, would you mind sharing the details of your setup with me? I want to see how our configuration is similar or different to help identify where the problem my be.
I am using Archlinux, with the following relevant packages installed:
eclipse 4.40-2
eclipse-cdt 8.4.0-1
gcc-arm-none-eabi-bin 4_8_20140609-1
gcc-multilib 4.9.1-1
SEGGER's J-Link software V4.88b-1
from within eclipse all the GNU ARM C/C++ Cross Development Tools are installed from "ilg.gnuarmeclipse.repository-2.3.2-201407190854.zip!"
Are you using J-Link, openOCD or something else?
I am using the J-Link hardware with the J-Link software and the J-Link debug configuration plugin that comes with the GNU ARM C/C++ Cross Development Tools. I am interested in using the openOCD but was unable to get it working. (I thought is would help to know if the problem existed regardless of which I used. But since I can't get it working I can compare them.)
|
|
|
|
Re: Debug options greyed out [message #1405606 is a reply to message #1405236] |
Thu, 07 August 2014 19:03   |
Trescott Jensen Messages: 4 Registered: August 2014 |
Junior Member |
|
|
I have solved the problem, and have been able to reproduce it. Here is what I did.
- uninstalled eclipse and eclipse-cdt and all their setting files/folders.
- reinstalled eclipse and eclipse-cdt.
- imported one existing project.
Running the debugger with this project had the desired result. All the debugging buttons worked as expected.
To reproduce the problem I did the following.
- in the system's file browser (NOT from within eclipse), copy the project folder to make a new project.
- in eclipse, import -> "Existing Projects into Workspace".
Now debugging the new project will reproduce the problem. All the debugging buttons will be grayed-out even when the stack frame is selected. Going back and trying the original project now will also result in this problem. Removing the duplicate does NOT resolve the problem. So whatever it is that this breaks, it stays broken.
In the .project file there is the project name, that could serve the purpose of a unique identifier. If that is the cause of the problem then the problem is in eclipse itself. (Eclipse should handle this gracefully, perhaps with an error notification, maybe even with a prompt to rename.)
For others who may find this thread having this problem, the correct way to duplicate a project is from within eclipse. In the "Project Explorer", do the following.
- switch to the C/C++ perspective
- select the project you want to duplicate in the Project Explorer.
- right-click -> copy.
- right-click -> paste.
- enter new name at the prompt.
This will avoid the problem.
Wojciech, I believe this "solves" the problem in this thread, and so I think you should edit your original post to update the title to include "[SOLVED]". Personally, I think it would help others with this problem to find this thread if you changed the title to "Debug options grayed out with stack fame selected [SOLVED]".
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02420 seconds