User forums > Help
Trouble Importing & compiling vc7 project
MortenMacFly:
--- Quote from: rossa on September 05, 2006, 10:41:05 am ---Ok I found the "Additional Directories" for the debugger. But I still dont seem to be able to set break points and have it stop.
--- End quote ---
If you want to debug programs compiled with the MS Visual (whatever) compiler suite you should better user cdb (the free MS command line debugger that ships with the MS debugging tools) instead of gdb. I'm not sure if I really get right what you are doing: You want to use the MS visual compiler suite with C::B, right? If not - and you try to port a MS visual application to MinGW (gcc) forget about this and use gdb.
With regards, Morten.
Ps.: mandrav: Is it possible at all to debug VC applications with gdb? I'd say no...?!
mandrav:
--- Quote ---Ps.: mandrav: Is it possible at all to debug VC applications with gdb? I'd say no...?!
--- End quote ---
No.
The debug log will reveal all that and more...
MortenMacFly:
--- Quote from: mandrav on September 05, 2006, 12:11:29 pm ---
--- Quote ---Ps.: mandrav: Is it possible at all to debug VC applications with gdb? I'd say no...?!
--- End quote ---
No.
--- End quote ---
Ok. I was wondering because your previous answer could have been interpreted in this way...
rossa:
Ok heres the debug log using cdb (NB: compiling a different project but still no break at break point)
Command-line: C:\Program Files\Debugging Tools for Windows\cdb.exe -G -lines -y C:/PROGRA~1/CODEBL~1/Projetcs/test10/test1/; -srcpath C:/PROGRA~1/CODEBL~1/Projetcs/test10/test1/; ./test1.exe
Working dir : C:\Program Files\CodeBlocks\Projetcs\test10\test1\
> bc *
Microsoft (R) Windows Debugger Version 6.6.0007.5
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: ./test1.exe
Symbol search path is: C:/PROGRA~1/CODEBL~1/Projetcs/test10/test1/
Executable search path is:
ModLoad: 00400000 0041c000 image00400000
ModLoad: 7c900000 7c9b0000 ntdll.dll
ModLoad: 7c800000 7c8f4000 C:\WINDOWS\system32\kernel32.dll
(a34.2c8): Break instruction exception - code 80000003 (first chance)
eax=00241eb4 ebx=7ffd8000 ecx=00000000 edx=00000001 esi=00241f48 edi=00241eb4
eip=7c901230 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:
7c901230 cc int 3
0:000> 0:000>
> bu1 `C:/PROGRA~1/CODEBL~1/Projetcs/test10/test1/main.cpp:6`
*** WARNING: Unable to verify checksum for image00400000
*** ERROR: Module load completed but symbols could not be loaded for image00400000
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\system32\kernel32.dll -
0:000>
> l+t
Source options are 1:
1/t - Step/trace by source line
0:000>
> l+s
Source options are 5:
1/t - Step/trace by source line
4/s - List source code at prompt
0:000>
> l+o
Source options are d:
1/t - Step/trace by source line
4/s - List source code at prompt
8/o - Only show source code at prompt
0:000>
> g
Hello world!
mandrav:
--- Quote ---*** ERROR: Module load completed but symbols could not be loaded for image00400000
--- End quote ---
Are you sure you have compiled your project with debug symbols?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version