Hi,
I have a very simple program, but when I try to espand the binary
in the C/C++ Projects Explorer, I get an FetchJob failure.
The details say, NPE.
Kepler RC3
CDT 8.2.0.201305281015
In the Project Settings, I added for the Debug Configuration both
the PE Parser and the Elf Parser
--------------------------------------------------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
void spin(int i, int max)
{
static const char aspin[] = "|/-\\",*pspin = aspin;
fprintf(stderr,"[%c] %3d%% %10d\r", *pspin, i*100/max, i);
pspin = (*pspin) ? pspin+1 : aspin;
}
int main(void) {
int i, max = 1000;
printf("!!!Hello World!!!\n"); /* prints !!!Hello World!!! */
for (i = 0; i <= max; i++)
{
spin(i, max);
}
return EXIT_SUCCESS;
}
--------------------------------------------------------------------------------------------------------------------
03:41:37 **** Rebuild of configuration Debug for project test_c001
****
Info: Internal Builder is used for build
gcc --version
gcc (GCC) 4.8.0
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\test_c001.o"
"..\\src\\test_c001.c"
gcc -g3 -o test_c001.exe "src\\test_c001.o"
03:41:38 Build Finished (took 1s.473ms)
--------------------------------------------------------------------------------------------------------------------
!ENTRY org.eclipse.core.jobs 4 2 2013-06-05 03:38:08.022
!MESSAGE An internal error occurred during: "FetchJob".
!STACK 0
java.lang.NullPointerException
at
org.eclipse.cdt.utils.debug.dwarf.DwarfReader.processCompileUnit(DwarfReader.java:471)
at
org.eclipse.cdt.utils.debug.dwarf.DwarfReader.processDebugInfoEntry(DwarfReader.java:441)
at
org.eclipse.cdt.utils.debug.dwarf.Dwarf.parseDebugInfoEntry(Dwarf.java:455)
at
org.eclipse.cdt.utils.debug.dwarf.Dwarf.parseDebugInfo(Dwarf.java:387)
at
org.eclipse.cdt.utils.debug.dwarf.Dwarf.parse(Dwarf.java:363)
at
org.eclipse.cdt.utils.debug.dwarf.DwarfReader.getSourceFilesFromDebugInfoSection(DwarfReader.java:386)
at
org.eclipse.cdt.utils.debug.dwarf.DwarfReader.getSourceFiles(DwarfReader.java:364)
at
org.eclipse.cdt.internal.core.model.Binary.addSourceFiles(Binary.java:321)
at
org.eclipse.cdt.internal.core.model.Binary.computeChildren(Binary.java:292)
at
org.eclipse.cdt.internal.core.model.Binary.buildStructure(Binary.java:278)
at
org.eclipse.cdt.internal.core.model.Openable.generateInfos(Openable.java:273)
at
org.eclipse.cdt.internal.core.model.CElement.openWhenClosed(CElement.java:430)
at
org.eclipse.cdt.internal.core.model.CElement.getElementInfo(CElement.java:308)
at
org.eclipse.cdt.internal.core.model.CElement.getElementInfo(CElement.java:298)
at
org.eclipse.cdt.internal.core.model.Parent.getChildren(Parent.java:55)
at
org.eclipse.cdt.internal.ui.CWorkbenchAdapter.getChildren(CWorkbenchAdapter.java:47)
at
org.eclipse.cdt.internal.ui.DeferredCWorkbenchAdapter.fetchDeferredChildren(DeferredCWorkbenchAdapter.java:39)
at
org.eclipse.cdt.internal.ui.util.RemoteTreeContentManager$FetchJob.run(RemoteTreeContentManager.java:85)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Am 04.06.2013 18:48, schrieb Mikhail Khodjaiants:
On 04/06/2013 11:24 AM, Maherzia
BELAAZI wrote:
I’m
using the « PE windows parser » the default suggested Binary
parser.
I
used it with older CDT version (CDT 8.1.1), and it used to
work.
Should
I change the used parser ?
It works fine with "PE Windows Parser" as long
as the executable contains debug information. You can check
whether the parser is working by expanding the binary element in
the Projects view.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev