Page 1 of 2

Breakpoints not firing on Windows 10

Posted: Thu Dec 17, 2015 4:13 pm
by iwbnwif
This is my environment:

Codelite 9.0.0
Windows 10
MinGW (i686-posix-dwarf-rev0, Build by MinGW-W64 project) 5.2.0
GDB 7.6.1

If I run the application in the debugger (using the "Start / Continue Debugger" toolbar button) with no breakpoints set, and later set a breakpoint then it is ignored (i.e. the program keeps running through the breakpoint).

If I then restart the program the breakpoint fires correctly and execution halts. Adding subsequent breakpoints after the first breakpoint has been hit seems to work okay.

The only other information that I can think to add is that the breakpoint I am setting is in a DLL (written by me) and linked into the application I am trying to debug.

This works absolutely fine on Linux.

I am lost where to start trying to find this problem, nothing in the Debug Output pane gives any clues, the breakpoint is being set correctly and there are no errors.

Re: Breakpoints not firing on Windows 10

Posted: Thu Dec 17, 2015 4:25 pm
by eranif
As usual with debugger issues, please post the entire debugger log (see my signature for more info)

Eran

Re: Breakpoints not firing on Windows 10

Posted: Thu Dec 17, 2015 4:43 pm
by iwbnwif
Sorry for missing that, here it is now.

Code: Select all

