Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 280945

Summary: Error showing variable in debugger
Product: [Tools] CDT Reporter: Peter Hull <peterhull90>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: CLOSED DUPLICATE QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3 CC: malaperle, nobody, pawel.1.piech
Version: 6.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Peter Hull CLA 2009-06-19 15:29:12 EDT
I created an ansi C 'hello world' project then modified the C file as follows
int main(void) {
	int x = 99;
	printf("%d\n", x);
	return EXIT_SUCCESS;
}
When debugging, the cursor started at the x=99 line. I saw
x  int -1073743004
(i.e. variable not initialised, as expected) Then when stepping to the next line, an error message appeared instead of the expected value.
Failed to execute MI command:
-var-update 1 var1
Error message from debugger back end:
Variable object not found
Comment 1 Marc-André Laperle CLA 2010-01-14 00:46:52 EST
This is a duplicate of bug 250037. It is fixed in 6.0.2.
Comment 2 Nobody - feel free to take it CLA 2010-01-14 05:25:43 EST

*** This bug has been marked as a duplicate of bug 250037 ***