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

Bug 384732

Summary: printf that starts with * & + and some others characters are not displayed in console
Product: [Tools] CDT Reporter: Gaetano Santoro <gaetano.santoro>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: CLOSED DUPLICATE QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3 CC: cdtdoug, marc.khouzam, pawel.1.piech
Version: Next   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
session's screenshot none

Description Gaetano Santoro CLA 2012-07-10 10:13:34 EDT
Build Identifier: Version: 3.8.0 Build id: I20120608-1200

#include <stdio.h>
#include <stdlib.h>

int main(void) {
	printf("*1 Hello \n");
	printf(" *2 Hello \n");
	fflush(stdout);
	puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */
	return EXIT_SUCCESS;
}

running this code, the first printf are not displayed in console, see attached image


Reproducible: Always
Comment 1 Gaetano Santoro CLA 2012-07-10 10:15:39 EDT
Created attachment 218504 [details]
session's screenshot
Comment 2 Marc Khouzam CLA 2012-07-10 11:03:51 EDT
Sounds like a dup of Bug 327766
You can try adding the line
  set new-console on
to a gdbinit file for your launch and see if it solves the problem.
Comment 3 Gaetano Santoro CLA 2012-07-11 02:38:50 EDT
Thanks for the info Marc

it works
Comment 4 Marc Khouzam CLA 2012-07-11 09:15:28 EDT

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