Hello,
I can't debug with :
- WinXP
- MinGW 5.1
- GDB 6.3
- C::B SVN 4767 (tried 2 olders versions too)
The program compiles and run fine, but segfaults when debugging.
The log :
Selecting target:
Debug
Adding source dir: E:\Dev\Tests\2.CB debug\
Adding source dir: E:\Dev\Tests\2.CB debug\
Adding file: bin\2.CB debug.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
Child process PID: 13636
Program received signal SIGSEGV, Segmentation fault.
In ntdll!RtlpWaitForCriticalSection () (ntdll.dll)
The program :
int main(){
int i = 0;
cout << "Hello world!" << endl;
return 0;
}
Does anyone have an idea ?
BTW, C::B is my favourite IDE :-)
Well, it doesn't change anything :
Selecting target:
Debug
Adding source dir: E:\Dev\Tests\2.CBdebug\
Adding source dir: E:\Dev\Tests\2.CBdebug\
Adding file: bin\2.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
Child process PID: 14764
Program received signal SIGSEGV, Segmentation fault.
In ntdll!RtlpWaitForCriticalSection () (ntdll.dll)
Yes it is, and I tried with other names (here, coco and coucou)
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="2.CB debug" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\coco" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin\coucou" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-fexceptions" />
</Compiler>
<Unit filename="main.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder />
</Extensions>
</Project>
</CodeBlocks_project_file>
Any idea ?
Thanks for helping