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

Bug 348239

Summary: Debugger halts after fflush
Product: [Tools] CDT Reporter: Missing name <conradoplg>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, pawel.1.piech
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Missing name CLA 2011-06-03 12:12:11 EDT
Build Identifier: 20110218-0911

When debugging code with a fflush call, the debugger halts. This message is printed on the console.

"*stopped,reason="end-stepping-range",frame={addr="0x000000000040fe1e",func="util",args=[],file="test_fb.c",fullname="test_fb.c",line="177"},thread-id="1",stopped-threads="all"
"

Code example:

#include <stdio.h>

int main(void) {
	printf("Hello World");
	fflush(stdout);
	return 0;
}

Reproducible: Always

Steps to Reproduce:
1. Debug code with fflush
2. Single step the fflush line
3. The debugger will halt