Using gdbinit file: C:\Users\IWBNWIF\AppData\Local\Temp\codelite_gdbinit.txt
Current working dir: C:\Users\iwbnwif\Development\general_tests\basic_app
Launching gdb from : ./Debug
Starting debugger  : C:/MinGW/bin/gdb.exe --command="C:\Users\IWBNWIF\AppData\Local\Temp\codelite_gdbinit.txt" --interpreter=mi "./basic_app"
DEBUG>>set  new-console on
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print elements 200
DEBUG>>python
DEBUG>>import sys
DEBUG>>sys.path.insert(0, 'C:\Users\iwbnwif\AppData\Roaming\codelite\gdb_printers')
DEBUG>>from libstdcxx.v6.printers import register_libstdcxx_printers
DEBUG>>register_libstdcxx_printers (None)
DEBUG>>from qt4 import register_qt4_printers
DEBUG>>register_qt4_printers (None)
DEBUG>>from wx import register_wx_printers
DEBUG>>register_wx_printers (None)
DEBUG>>from boost.printers import register_printer_gen
DEBUG>>register_printer_gen(None)
DEBUG>>end
DEBUG>>00000060-enable-pretty-printing
Debug session started successfully!
DEBUG>>00000061-exec-arguments 
DEBUG>>00000062-exec-run 
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (GDB) 7.6.1\n"
GNU gdb (GDB) 7.6.1
DEBUG>>~"Copyright (C) 2013 Free Software Foundation, Inc.\n"
Copyright (C) 2013 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 \"mingw32\".\nFor bug reporting instructions, please see:\n"
This GDB was configured as "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\\iwbnwif\\Development\\general_tests\\basic_app\\Debug\\basic_app.exe..."
Reading symbols from C:\Users\iwbnwif\Development\general_tests\basic_app\Debug\basic_app.exe...
DEBUG>>~"done.\n"
done.
DEBUG>>&"C:\\Users\\IWBNWIF\\AppData\\Local\\Temp\\codelite_gdbinit.txt:17: Error in sourced command file:\n"
DEBUG>>&"Python scripting is not supported in this copy of GDB.\n"
DEBUG>>&"set  new-console on\n"
DEBUG>>=cmd-param-changed,param="new-console",value="on"
=cmd-param-changed,param="new-console",value="on"
DEBUG>>^done
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>=cmd-param-changed,param="unwindonsignal",value="on"
=cmd-param-changed,param="unwindonsignal",value="on"
DEBUG>>^done
DEBUG>>&"set breakpoint pending on\n"
DEBUG>>=cmd-param-changed,param="breakpoint pending",value="on"
=cmd-param-changed,param="breakpoint pending",value="on"
DEBUG>>^done
DEBUG>>&"set width 0\n"
DEBUG>>=cmd-param-changed,param="width",value="4294967295"
=cmd-param-changed,param="width",value="4294967295"
DEBUG>>^done
DEBUG>>&"set height 0\n"
DEBUG>>^done
DEBUG>>&"set print elements 200\n"
DEBUG>>^done
DEBUG>>&"python\n"
DEBUG>>&"Python scripting is not supported in this copy of GDB.\n"
DEBUG>>^error,msg="Python scripting is not supported in this copy of GDB."
^error,msg="Python scripting is not supported in this copy of GDB."
DEBUG>>00000060^done
DEBUG>>=cmd-param-changed,param="args",value=""
=cmd-param-changed,param="args",value=""
DEBUG>>00000061^done
>> Debuggee process ID: 8216
DEBUG>>=thread-group-started,id="i1",pid="8216"
=thread-group-started,id="i1",pid="8216"
DEBUG>>=thread-created,id="1",group-id="i1"
=thread-created,id="1",group-id="i1"
DEBUG>>~"[New Thread 8216.0x2148]\n"
[New Thread 8216.0x2148]
DEBUG>>00000062^running
Continuing...
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=thread-created,id="2",group-id="i1"
=thread-created,id="2",group-id="i1"
DEBUG>>~"[New Thread 8216.0x6bc]\n"
[New Thread 8216.0x6bc]
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=thread-created,id="3",group-id="i1"
=thread-created,id="3",group-id="i1"
DEBUG>>~"[New Thread 8216.0x3630]\n"
[New Thread 8216.0x3630]
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=thread-created,id="4",group-id="i1"
=thread-created,id="4",group-id="i1"
DEBUG>>~"[New Thread 8216.0x2d38]\n"
[New Thread 8216.0x2d38]
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\kernel32.dll",target-name="C:\\WINDOWS\\SysWOW64\\kernel32.dll",host-name="C:\\WINDOWS\\SysWOW64\\kernel32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\kernel32.dll",target-name="C:\\WINDOWS\\SysWOW64\\kernel32.dll",host-name="C:\\WINDOWS\\SysWOW64\\kernel32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\KernelBase.dll",target-name="C:\\WINDOWS\\SysWOW64\\KernelBase.dll",host-name="C:\\WINDOWS\\SysWOW64\\KernelBase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\KernelBase.dll",target-name="C:\\WINDOWS\\SysWOW64\\KernelBase.dll",host-name="C:\\WINDOWS\\SysWOW64\\KernelBase.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\msvcrt.dll",target-name="C:\\WINDOWS\\SysWOW64\\msvcrt.dll",host-name="C:\\WINDOWS\\SysWOW64\\msvcrt.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\msvcrt.dll",target-name="C:\\WINDOWS\\SysWOW64\\msvcrt.dll",host-name="C:\\WINDOWS\\SysWOW64\\msvcrt.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libgcc_s_dw2-1.dll",target-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libgcc_s_dw2-1.dll",host-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libgcc_s_dw2-1.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libgcc_s_dw2-1.dll",target-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libgcc_s_dw2-1.dll",host-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libgcc_s_dw2-1.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libstdc++-6.dll",target-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libstdc++-6.dll",host-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libstdc++-6.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libstdc++-6.dll",target-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libstdc++-6.dll",host-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libstdc++-6.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\user32.dll",target-name="C:\\WINDOWS\\SysWOW64\\user32.dll",host-name="C:\\WINDOWS\\SysWOW64\\user32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\user32.dll",target-name="C:\\WINDOWS\\SysWOW64\\user32.dll",host-name="C:\\WINDOWS\\SysWOW64\\user32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\gdi32.dll",target-name="C:\\WINDOWS\\SysWOW64\\gdi32.dll",host-name="C:\\WINDOWS\\SysWOW64\\gdi32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\gdi32.dll",target-name="C:\\WINDOWS\\SysWOW64\\gdi32.dll",host-name="C:\\WINDOWS\\SysWOW64\\gdi32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_adv_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_adv_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_adv_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_adv_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_adv_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_adv_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\shell32.dll",target-name="C:\\WINDOWS\\SysWOW64\\shell32.dll",host-name="C:\\WINDOWS\\SysWOW64\\shell32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\shell32.dll",target-name="C:\\WINDOWS\\SysWOW64\\shell32.dll",host-name="C:\\WINDOWS\\SysWOW64\\shell32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_xrc_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_xrc_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_xrc_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_xrc_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_xrc_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_xrc_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\advapi32.dll",target-name="C:\\WINDOWS\\SysWOW64\\advapi32.dll",host-name="C:\\WINDOWS\\SysWOW64\\advapi32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\advapi32.dll",target-name="C:\\WINDOWS\\SysWOW64\\advapi32.dll",host-name="C:\\WINDOWS\\SysWOW64\\advapi32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\windows.storage.dll",target-name="C:\\WINDOWS\\SysWOW64\\windows.storage.dll",host-name="C:\\WINDOWS\\SysWOW64\\windows.storage.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\windows.storage.dll",target-name="C:\\WINDOWS\\SysWOW64\\windows.storage.dll",host-name="C:\\WINDOWS\\SysWOW64\\windows.storage.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\sechost.dll",target-name="C:\\WINDOWS\\SysWOW64\\sechost.dll",host-name="C:\\WINDOWS\\SysWOW64\\sechost.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\sechost.dll",target-name="C:\\WINDOWS\\SysWOW64\\sechost.dll",host-name="C:\\WINDOWS\\SysWOW64\\sechost.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\combase.dll",target-name="C:\\WINDOWS\\SysWOW64\\combase.dll",host-name="C:\\WINDOWS\\SysWOW64\\combase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\combase.dll",target-name="C:\\WINDOWS\\SysWOW64\\combase.dll",host-name="C:\\WINDOWS\\SysWOW64\\combase.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\rpcrt4.dll",target-name="C:\\WINDOWS\\SysWOW64\\rpcrt4.dll",host-name="C:\\WINDOWS\\SysWOW64\\rpcrt4.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\rpcrt4.dll",target-name="C:\\WINDOWS\\SysWOW64\\rpcrt4.dll",host-name="C:\\WINDOWS\\SysWOW64\\rpcrt4.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_core_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_core_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_core_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_core_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_core_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_core_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\sspicli.dll",target-name="C:\\WINDOWS\\SysWOW64\\sspicli.dll",host-name="C:\\WINDOWS\\SysWOW64\\sspicli.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\sspicli.dll",target-name="C:\\WINDOWS\\SysWOW64\\sspicli.dll",host-name="C:\\WINDOWS\\SysWOW64\\sspicli.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\shlwapi.dll",target-name="C:\\WINDOWS\\SysWOW64\\shlwapi.dll",host-name="C:\\WINDOWS\\SysWOW64\\shlwapi.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\shlwapi.dll",target-name="C:\\WINDOWS\\SysWOW64\\shlwapi.dll",host-name="C:\\WINDOWS\\SysWOW64\\shlwapi.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\cryptbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\cryptbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\cryptbase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\cryptbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\cryptbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\cryptbase.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\bcryptprimitives.dll",target-name="C:\\WINDOWS\\SysWOW64\\bcryptprimitives.dll",host-name="C:\\WINDOWS\\SysWOW64\\bcryptprimitives.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\bcryptprimitives.dll",target-name="C:\\WINDOWS\\SysWOW64\\bcryptprimitives.dll",host-name="C:\\WINDOWS\\SysWOW64\\bcryptprimitives.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\kernel.appcore.dll",target-name="C:\\WINDOWS\\SysWOW64\\kernel.appcore.dll",host-name="C:\\WINDOWS\\SysWOW64\\kernel.appcore.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\kernel.appcore.dll",target-name="C:\\WINDOWS\\SysWOW64\\kernel.appcore.dll",host-name="C:\\WINDOWS\\SysWOW64\\kernel.appcore.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\SHCore.dll",target-name="C:\\WINDOWS\\SysWOW64\\SHCore.dll",host-name="C:\\WINDOWS\\SysWOW64\\SHCore.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\SHCore.dll",target-name="C:\\WINDOWS\\SysWOW64\\SHCore.dll",host-name="C:\\WINDOWS\\SysWOW64\\SHCore.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\ole32.dll",target-name="C:\\WINDOWS\\SysWOW64\\ole32.dll",host-name="C:\\WINDOWS\\SysWOW64\\ole32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\ole32.dll",target-name="C:\\WINDOWS\\SysWOW64\\ole32.dll",host-name="C:\\WINDOWS\\SysWOW64\\ole32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\comdlg32.dll",target-name="C:\\WINDOWS\\SysWOW64\\comdlg32.dll",host-name="C:\\WINDOWS\\SysWOW64\\comdlg32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\comdlg32.dll",target-name="C:\\WINDOWS\\SysWOW64\\comdlg32.dll",host-name="C:\\WINDOWS\\SysWOW64\\comdlg32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\powrprof.dll",target-name="C:\\WINDOWS\\SysWOW64\\powrprof.dll",host-name="C:\\WINDOWS\\SysWOW64\\powrprof.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\powrprof.dll",target-name="C:\\WINDOWS\\SysWOW64\\powrprof.dll",host-name="C:\\WINDOWS\\SysWOW64\\powrprof.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\oleaut32.dll",target-name="C:\\WINDOWS\\SysWOW64\\oleaut32.dll",host-name="C:\\WINDOWS\\SysWOW64\\oleaut32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\oleaut32.dll",target-name="C:\\WINDOWS\\SysWOW64\\oleaut32.dll",host-name="C:\\WINDOWS\\SysWOW64\\oleaut32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\profapi.dll",target-name="C:\\WINDOWS\\SysWOW64\\profapi.dll",host-name="C:\\WINDOWS\\SysWOW64\\profapi.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\profapi.dll",target-name="C:\\WINDOWS\\SysWOW64\\profapi.dll",host-name="C:\\WINDOWS\\SysWOW64\\profapi.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libwinpthread-1.dll",target-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libwinpthread-1.dll",host-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libwinpthread-1.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libwinpthread-1.dll",target-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libwinpthread-1.dll",host-name="C:\\Program Files (x86)\\mingw-w64\\i686-5.2.0-posix-dwarf-rt_v4-rev0\\mingw32\\bin\\libwinpthread-1.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_xml_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_xml_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_xml_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_xml_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_xml_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxbase310ud_xml_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\WinSxS\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb1ff6bcd1849\\comctl32.dll",target-name="C:\\WINDOWS\\WinSxS\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb1ff6bcd1849\\comctl32.dll",host-name="C:\\WINDOWS\\WinSxS\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb1ff6bcd1849\\comctl32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\WinSxS\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb1ff6bcd1849\\comctl32.dll",target-name="C:\\WINDOWS\\WinSxS\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb1ff6bcd1849\\comctl32.dll",host-name="C:\\WINDOWS\\WinSxS\\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10240.16384_none_3bccb1ff6bcd1849\\comctl32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\winspool.drv",target-name="C:\\WINDOWS\\SysWOW64\\winspool.drv",host-name="C:\\WINDOWS\\SysWOW64\\winspool.drv",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\winspool.drv",target-name="C:\\WINDOWS\\SysWOW64\\winspool.drv",host-name="C:\\WINDOWS\\SysWOW64\\winspool.drv",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_html_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_html_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_html_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_html_gcc_custom.dll",target-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_html_gcc_custom.dll",host-name="C:\\Users\\iwbnwif\\Development\\wx_git\\wxWidgets\\lib\\gcc_dll\\wxmsw310ud_html_gcc_custom.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\winmm.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmm.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmm.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\winmm.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmm.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmm.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\bcrypt.dll",target-name="C:\\WINDOWS\\SysWOW64\\bcrypt.dll",host-name="C:\\WINDOWS\\SysWOW64\\bcrypt.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\bcrypt.dll",target-name="C:\\WINDOWS\\SysWOW64\\bcrypt.dll",host-name="C:\\WINDOWS\\SysWOW64\\bcrypt.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-unloaded,id="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",thread-group="i1"
=library-unloaded,id="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",thread-group="i1"
DEBUG>>=library-unloaded,id="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",thread-group="i1"
=library-unloaded,id="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",target-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",host-name="C:\\WINDOWS\\SysWOW64\\winmmbase.dll",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\cfgmgr32.dll",target-name="C:\\WINDOWS\\SysWOW64\\cfgmgr32.dll",host-name="C:\\WINDOWS\\SysWOW64\\cfgmgr32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\cfgmgr32.dll",target-name="C:\\WINDOWS\\SysWOW64\\cfgmgr32.dll",host-name="C:\\WINDOWS\\SysWOW64\\cfgmgr32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\devobj.dll",target-name="C:\\WINDOWS\\SysWOW64\\devobj.dll",host-name="C:\\WINDOWS\\SysWOW64\\devobj.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\devobj.dll",target-name="C:\\WINDOWS\\SysWOW64\\devobj.dll",host-name="C:\\WINDOWS\\SysWOW64\\devobj.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\imm32.dll",target-name="C:\\WINDOWS\\SysWOW64\\imm32.dll",host-name="C:\\WINDOWS\\SysWOW64\\imm32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\imm32.dll",target-name="C:\\WINDOWS\\SysWOW64\\imm32.dll",host-name="C:\\WINDOWS\\SysWOW64\\imm32.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\msctf.dll",target-name="C:\\WINDOWS\\SysWOW64\\msctf.dll",host-name="C:\\WINDOWS\\SysWOW64\\msctf.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\msctf.dll",target-name="C:\\WINDOWS\\SysWOW64\\msctf.dll",host-name="C:\\WINDOWS\\SysWOW64\\msctf.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\uxtheme.dll",target-name="C:\\WINDOWS\\SysWOW64\\uxtheme.dll",host-name="C:\\WINDOWS\\SysWOW64\\uxtheme.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\uxtheme.dll",target-name="C:\\WINDOWS\\SysWOW64\\uxtheme.dll",host-name="C:\\WINDOWS\\SysWOW64\\uxtheme.dll",symbols-loaded="0",thread-group="i1"
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SysWOW64\\dwmapi.dll",target-name="C:\\WINDOWS\\SysWOW64\\dwmapi.dll",host-name="C:\\WINDOWS\\SysWOW64\\dwmapi.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\SysWOW64\\dwmapi.dll",target-name="C:\\WINDOWS\\SysWOW64\\dwmapi.dll",host-name="C:\\WINDOWS\\SysWOW64\\dwmapi.dll",symbols-loaded="0",thread-group="i1"
Interrupting debugee process: 8216
DEBUG>>00000063-break-insert -f "\"MainFrame.cpp:33\""
DEBUG>>00000064-exec-continue
DEBUG>>=thread-created,id="5",group-id="i1"
=thread-created,id="5",group-id="i1"
DEBUG>>~"[New Thread 8216.0x2434]\n"
[New Thread 8216.0x2434]
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=thread-exited,id="5",group-id="i1"
=thread-exited,id="5",group-id="i1"
Interrupting debugee process: 8216
DEBUG>>00000065-break-insert -f "\"MainFrame.cpp:34\""
DEBUG>>00000066-exec-continue
DEBUG>>=thread-created,id="6",group-id="i1"
=thread-created,id="6",group-id="i1"
DEBUG>>~"[New Thread 8216.0x2098]\n"
[New Thread 8216.0x2098]
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=thread-exited,id="6",group-id="i1"
=thread-exited,id="6",group-id="i1"
Interrupting debugee process: 8216
DEBUG>>00000067-break-insert -f "\"MainFrame.cpp:35\""
DEBUG>>00000068-exec-continue
DEBUG>>=thread-created,id="7",group-id="i1"
=thread-created,id="7",group-id="i1"
DEBUG>>~"[New Thread 8216.0x3220]\n"
[New Thread 8216.0x3220]
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>=thread-exited,id="7",group-id="i1"
=thread-exited,id="7",group-id="i1"
DEBUG>>=thread-exited,id="4",group-id="i1"
=thread-exited,id="4",group-id="i1"
DEBUG>>=thread-exited,id="3",group-id="i1"
=thread-exited,id="3",group-id="i1"
DEBUG>>=thread-exited,id="2",group-id="i1"
=thread-exited,id="2",group-id="i1"
DEBUG>>=thread-exited,id="1",group-id="i1"
=thread-exited,id="1",group-id="i1"
DEBUG>>=thread-group-exited,id="i1",exit-code="0"
=thread-group-exited,id="i1",exit-code="0"
DEBUG>>*stopped,reason="exited-normally"
Program exited normally.
Debug session ended
DEBUG>>00000063^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00401c58",func="MainFrame::OnAbout(wxCommandEvent&)",file="C:/Users/iwbnwif/Development/general_tests/basic_app/MainFrame.cpp",fullname="C:\\Users\\iwbnwif\\Development\\general_tests\\basic_app\\MainFrame.cpp",line="33",thread-groups=["i1"],times="0",original-location="MainFrame.cpp:33"}
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: C:\Users\iwbnwif\Development\general_tests\basic_app\MainFrame.cpp:33
DEBUG>>00000064^error,msg="The program is not being run."
The program is not being run.
DEBUG>>00000065^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00401c63",func="MainFrame::OnAbout(wxCommandEvent&)",file="C:/Users/iwbnwif/Development/general_tests/basic_app/MainFrame.cpp",fullname="C:\\Users\\iwbnwif\\Development\\general_tests\\basic_app\\MainFrame.cpp",line="34",thread-groups=["i1"],times="0",original-location="MainFrame.cpp:34"}
Found the breakpoint ID!
Storing debugger breakpoint Id=2
Successfully set breakpoint 2 at: C:\Users\iwbnwif\Development\general_tests\basic_app\MainFrame.cpp:34
DEBUG>>00000066^error,msg="The program is not being run."
The program is not being run.
DEBUG>>00000067^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x00401c70",func="MainFrame::OnAbout(wxCommandEvent&)",file="C:/Users/iwbnwif/Development/general_tests/basic_app/MainFrame.cpp",fullname="C:\\Users\\iwbnwif\\Development\\general_tests\\basic_app\\MainFrame.cpp",line="35",thread-groups=["i1"],times="0",original-location="MainFrame.cpp:35"}
Found the breakpoint ID!
Storing debugger breakpoint Id=3
Successfully set breakpoint 3 at: C:\Users\iwbnwif\Development\general_tests\basic_app\MainFrame.cpp:35
DEBUG>>00000068^error,msg="The program is not being run."
The program is not being run.

