[solved] debugging a vc project

General questions regarding the usage of CodeLite
ker
CodeLite Curious
Posts: 3
Joined: Mon Sep 03, 2012 1:12 pm
Genuine User: Yes
IDE Question: c++
Contact:

[solved] debugging a vc project

Post by ker »

I have created a vc project inside codelite.
the project compiles just fine with the debug settings (yes i am compiling in debug mode)
i have set breakpoints, but they are ignored (there is output in the console which is after the breakpoints)
my program crashes somewhere (backtrace shows no line within anywhere that says anything to me, only some kernel32 stuff)

now my questions:
is it even possible to use gdb to debug a project that was compiled with msvc?
if so, might msvc2012 be the issue? (i need it for rudimentary c++11, can't use mingw as i have precompiled (in msvc) static libraries i need to use)
if not, any ideas what i'm doing wrong?

Code: Select all

GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.

Code: Select all

Debug session ended
Using gdbinit file: C:\Users\WIN7VM\AppData\Local\Temp\codelite_gdbinit.txt
Current working dir: C:\Users\WIN7VM\Projects\lightshifters\sandbox_msvc
Launching gdb from : ../sandbox/bin
Starting debugger  : gdb --command="C:\Users\WIN7VM\AppData\Local\Temp\codelite_gdbinit.txt" --interpreter=mi "../../sandbox_msvc/Debug/sandbox_msvc.exe"
DEBUG>>set  new-console on
DEBUG>>set unwindonsignal on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print elements 200
Debug session started successfully!
DEBUG>>00000091-exec-arguments host=0 connectTo=10.0.2.2
DEBUG>>00000092-exec-run 
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (GDB) 7.4\n"
GNU gdb (GDB) 7.4
DEBUG>>~"Copyright (C) 2012 Free Software Foundation, Inc.\n"
Copyright (C) 2012 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"\nand "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i686-pc-mingw32\".\nFor bug reporting instructions, please see:\n"
This GDB was configured as "i686-pc-mingw32".\nFor bug reporting instructions, please see:
DEBUG>>~"<http://www.gnu.org/software/gdb/bugs/>...\n"
<http://www.gnu.org/software/gdb/bugs/>...
DEBUG>>~"Reading symbols from C:\\Users\\WIN7VM\\Projects\\lightshifters\\sandbox_msvc\\Debug\\sandbox_msvc.exe..."
Reading symbols from C:\Users\WIN7VM\Projects\lightshifters\sandbox_msvc\Debug\sandbox_msvc.exe...
DEBUG>>~"(no debugging symbols found)...done.\n"
(no debugging symbols found)...done.
DEBUG>>&"set  new-console on\n"
DEBUG>>^done
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>^done
DEBUG>>&"set width 0\n"
DEBUG>>^done
DEBUG>>&"set height 0\n"
DEBUG>>^done
DEBUG>>&"set print elements 200\n"
DEBUG>>^done
DEBUG>>00000091^done
>> Debuggee process ID: 1128
DEBUG>>=thread-group-started,id="i1",pid="1128"
=thread-group-started,id="i1",pid="1128"
DEBUG>>=thread-created,id="1",group-id="i1"
=thread-created,id="1",group-id="i1"
DEBUG>>~"[New Thread 1128.0x214]\n"
[New Thread 1128.0x214]
DEBUG>>00000092^running
Continuing...
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\ntdll.dll",target-name="C:\\Windows\\system32\\ntdll.dll",host-name="C:\\Windows\\system32\\ntdll.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\ntdll.dll",target-name="C:\\Windows\\system32\\ntdll.dll",host-name="C:\\Windows\\system32\\ntdll.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\kernel32.dll",target-name="C:\\Windows\\system32\\kernel32.dll",host-name="C:\\Windows\\system32\\kernel32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\kernel32.dll",target-name="C:\\Windows\\system32\\kernel32.dll",host-name="C:\\Windows\\system32\\kernel32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\KernelBase.dll",target-name="C:\\Windows\\system32\\KernelBase.dll",host-name="C:\\Windows\\system32\\KernelBase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\KernelBase.dll",target-name="C:\\Windows\\system32\\KernelBase.dll",host-name="C:\\Windows\\system32\\KernelBase.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\ws2_32.dll",target-name="C:\\Windows\\system32\\ws2_32.dll",host-name="C:\\Windows\\system32\\ws2_32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\ws2_32.dll",target-name="C:\\Windows\\system32\\ws2_32.dll",host-name="C:\\Windows\\system32\\ws2_32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\msvcrt.dll",target-name="C:\\Windows\\system32\\msvcrt.dll",host-name="C:\\Windows\\system32\\msvcrt.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\msvcrt.dll",target-name="C:\\Windows\\system32\\msvcrt.dll",host-name="C:\\Windows\\system32\\msvcrt.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\rpcrt4.dll",target-name="C:\\Windows\\system32\\rpcrt4.dll",host-name="C:\\Windows\\system32\\rpcrt4.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\rpcrt4.dll",target-name="C:\\Windows\\system32\\rpcrt4.dll",host-name="C:\\Windows\\system32\\rpcrt4.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\nsi.dll",target-name="C:\\Windows\\system32\\nsi.dll",host-name="C:\\Windows\\system32\\nsi.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\nsi.dll",target-name="C:\\Windows\\system32\\nsi.dll",host-name="C:\\Windows\\system32\\nsi.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\opengl32.dll",target-name="C:\\Windows\\system32\\opengl32.dll",host-name="C:\\Windows\\system32\\opengl32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\opengl32.dll",target-name="C:\\Windows\\system32\\opengl32.dll",host-name="C:\\Windows\\system32\\opengl32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\advapi32.dll",target-name="C:\\Windows\\system32\\advapi32.dll",host-name="C:\\Windows\\system32\\advapi32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\advapi32.dll",target-name="C:\\Windows\\system32\\advapi32.dll",host-name="C:\\Windows\\system32\\advapi32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\SYSTEM32\\sechost.dll",target-name="C:\\Windows\\SYSTEM32\\sechost.dll",host-name="C:\\Windows\\SYSTEM32\\sechost.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\SYSTEM32\\sechost.dll",target-name="C:\\Windows\\SYSTEM32\\sechost.dll",host-name="C:\\Windows\\SYSTEM32\\sechost.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\gdi32.dll",target-name="C:\\Windows\\system32\\gdi32.dll",host-name="C:\\Windows\\system32\\gdi32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\gdi32.dll",target-name="C:\\Windows\\system32\\gdi32.dll",host-name="C:\\Windows\\system32\\gdi32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\user32.dll",target-name="C:\\Windows\\system32\\user32.dll",host-name="C:\\Windows\\system32\\user32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\user32.dll",target-name="C:\\Windows\\system32\\user32.dll",host-name="C:\\Windows\\system32\\user32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\lpk.dll",target-name="C:\\Windows\\system32\\lpk.dll",host-name="C:\\Windows\\system32\\lpk.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\lpk.dll",target-name="C:\\Windows\\system32\\lpk.dll",host-name="C:\\Windows\\system32\\lpk.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\usp10.dll",target-name="C:\\Windows\\system32\\usp10.dll",host-name="C:\\Windows\\system32\\usp10.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\usp10.dll",target-name="C:\\Windows\\system32\\usp10.dll",host-name="C:\\Windows\\system32\\usp10.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\glu32.dll",target-name="C:\\Windows\\system32\\glu32.dll",host-name="C:\\Windows\\system32\\glu32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\glu32.dll",target-name="C:\\Windows\\system32\\glu32.dll",host-name="C:\\Windows\\system32\\glu32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\ddraw.dll",target-name="C:\\Windows\\system32\\ddraw.dll",host-name="C:\\Windows\\system32\\ddraw.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\ddraw.dll",target-name="C:\\Windows\\system32\\ddraw.dll",host-name="C:\\Windows\\system32\\ddraw.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\dciman32.dll",target-name="C:\\Windows\\system32\\dciman32.dll",host-name="C:\\Windows\\system32\\dciman32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\dciman32.dll",target-name="C:\\Windows\\system32\\dciman32.dll",host-name="C:\\Windows\\system32\\dciman32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\setupapi.dll",target-name="C:\\Windows\\system32\\setupapi.dll",host-name="C:\\Windows\\system32\\setupapi.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\setupapi.dll",target-name="C:\\Windows\\system32\\setupapi.dll",host-name="C:\\Windows\\system32\\setupapi.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\cfgmgr32.dll",target-name="C:\\Windows\\system32\\cfgmgr32.dll",host-name="C:\\Windows\\system32\\cfgmgr32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\cfgmgr32.dll",target-name="C:\\Windows\\system32\\cfgmgr32.dll",host-name="C:\\Windows\\system32\\cfgmgr32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\oleaut32.dll",target-name="C:\\Windows\\system32\\oleaut32.dll",host-name="C:\\Windows\\system32\\oleaut32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\oleaut32.dll",target-name="C:\\Windows\\system32\\oleaut32.dll",host-name="C:\\Windows\\system32\\oleaut32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\ole32.dll",target-name="C:\\Windows\\system32\\ole32.dll",host-name="C:\\Windows\\system32\\ole32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\ole32.dll",target-name="C:\\Windows\\system32\\ole32.dll",host-name="C:\\Windows\\system32\\ole32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\devobj.dll",target-name="C:\\Windows\\system32\\devobj.dll",host-name="C:\\Windows\\system32\\devobj.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\devobj.dll",target-name="C:\\Windows\\system32\\devobj.dll",host-name="C:\\Windows\\system32\\devobj.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\dwmapi.dll",target-name="C:\\Windows\\system32\\dwmapi.dll",host-name="C:\\Windows\\system32\\dwmapi.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\dwmapi.dll",target-name="C:\\Windows\\system32\\dwmapi.dll",host-name="C:\\Windows\\system32\\dwmapi.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\dinput8.dll",target-name="C:\\Windows\\system32\\dinput8.dll",host-name="C:\\Windows\\system32\\dinput8.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\dinput8.dll",target-name="C:\\Windows\\system32\\dinput8.dll",host-name="C:\\Windows\\system32\\dinput8.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\winmm.dll",target-name="C:\\Windows\\system32\\winmm.dll",host-name="C:\\Windows\\system32\\winmm.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\winmm.dll",target-name="C:\\Windows\\system32\\winmm.dll",host-name="C:\\Windows\\system32\\winmm.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Users\\WIN7VM\\Projects\\lightshifters\\sandbox\\bin\\OpenAL32.dll",target-name="C:\\Users\\WIN7VM\\Projects\\lightshifters\\sandbox\\bin\\OpenAL32.dll",host-name="C:\\Users\\WIN7VM\\Projects\\lightshifters\\sandbox\\bin\\OpenAL32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Users\\WIN7VM\\Projects\\lightshifters\\sandbox\\bin\\OpenAL32.dll",target-name="C:\\Users\\WIN7VM\\Projects\\lightshifters\\sandbox\\bin\\OpenAL32.dll",host-name="C:\\Users\\WIN7VM\\Projects\\lightshifters\\sandbox\\bin\\OpenAL32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\shell32.dll",target-name="C:\\Windows\\system32\\shell32.dll",host-name="C:\\Windows\\system32\\shell32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\shell32.dll",target-name="C:\\Windows\\system32\\shell32.dll",host-name="C:\\Windows\\system32\\shell32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\shlwapi.dll",target-name="C:\\Windows\\system32\\shlwapi.dll",host-name="C:\\Windows\\system32\\shlwapi.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\shlwapi.dll",target-name="C:\\Windows\\system32\\shlwapi.dll",host-name="C:\\Windows\\system32\\shlwapi.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\WinSxS\\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.17007_none_72f44f3186198a88\\GdiPlus.dll",target-name="C:\\Windows\\WinSxS\\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.17007_none_72f44f3186198a88\\GdiPlus.dll",host-name="C:\\Windows\\WinSxS\\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.17007_none_72f44f3186198a88\\GdiPlus.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\WinSxS\\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.17007_none_72f44f3186198a88\\GdiPlus.dll",target-name="C:\\Windows\\WinSxS\\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.17007_none_72f44f3186198a88\\GdiPlus.dll",host-name="C:\\Windows\\WinSxS\\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.17007_none_72f44f3186198a88\\GdiPlus.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\imm32.dll",target-name="C:\\Windows\\system32\\imm32.dll",host-name="C:\\Windows\\system32\\imm32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\imm32.dll",target-name="C:\\Windows\\system32\\imm32.dll",host-name="C:\\Windows\\system32\\imm32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\msctf.dll",target-name="C:\\Windows\\system32\\msctf.dll",host-name="C:\\Windows\\system32\\msctf.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\msctf.dll",target-name="C:\\Windows\\system32\\msctf.dll",host-name="C:\\Windows\\system32\\msctf.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\uxtheme.dll",target-name="C:\\Windows\\system32\\uxtheme.dll",host-name="C:\\Windows\\system32\\uxtheme.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\uxtheme.dll",target-name="C:\\Windows\\system32\\uxtheme.dll",host-name="C:\\Windows\\system32\\uxtheme.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\VBoxOGL.dll",target-name="C:\\Windows\\system32\\VBoxOGL.dll",host-name="C:\\Windows\\system32\\VBoxOGL.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\VBoxOGL.dll",target-name="C:\\Windows\\system32\\VBoxOGL.dll",host-name="C:\\Windows\\system32\\VBoxOGL.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\VBoxOGLcrutil.dll",target-name="C:\\Windows\\system32\\VBoxOGLcrutil.dll",host-name="C:\\Windows\\system32\\VBoxOGLcrutil.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\VBoxOGLcrutil.dll",target-name="C:\\Windows\\system32\\VBoxOGLcrutil.dll",host-name="C:\\Windows\\system32\\VBoxOGLcrutil.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-unloaded,id="C:\\Windows\\system32\\VBoxOGL.dll",target-name="C:\\Windows\\system32\\VBoxOGL.dll",host-name="C:\\Windows\\system32\\VBoxOGL.dll",thread-group="i1"
=library-unloaded,id="C:\\Windows\\system32\\VBoxOGL.dll",target-name="C:\\Windows\\system32\\VBoxOGL.dll",host-name="C:\\Windows\\system32\\VBoxOGL.dll",thread-group="i1"
DEBUG>>=library-unloaded,id="C:\\Windows\\system32\\VBoxOGLcrutil.dll",target-name="C:\\Windows\\system32\\VBoxOGLcrutil.dll",host-name="C:\\Windows\\system32\\VBoxOGLcrutil.dll",thread-group="i1"
=library-unloaded,id="C:\\Windows\\system32\\VBoxOGLcrutil.dll",target-name="C:\\Windows\\system32\\VBoxOGLcrutil.dll",host-name="C:\\Windows\\system32\\VBoxOGLcrutil.dll",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\hid.dll",target-name="C:\\Windows\\system32\\hid.dll",host-name="C:\\Windows\\system32\\hid.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\hid.dll",target-name="C:\\Windows\\system32\\hid.dll",host-name="C:\\Windows\\system32\\hid.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\wintrust.dll",target-name="C:\\Windows\\system32\\wintrust.dll",host-name="C:\\Windows\\system32\\wintrust.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\wintrust.dll",target-name="C:\\Windows\\system32\\wintrust.dll",host-name="C:\\Windows\\system32\\wintrust.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\crypt32.dll",target-name="C:\\Windows\\system32\\crypt32.dll",host-name="C:\\Windows\\system32\\crypt32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\crypt32.dll",target-name="C:\\Windows\\system32\\crypt32.dll",host-name="C:\\Windows\\system32\\crypt32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\msasn1.dll",target-name="C:\\Windows\\system32\\msasn1.dll",host-name="C:\\Windows\\system32\\msasn1.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\msasn1.dll",target-name="C:\\Windows\\system32\\msasn1.dll",host-name="C:\\Windows\\system32\\msasn1.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\mswsock.dll",target-name="C:\\Windows\\system32\\mswsock.dll",host-name="C:\\Windows\\system32\\mswsock.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\mswsock.dll",target-name="C:\\Windows\\system32\\mswsock.dll",host-name="C:\\Windows\\system32\\mswsock.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\System32\\WSHTCPIP.DLL",target-name="C:\\Windows\\System32\\WSHTCPIP.DLL",host-name="C:\\Windows\\System32\\WSHTCPIP.DLL",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\System32\\WSHTCPIP.DLL",target-name="C:\\Windows\\System32\\WSHTCPIP.DLL",host-name="C:\\Windows\\System32\\WSHTCPIP.DLL",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Windows\\system32\\cryptbase.dll",target-name="C:\\Windows\\system32\\cryptbase.dll",host-name="C:\\Windows\\system32\\cryptbase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\system32\\cryptbase.dll",target-name="C:\\Windows\\system32\\cryptbase.dll",host-name="C:\\Windows\\system32\\cryptbase.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>*stopped,reason="signal-received",signal-name="SIGSEGV",signal-meaning="Segmentation fault",frame={addr="0x001af8b7",func="??",args=[]},thread-id="1",stopped-threads="all"
Program Received signal SIGSEGV
DEBUG>>00000093-stack-list-frames
DEBUG>>00000094-file-list-exec-source-file
DEBUG>>00000095-break-list
DEBUG>>00000093^done,stack=[frame={level="0",addr="0x001af8b7",func="??"},frame={level="1",addr="0x001d2768",func="??"},frame={level="2",addr="0x001d359b",func="??"},frame={level="3",addr="0x0016e1eb",func="??"},frame={level="4",addr="0x001ac6e9",func="??"},frame={level="5",addr="0x001e728a",func="??"},frame={level="6",addr="0x001e7894",func="??"},frame={level="7",addr="0x76f186ef",func="USER32!IsWindowVisible",from="C:\\Windows\\system32\\user32.dll"},frame={level="8",addr="0x000c05a6",func="??"},frame={level="9",addr="0x0000000f",func="??"},frame={level="10",addr="0x00000000",func="??"}]
DEBUG>>00000094^done,line="1",file="/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.5.3-r2/work/gcc-4.5.3/libgcc/../gcc/libgcc2.c",macro-info="0"
DEBUG>>00000096-stack-list-frames
DEBUG>>00000095^done,BreakpointTable={nr_rows="0",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[]}
DEBUG>>00000096^done,stack=[frame={level="0",addr="0x001af8b7",func="??"},frame={level="1",addr="0x001d2768",func="??"},frame={level="2",addr="0x001d359b",func="??"},frame={level="3",addr="0x0016e1eb",func="??"},frame={level="4",addr="0x001ac6e9",func="??"},frame={level="5",addr="0x001e728a",func="??"},frame={level="6",addr="0x001e7894",func="??"},frame={level="7",addr="0x76f186ef",func="USER32!IsWindowVisible",from="C:\\Windows\\system32\\user32.dll"},frame={level="8",addr="0x000c05a6",func="??"},frame={level="9",addr="0x0000000f",func="??"},frame={level="10",addr="0x00000000",func="??"}]
dll,symbols-loaded=gdiplus_6595b64144ccf1df_1What
Last edited by ker on Mon Sep 03, 2012 4:30 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: debugging a vc project

Post by eranif »

ker wrote:is it even possible to use gdb to debug a project that was compiled with msvc?
No.

codelite does not support debugging VC projects

You will have to debug it from within VS, what I usually do is adding an external tool (using the external tools plugin) which launches visual studio for me whenever I need it (I rarely use VC, but I does, this is how I do it)
Eran
Make sure you have read the HOW TO POST thread
ker
CodeLite Curious
Posts: 3
Joined: Mon Sep 03, 2012 1:12 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: [solved] debugging a vc project

Post by ker »

thanks, i was afraid of that ^^
i'll check out the external tools plugin.
SlimFast
CodeLite Enthusiast
Posts: 43
Joined: Fri Jun 17, 2011 9:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: [solved] debugging a vc project

Post by SlimFast »

ker wrote:thanks, i was afraid of that ^^
I noticed that, too. Code::Blocks did - do you (Eran) have plans to support CDB in CodeLite, too? (Would be nice!)
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [solved] debugging a vc project

Post by eranif »

SlimFast wrote: do you (Eran) have plans to support CDB in CodeLite, too?
Not atm.
I dont even have VS installed at home...

Patches are welcome though ;)

