Thanks for reply!
I've downloaded gdb.exe, now it's OK
But I still have some questions:
1- when choosing the compiler by: settings --> compiler and debugger, then selecting a new compiler, this choice is not accepted until pressing "Set as default".
2- choosing Borland C++ compiler (5.5,5.82), and specifying gdb for debugger in "Toolchain executables", clicking Debug --> Start, gives:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: E:\my_data\prog\code blocks\test2\test2\
Adding source dir: E:\my_data\prog\code blocks\test2\test2\
Adding file: bin\Debug\test2.exe
Starting debugger:
done
Setting breakpoints
Hello world!
Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: bin/Debug/test2.exe
Symbol search path is: E:/my_data/prog/CODEBL~1/test2/test2/
Executable search path is:
ModLoad: 00400000 00409000 test2.exe
ModLoad: 7c900000 7c9af000 ntdll.dll
ModLoad: 7c800000 7c8f6000 D:\WINDOWS\system32\kernel32.dll
ModLoad: 10200000 10323000 D:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\MSVCR90D.dll
ModLoad: 10480000 10557000 D:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\MSVCP90D.dll
(f68.17ac): Break instruction exception - code 80000003 (first chance)
eax=00251eb4 ebx=7ffd8000 ecx=00000005 edx=00000020 esi=00251f48 edi=00251eb4
eip=7c90120e esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ntdll.dll -
ntdll!DbgBreakPoint:
7c90120e cc int 3
*** WARNING: Unable to verify checksum for test2.exe
*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\MSVCR90D.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\MSVCP90D.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\WINDOWS\system32\kernel32.dll -
Debugger finished with status 0
The program is simply:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
3- choosing Microsoft Visual C++ 2005/2008, and cdb as debugger, build is OK, but debud --> Start gives:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: E:\my_data\prog\code blocks\test2\test2\
Adding source dir: E:\my_data\prog\code blocks\test2\test2\
Adding file: bin\Debug\test2.exe
Starting debugger:
done
Setting breakpoints
Hello world!
Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: bin/Debug/test2.exe
Symbol search path is: E:/my_data/prog/CODEBL~1/test2/test2/
Executable search path is:
ModLoad: 00400000 00409000 test2.exe
ModLoad: 7c900000 7c9af000 ntdll.dll
ModLoad: 7c800000 7c8f6000 D:\WINDOWS\system32\kernel32.dll
ModLoad: 10200000 10323000 D:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\MSVCR90D.dll
ModLoad: 10480000 10557000 D:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\MSVCP90D.dll
(f48.ea8): Break instruction exception - code 80000003 (first chance)
eax=00251eb4 ebx=7ffde000 ecx=00000005 edx=00000020 esi=00251f48 edi=00251eb4
eip=7c90120e esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ntdll.dll -
ntdll!DbgBreakPoint:
7c90120e cc int 3
*** WARNING: Unable to verify checksum for test2.exe
*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\MSVCR90D.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\MSVCP90D.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\WINDOWS\system32\kernel32.dll -
Debugger finished with status 0
Could you help?
thank you