Re: Breakpoints not firing on Windows 10

Posted: Fri Dec 18, 2015 1:57 am
by eranif
Try this (which always works for me on Windows):

Settings->Gdb Settings->General->Apply breakpoints after main function is hit

Eran

Re: Breakpoints not firing on Windows 10

Posted: Fri Dec 18, 2015 2:46 am
by iwbnwif
Thank you for the response.

Unfortunately I had already checked that option and it makes no difference.

I can reproduce the problem even on the simplest of tests, such as a basic GUI wxFrame project.

With this test, I get the following message from GDB:

Code: Select all

DEBUG>>&"C:\\Users\\IWBNWIF\\AppData\\Local\\Temp\\codelite_gdbinit.txt:17: Error in sourced command file:\n"
DEBUG>>&"Python scripting is not supported in this copy of GDB.\n"
Also I noticed this error when actually setting the breakpoint:

Code: Select all

Development\\general_tests\\basic_app\\MainFrame.cpp",line="35",thread-groups=["i1"],times="0",original-location="MainFrame.cpp:35"}
Found the breakpoint ID!
Storing debugger breakpoint Id=3
Successfully set breakpoint 3 at: C:\Users\iwbnwif\Development\general_tests\basic_app\MainFrame.cpp:35
DEBUG>>00000068^error,msg="The program is not being run."