Eran
Make sure you have read the HOW TO POST thread
Modem Man
CodeLite Enthusiast
Posts: 28
Joined: Tue Sep 11, 2012 11:50 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: debugging a vc project

Post by Modem Man »

eranif wrote:
ker wrote:is it even possible to use gdb to debug a project that was compiled with msvc?
No.

codelite does not support debugging VC projects
of course It does! (EDIT: Sometimes, see below)
And it is surprisingly working pretty well in combination VC compiler + GDB Debugger.
So this topic is super solved now!


I'm using v4.1.5770 on Win7U/64 and have also VS2008 installed.
The only tricks I did are:

1) "Create New Project | Simple Executeable (MSVC)" to my existing, gcc project containing workspace (but it may not need an existing gcc project)
2) under "Settings | Build Settings | Compilers | VC++ | Tools | PATH environment Variable" I added:
d:\c\MSVS2008\VC\bin;d:\c\MSVS2008\Common7\IDE;$(PATH)
which tells where I in my personal setup have installed VS2008
AND makes envvar32.bat superflous, so i can double click any *.workspace file
3) under "Settings | Build Settings | Compilers | VC++ | Advanced | Include Path" I added:
"d:\c\MSVS2008\SDK\v6.0A\Include";"d:/c/MSVS2008/VC/include";.
where "v6.0a" is a NTFS symlink to "c:\Program Files\Microsoft SDKs\Windows\v6.0A\"
4) under "Settings | Build Settings | Compilers | VC++ | Advanced | Libraries Path" I added:
"d:\c\MSVS2008\SDK\v6.0A\lib";"d:/c/MSVS2008/VC/lib"
where "v6.0a" is, as said above, a NTFS symlink
5) under "Settings | Debugger Settings | GNU gdb debugger | general" I set
[x] pending breakpoint
[x] Apply breakpoints after main (see other post when this may disturb)
[x] Automatically set breakpoint at main