Re: Breakpoints not firing on Windows 10

Posted: Fri Dec 18, 2015 3:00 am
by eranif
sounds like you need to replace your gdb

Eran

Re: Breakpoints not firing on Windows 10

Posted: Fri Dec 18, 2015 1:30 pm
by iwbnwif
I have upgraded to gdb version 7.9.1 (the one which comes with mingw-w64) but the result is the same.

Looking at the gdb debug messages a bit further it seems that gdb is unable to reliably set a breakpoint when the program is running for some reason, but sets it fine when it is paused.

This is the log for setting a breakpoint when the program is running:

Code: Select all

Interrupting debugee process: 3992
DEBUG>>00000125-break-insert -f "\"MainFrame.cpp:33\""
DEBUG>>00000126-exec-continue
DEBUG>>=thread-created,id="12",group-id="i1"
=thread-created,id="12",group-id="i1"
DEBUG>>~"[New Thread 3992.0x24c0]\n"
[New Thread 3992.0x24c0]
DEBUG>>*running,thread-id="all"
*running,thread-id="all"
DEBUG>>~"[Thread 3992.0x24c0 exited with code 0]\n"
[Thread 3992.0x24c0 exited with code 0]
DEBUG>>=thread-exited,id="12",group-id="i1"
=thread-exited,id="12",group-id="i1"
And this is the log when the program is halted at another breakpoint

Code: Select all

DEBUG>>00000139-break-insert -f "\"MainFrame.cpp:33\""
DEBUG>>00000139^done,bkpt={number="11",type="breakpoint",disp="keep",enabled="y",addr="0x00401c58",func="MainFrame::OnAbout(wxCommandEvent&)",file="C:/Users/iwbnwif/Development/general_tests/basic_app/MainFrame.cpp",fullname="C:\\Users\\iwbnwif\\Development\\general_tests\\basic_app\\MainFrame.cpp",line="33",thread-groups=["i1"],times="0",original-location="MainFrame.cpp:33"}
Found the breakpoint ID!
Storing debugger breakpoint Id=11
Successfully set breakpoint 11 at: C:\Users\iwbnwif\Development\general_tests\basic_app\MainFrame.cpp:33
I assume that all CodeLite does is to send

Code: Select all

break-insert -f "\"MainFrame.cpp:33\""
to gdb, so it looks like this is either a problem with my setup or with gdb.

I will investigate further with the mingw mailing list (unless you think there is something I have missed).

Re: Breakpoints not firing on Windows 10

Posted: Fri Dec 18, 2015 3:38 pm
by Jarod42
I wonder if `set breakpoint always-inserted on` may help.
set breakpoint always-inserted off
All breakpoints, including newly added by the user, are inserted in the target only when the target is resumed. All breakpoints are removed from the target when it stops. This is the default mode.
set breakpoint always-inserted on
Causes all breakpoints to be inserted in the target at all times. If the user adds a new breakpoint, or changes an existing breakpoint, the breakpoints in the target are updated immediately. A breakpoint is removed from the target only when breakpoint itself is deleted.

Re: Breakpoints not firing on Windows 10

Posted: Fri Dec 18, 2015 7:31 pm
by iwbnwif
Thank you, this sounded promising but alas it has no effect.

I have tried to reproduce the problem from the GDB command line, but did not find a way to set a breakpoint whilst the program is running. Ctrl-<break> causes GDB itself to quit.

I would be grateful if someone can confirm that they are able to set breakpoints during program execution on Windows (if so how, what version of mingw etc.) because I am starting to believe this is simply a limitation of the debugger :oops:

Re: Breakpoints not firing on Windows 10

Posted: Fri Dec 18, 2015 10:18 pm
by eranif
iwbnwif wrote:I would be grateful if someone can confirm that they are able to set breakpoints during program execution on Windows
You can't do that no Windows...
The way CodeLite does that is interrupting the process and place a breakpoint or it set a temporary breakpoint on main, once its hit, it set all the user breakpoints and then issuing '-exec-continue' command

Eran