6) Set my MSVC sub project to "Set As Active"
7) Rebuild
8) F5
9) F10, F10, F11-SHFT-F11, and so on.

Some of the above may also work with default settings of MS Studio, but I never tried it, ever using the D:/c/<shortname> way

Works for me! (EDIT: Sometimes, see next statement)

EDIT:
I can't reproduce it with 2 days newer workspace. On Sunday it worked, then I changed somewhat. Now it is not able to debug with gdb. The main difference might be araound manifest (xml). Thats what I added to my test app.
If I figure it out, I'll keep you updated here...
Modem Man
CodeLite Enthusiast
Posts: 28
Joined: Tue Sep 11, 2012 11:50 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: debugging a vc project

Post by Modem Man »

of course It does! (EDIT: Sometimes, see below)
And it is surprisingly working pretty well in combination VC compiler + GDB Debugger.
So this topic is super solved now!

Works for me! (EDIT: Sometimes, see next statement)

EDIT:
I can't reproduce it with 2 days newer workspace. On Sunday it worked, then I changed somewhat. Now it is not able to debug with gdb. The main difference might be araound manifest (xml). Thats what I added to my test app.
If I figure it out, I'll keep you updated here...[/quote]


Forget it. I had a workspace with 2 times the same project. One was gcc, the other was msvc. The debugging worked, while the gcc binary was also rebuild. So I assume, the source level debugging was taking place under gcc/gdb instead of msvc/gdb.

Sorry for confusion...
Post Reply