Page 1 of 1

Pause Debugger Button (gdb), not working in Windows

Posted: Thu May 23, 2019 2:07 am
by Atimlotus
Codelite Version : 12.0.0
Self Compiled : No
OS : Win 10
Compiler Version : g++ (i686-posix-dwarf-rev1, Built by MinGW-W64 project) 7.2.0
Debugger Version : gdb 8.0.1

Background - My intention is to do a bit of random sample code profiling similar to this answer

Correct me if I'm wrong but my assumption for the intended use of this button is to pause the current application and take you to its current line of execution in the IDE. Below is a simple test case, the idea being that when I press the pause button it should stop in the middle of the infinite loop. What I get instead is some info in the "Debugger->Output" window pane about a new thread being created and then immediately exiting.

Code: Select all

int main()
{
    while (true) {
        int x = 0;
    }
    return 0;
}
and the Full debugger output window:

Code: Select all

Using gdbinit file: C:\Users\[ME!]\AppData\Local\Temp\codelite_gdbinit.txt
Current working dir: C:\Programming\Projects\Codelite\GDB_Testing
Launching gdb from : ./Debug
Starting debugger  : C:/Programming/MinGW_w64/mingw32/bin/gdb.exe --command="C:\Users\[ME!]\AppData\Local\Temp\codelite_gdbinit.txt" --interpreter=mi "./GDB_Testing"
DEBUG>>set  new-console on
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>00000006-break-insert -f __cxa_throw
DEBUG>>break assert
DEBUG>>set print object 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\[ME!]\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>>00000007-enable-pretty-printing
Debug session started successfully!
DEBUG>>00000008-exec-arguments 
DEBUG>>00000009-exec-run 
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (GDB) 8.0.1\n"
GNU gdb (GDB) 8.0.1
DEBUG>>~"Copyright (C) 2017 Free Software Foundation, Inc.\n"
Copyright (C) 2017 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-w64-mingw32\".\nType \"show configuration\" for configuration details."
This GDB was configured as "i686-w64-mingw32".\nType "show configuration" for configuration details.
DEBUG>>~"\nFor bug reporting instructions, please see:\n"
\nFor bug reporting instructions, please see:
DEBUG>>~"<http://www.gnu.org/software/gdb/bugs/>.\n"
<http://www.gnu.org/software/gdb/bugs/>.
DEBUG>>~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.
DEBUG>>~"For help, type \"help\".\n"
For help, type "help".
DEBUG>>~"Type \"apropos word\" to search for commands related to \"word\"...\n"
Type "apropos word" to search for commands related to "word"...
DEBUG>>~"Reading symbols from ./GDB_Testing..."
Reading symbols from ./GDB_Testing...
DEBUG>>~"done.\n"
done.
DEBUG>>&"Traceback (most recent call last):\n"
DEBUG>>&"  File \"<string>\", line 5, in <module>\n"
DEBUG>>&"  File \"c:\\programming\\mingw_w64\\mingw32\\share\\gdb/python/../../gcc-7.2.0/python/libstdcxx/v6/printers.py\", line 1493, in register_libstdcxx_printers\n"
DEBUG>>&"    gdb.printing.register_pretty_printer(obj, libstdcxx_printer)\n"
DEBUG>>&"  File \"c:\\programming\\mingw_w64\\mingw32\\share\\gdb/python/gdb/printing.py\", line 152, in register_pretty_printer\n"
DEBUG>>&"    printer.name)\n"
DEBUG>>&"RuntimeError: pretty-printer already registered: libstdc++-v6\n"
DEBUG>>&"C:\\Users\\[ME!]\\AppData\\Local\\Temp\\codelite_gdbinit.txt:17: Error in sourced command file:\n"
DEBUG>>&"Error while executing Python code.\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>>00000006^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0049ae90",at="<__cxa_throw>",thread-groups=["i1"],times="0",original-location="__cxa_throw"}
DEBUG>>&"break assert\n"
DEBUG>>&"Function \"assert\" not defined.\n"
DEBUG>>~"Breakpoint 2 (assert) pending.\n"
Breakpoint 2 (assert) pending.
DEBUG>>=breakpoint-created,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="assert",times="0",original-location="assert"}
=breakpoint-created,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="assert",times="0",original-location="assert"}
DEBUG>>^done
DEBUG>>&"set print object on\n"
DEBUG>>=cmd-param-changed,param="print object",value="on"
=cmd-param-changed,param="print object",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>>&"Traceback (most recent call last):\n"
DEBUG>>&"  File \"<string>\", line 4, in <module>\n"
DEBUG>>&"  File \"c:\\programming\\mingw_w64\\mingw32\\share\\gdb/python/../../gcc-7.2.0/python/libstdcxx/v6/printers.py\", line 1493, in register_libstdcxx_printers\n"
DEBUG>>&"    gdb.printing.register_pretty_printer(obj, libstdcxx_printer)\n"
DEBUG>>&"  File \"c:\\programming\\mingw_w64\\mingw32\\share\\gdb/python/gdb/printing.py\", line 152, in register_pretty_printer\n"
DEBUG>>&"    printer.name)\n"
DEBUG>>&"RuntimeError: pretty-printer already registered: libstdc++-v6\n"
DEBUG>>&"Error while executing Python code.\n"
DEBUG>>^error,msg="Error while executing Python code."
^error,msg="Error while executing Python code."
DEBUG>>00000007^done
DEBUG>>00000008^done
>> Debuggee process ID: 3132
DEBUG>>=thread-group-started,id="i1",pid="3132"
=thread-group-started,id="i1",pid="3132"
DEBUG>>=thread-created,id="1",group-id="i1"
=thread-created,id="1",group-id="i1"
DEBUG>>~"[New Thread 3132.0xb58]\n"
[New Thread 3132.0xb58]
DEBUG>>=thread-created,id="2",group-id="i1"
=thread-created,id="2",group-id="i1"
DEBUG>>~"[New Thread 3132.0x2500]\n"
[New Thread 3132.0x2500]
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",ranges=[{from="0x779c1000",to="0x77b4fed8"}]
=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",ranges=[{from="0x779c1000",to="0x77b4fed8"}]
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",ranges=[{from="0x771f0000",to="0x772b4658"}]
=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",ranges=[{from="0x771f0000",to="0x772b4658"}]
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",ranges=[{from="0x77381000",to="0x775636ec"}]
=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",ranges=[{from="0x77381000",to="0x775636ec"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\apphelp.dll",target-name="C:\\WINDOWS\\SYSTEM32\\apphelp.dll",host-name="C:\\WINDOWS\\SYSTEM32\\apphelp.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x72631000",to="0x726cc950"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\apphelp.dll",target-name="C:\\WINDOWS\\SYSTEM32\\apphelp.dll",host-name="C:\\WINDOWS\\SYSTEM32\\apphelp.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x72631000",to="0x726cc950"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\AcGenral.dll",target-name="C:\\WINDOWS\\SYSTEM32\\AcGenral.dll",host-name="C:\\WINDOWS\\SYSTEM32\\AcGenral.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x5ceb2000",to="0x5d1035a8"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\AcGenral.dll",target-name="C:\\WINDOWS\\SYSTEM32\\AcGenral.dll",host-name="C:\\WINDOWS\\SYSTEM32\\AcGenral.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x5ceb2000",to="0x5d1035a8"}]
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",ranges=[{from="0x77121000",to="0x771de7a0"}]
=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",ranges=[{from="0x77121000",to="0x771de7a0"}]
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",ranges=[{from="0x745a1000",to="0x745e353c"}]
=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",ranges=[{from="0x745a1000",to="0x745e353c"}]
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",ranges=[{from="0x772c1000",to="0x7737f700"}]
=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",ranges=[{from="0x772c1000",to="0x7737f700"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\sspicli.dll",target-name="C:\\WINDOWS\\System32\\sspicli.dll",host-name="C:\\WINDOWS\\System32\\sspicli.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74281000",to="0x7429f198"}]
=library-loaded,id="C:\\WINDOWS\\System32\\sspicli.dll",target-name="C:\\WINDOWS\\System32\\sspicli.dll",host-name="C:\\WINDOWS\\System32\\sspicli.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74281000",to="0x7429f198"}]
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",ranges=[{from="0x74271000",to="0x742793bc"}]
=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",ranges=[{from="0x74271000",to="0x742793bc"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\bcryptprimitives.dll",target-name="C:\\WINDOWS\\System32\\bcryptprimitives.dll",host-name="C:\\WINDOWS\\System32\\bcryptprimitives.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x745f1000",to="0x7464700c"}]
=library-loaded,id="C:\\WINDOWS\\System32\\bcryptprimitives.dll",target-name="C:\\WINDOWS\\System32\\bcryptprimitives.dll",host-name="C:\\WINDOWS\\System32\\bcryptprimitives.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x745f1000",to="0x7464700c"}]
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",ranges=[{from="0x74ec1000",to="0x74f046b0"}]
=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",ranges=[{from="0x74ec1000",to="0x74f046b0"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\combase.dll",target-name="C:\\WINDOWS\\System32\\combase.dll",host-name="C:\\WINDOWS\\System32\\combase.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x762f1000",to="0x7654be70"}]
=library-loaded,id="C:\\WINDOWS\\System32\\combase.dll",target-name="C:\\WINDOWS\\System32\\combase.dll",host-name="C:\\WINDOWS\\System32\\combase.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x762f1000",to="0x7654be70"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\ucrtbase.dll",target-name="C:\\WINDOWS\\System32\\ucrtbase.dll",host-name="C:\\WINDOWS\\System32\\ucrtbase.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x746a1000",to="0x747bc844"}]
=library-loaded,id="C:\\WINDOWS\\System32\\ucrtbase.dll",target-name="C:\\WINDOWS\\System32\\ucrtbase.dll",host-name="C:\\WINDOWS\\System32\\ucrtbase.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x746a1000",to="0x747bc844"}]
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",ranges=[{from="0x74401000",to="0x74421448"}]
=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",ranges=[{from="0x74401000",to="0x74421448"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\gdi32full.dll",target-name="C:\\WINDOWS\\System32\\gdi32full.dll",host-name="C:\\WINDOWS\\System32\\gdi32full.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x77671000",to="0x777d3058"}]
=library-loaded,id="C:\\WINDOWS\\System32\\gdi32full.dll",target-name="C:\\WINDOWS\\System32\\gdi32full.dll",host-name="C:\\WINDOWS\\System32\\gdi32full.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x77671000",to="0x777d3058"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\msvcp_win.dll",target-name="C:\\WINDOWS\\System32\\msvcp_win.dll",host-name="C:\\WINDOWS\\System32\\msvcp_win.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x747c1000",to="0x7483c754"}]
=library-loaded,id="C:\\WINDOWS\\System32\\msvcp_win.dll",target-name="C:\\WINDOWS\\System32\\msvcp_win.dll",host-name="C:\\WINDOWS\\System32\\msvcp_win.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x747c1000",to="0x7483c754"}]
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",ranges=[{from="0x76f91000",to="0x7711cf5c"}]
=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",ranges=[{from="0x76f91000",to="0x7711cf5c"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\win32u.dll",target-name="C:\\WINDOWS\\System32\\win32u.dll",host-name="C:\\WINDOWS\\System32\\win32u.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x76f11000",to="0x76f269f4"}]
=library-loaded,id="C:\\WINDOWS\\System32\\win32u.dll",target-name="C:\\WINDOWS\\System32\\win32u.dll",host-name="C:\\WINDOWS\\System32\\win32u.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x76f11000",to="0x76f269f4"}]
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",ranges=[{from="0x74301000",to="0x743fb720"}]
=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",ranges=[{from="0x74301000",to="0x743fb720"}]
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",ranges=[{from="0x777e1000",to="0x77875390"}]
=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",ranges=[{from="0x777e1000",to="0x77875390"}]
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",ranges=[{from="0x74fa1000",to="0x762e9ca0"}]
=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",ranges=[{from="0x74fa1000",to="0x762e9ca0"}]
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",ranges=[{from="0x77891000",to="0x778c8e4c"}]
=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",ranges=[{from="0x77891000",to="0x778c8e4c"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\SHCore.dll",target-name="C:\\WINDOWS\\System32\\SHCore.dll",host-name="C:\\WINDOWS\\System32\\SHCore.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74e31000",to="0x74eb74a8"}]
=library-loaded,id="C:\\WINDOWS\\System32\\SHCore.dll",target-name="C:\\WINDOWS\\System32\\SHCore.dll",host-name="C:\\WINDOWS\\System32\\SHCore.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74e31000",to="0x74eb74a8"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\windows.storage.dll",target-name="C:\\WINDOWS\\System32\\windows.storage.dll",host-name="C:\\WINDOWS\\System32\\windows.storage.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74871000",to="0x74e29834"}]
=library-loaded,id="C:\\WINDOWS\\System32\\windows.storage.dll",target-name="C:\\WINDOWS\\System32\\windows.storage.dll",host-name="C:\\WINDOWS\\System32\\windows.storage.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74871000",to="0x74e29834"}]
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",ranges=[{from="0x769a1000",to="0x76a17ad0"}]
=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",ranges=[{from="0x769a1000",to="0x76a17ad0"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\kernel.appcore.dll",target-name="C:\\WINDOWS\\System32\\kernel.appcore.dll",host-name="C:\\WINDOWS\\System32\\kernel.appcore.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x742f1000",to="0x742fe458"}]
=library-loaded,id="C:\\WINDOWS\\System32\\kernel.appcore.dll",target-name="C:\\WINDOWS\\System32\\kernel.appcore.dll",host-name="C:\\WINDOWS\\System32\\kernel.appcore.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x742f1000",to="0x742fe458"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\profapi.dll",target-name="C:\\WINDOWS\\System32\\profapi.dll",host-name="C:\\WINDOWS\\System32\\profapi.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x76981000",to="0x76997bcc"}]
=library-loaded,id="C:\\WINDOWS\\System32\\profapi.dll",target-name="C:\\WINDOWS\\System32\\profapi.dll",host-name="C:\\WINDOWS\\System32\\profapi.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x76981000",to="0x76997bcc"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\powrprof.dll",target-name="C:\\WINDOWS\\System32\\powrprof.dll",host-name="C:\\WINDOWS\\System32\\powrprof.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74651000",to="0x7469419c"}]
=library-loaded,id="C:\\WINDOWS\\System32\\powrprof.dll",target-name="C:\\WINDOWS\\System32\\powrprof.dll",host-name="C:\\WINDOWS\\System32\\powrprof.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74651000",to="0x7469419c"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\System32\\fltLib.dll",target-name="C:\\WINDOWS\\System32\\fltLib.dll",host-name="C:\\WINDOWS\\System32\\fltLib.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74841000",to="0x74847268"}]
=library-loaded,id="C:\\WINDOWS\\System32\\fltLib.dll",target-name="C:\\WINDOWS\\System32\\fltLib.dll",host-name="C:\\WINDOWS\\System32\\fltLib.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74841000",to="0x74847268"}]
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",ranges=[{from="0x71d71000",to="0x71deb6d0"}]
=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",ranges=[{from="0x71d71000",to="0x71deb6d0"}]
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",ranges=[{from="0x6b5a1000",to="0x6b5c38e4"}]
=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",ranges=[{from="0x6b5a1000",to="0x6b5c38e4"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\samcli.dll",target-name="C:\\WINDOWS\\SYSTEM32\\samcli.dll",host-name="C:\\WINDOWS\\SYSTEM32\\samcli.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x6d721000",to="0x6d734a94"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\samcli.dll",target-name="C:\\WINDOWS\\SYSTEM32\\samcli.dll",host-name="C:\\WINDOWS\\SYSTEM32\\samcli.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x6d721000",to="0x6d734a94"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\msacm32.dll",target-name="C:\\WINDOWS\\SYSTEM32\\msacm32.dll",host-name="C:\\WINDOWS\\SYSTEM32\\msacm32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x668c1000",to="0x668d8cb0"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\msacm32.dll",target-name="C:\\WINDOWS\\SYSTEM32\\msacm32.dll",host-name="C:\\WINDOWS\\SYSTEM32\\msacm32.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x668c1000",to="0x668d8cb0"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\version.dll",target-name="C:\\WINDOWS\\SYSTEM32\\version.dll",host-name="C:\\WINDOWS\\SYSTEM32\\version.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74261000",to="0x74267340"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\version.dll",target-name="C:\\WINDOWS\\SYSTEM32\\version.dll",host-name="C:\\WINDOWS\\SYSTEM32\\version.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74261000",to="0x74267340"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\userenv.dll",target-name="C:\\WINDOWS\\SYSTEM32\\userenv.dll",host-name="C:\\WINDOWS\\SYSTEM32\\userenv.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74041000",to="0x74060534"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\userenv.dll",target-name="C:\\WINDOWS\\SYSTEM32\\userenv.dll",host-name="C:\\WINDOWS\\SYSTEM32\\userenv.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74041000",to="0x74060534"}]
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",ranges=[{from="0x72b81000",to="0x72ba21e8"}]
=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",ranges=[{from="0x72b81000",to="0x72ba21e8"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\urlmon.dll",target-name="C:\\WINDOWS\\SYSTEM32\\urlmon.dll",host-name="C:\\WINDOWS\\SYSTEM32\\urlmon.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x6fae1000",to="0x6fc7c1f8"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\urlmon.dll",target-name="C:\\WINDOWS\\SYSTEM32\\urlmon.dll",host-name="C:\\WINDOWS\\SYSTEM32\\urlmon.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x6fae1000",to="0x6fc7c1f8"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\winspool.drv",target-name="C:\\WINDOWS\\SYSTEM32\\winspool.drv",host-name="C:\\WINDOWS\\SYSTEM32\\winspool.drv",symbols-loaded="0",thread-group="i1",ranges=[{from="0x72aa1000",to="0x72b0c8b4"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\winspool.drv",target-name="C:\\WINDOWS\\SYSTEM32\\winspool.drv",host-name="C:\\WINDOWS\\SYSTEM32\\winspool.drv",symbols-loaded="0",thread-group="i1",ranges=[{from="0x72aa1000",to="0x72b0c8b4"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\mpr.dll",target-name="C:\\WINDOWS\\SYSTEM32\\mpr.dll",host-name="C:\\WINDOWS\\SYSTEM32\\mpr.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74021000",to="0x74037e9c"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\mpr.dll",target-name="C:\\WINDOWS\\SYSTEM32\\mpr.dll",host-name="C:\\WINDOWS\\SYSTEM32\\mpr.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74021000",to="0x74037e9c"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\winmmbase.dll",target-name="C:\\WINDOWS\\SYSTEM32\\winmmbase.dll",host-name="C:\\WINDOWS\\SYSTEM32\\winmmbase.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x6b571000",to="0x6b5929ec"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\winmmbase.dll",target-name="C:\\WINDOWS\\SYSTEM32\\winmmbase.dll",host-name="C:\\WINDOWS\\SYSTEM32\\winmmbase.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x6b571000",to="0x6b5929ec"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\iertutil.dll",target-name="C:\\WINDOWS\\SYSTEM32\\iertutil.dll",host-name="C:\\WINDOWS\\SYSTEM32\\iertutil.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x6e601000",to="0x6e828904"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\iertutil.dll",target-name="C:\\WINDOWS\\SYSTEM32\\iertutil.dll",host-name="C:\\WINDOWS\\SYSTEM32\\iertutil.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x6e601000",to="0x6e828904"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\propsys.dll",target-name="C:\\WINDOWS\\SYSTEM32\\propsys.dll",host-name="C:\\WINDOWS\\SYSTEM32\\propsys.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x71af1000",to="0x71c6fb10"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\propsys.dll",target-name="C:\\WINDOWS\\SYSTEM32\\propsys.dll",host-name="C:\\WINDOWS\\SYSTEM32\\propsys.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x71af1000",to="0x71c6fb10"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\IPHLPAPI.DLL",target-name="C:\\WINDOWS\\SYSTEM32\\IPHLPAPI.DLL",host-name="C:\\WINDOWS\\SYSTEM32\\IPHLPAPI.DLL",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74231000",to="0x7425f3bc"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\IPHLPAPI.DLL",target-name="C:\\WINDOWS\\SYSTEM32\\IPHLPAPI.DLL",host-name="C:\\WINDOWS\\SYSTEM32\\IPHLPAPI.DLL",symbols-loaded="0",thread-group="i1",ranges=[{from="0x74231000",to="0x7425f3bc"}]
DEBUG>>=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\bcrypt.dll",target-name="C:\\WINDOWS\\SYSTEM32\\bcrypt.dll",host-name="C:\\WINDOWS\\SYSTEM32\\bcrypt.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x71ca1000",to="0x71cb8ba8"}]
=library-loaded,id="C:\\WINDOWS\\SYSTEM32\\bcrypt.dll",target-name="C:\\WINDOWS\\SYSTEM32\\bcrypt.dll",host-name="C:\\WINDOWS\\SYSTEM32\\bcrypt.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x71ca1000",to="0x71cb8ba8"}]
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",ranges=[{from="0x76551000",to="0x76575488"}]
=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",ranges=[{from="0x76551000",to="0x76575488"}]
DEBUG>>=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<MULTIPLE>",times="0",original-location="assert"},{number="2.1",enabled="y",addr="0x747434a5",at="<ucrtbase!_assert+5>",thread-groups=["i1"]},{number="2.2",enabled="y",addr="0x7717771b",at="<msvcrt!_assert+11>",thread-groups=["i1"]}
=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<MULTIPLE>",times="0",original-location="assert"},{number="2.1",enabled="y",addr="0x747434a5",at="<ucrtbase!_assert+5>",thread-groups=["i1"]},{number="2.2",enabled="y",addr="0x7717771b",at="<msvcrt!_assert+11>",thread-groups=["i1"]}
DEBUG>>00000009^running
Continuing...
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 3132.0x1f8c]\n"
[New Thread 3132.0x1f8c]
Interrupting debugee process: 3132   //******** Pause Button Pressed Here ********
DEBUG>>00000010-stack-list-frames 0 500
DEBUG>>=thread-created,id="4",group-id="i1"
=thread-created,id="4",group-id="i1"
DEBUG>>~"[New Thread 3132.0x1be4]\n"
[New Thread 3132.0x1be4]
DEBUG>>~"[Thread 3132.0x1be4 exited with code 0]\n"
[Thread 3132.0x1be4 exited with code 0]
DEBUG>>=thread-exited,id="4",group-id="i1"
=thread-exited,id="4",group-id="i1"
Am I missing a configuration setting somewhere in the IDE?

Re: Pause Debugger Button (gdb), not working in Windows

Posted: Fri May 24, 2019 5:28 pm
by eranif
you should examine the "Threads" view instead. The new thread created it's just how the way things are working.
In the "Threads" view, double click on the 'main' thread (should be #1) and you will get the debugger placed where you think it should be

Re: Pause Debugger Button (gdb), not working in Windows

Posted: Sun May 26, 2019 9:48 pm
by Atimlotus
Currently the only time I see anything in the threads tab in the debugger pane is if I've stopped at a break point that was set prior to execution (either manually set or if I've checked the "Automatically set break point at main" in the GDB settings). If I do not set any breakpoints prior to running the program/debugger the threads tab stays blank and the pause button doesn't appear to do anything but output the information in the original post above. The program doesn't pause and I do not go to the current line of code execution.

As an example, if I have the GDB setting checked to "Automatically set the break point at main" I do see a handful of threads listed in the threads tab. ID 1 says YES in the "Active?" column and the function is main. However, clicking / double clicking on that thread doesn't do anything. Nor does clicking / double clicking on that thread and hitting the pause button again if I've continued after the original stop at that break point.

Re: Pause Debugger Button (gdb), not working in Windows

Posted: Mon May 27, 2019 5:14 pm
by eranif
This sounds like a permission issue to me (for example: after launch the program switches to a different user) so the gdb user can't interrupt the debugee process.
But this is on Windows so I am not sure if this is the case

Does it work for a simple "hello world" example?

Re: Pause Debugger Button (gdb), not working in Windows

Posted: Wed May 29, 2019 3:33 am
by Atimlotus
It does not :(. At some point trying to troubleshoot this issue I borked my system and ended up reinstalling windows (wasn't a clean install as I kept my personal files). I'm still getting the same kind of output in the debugger window and nothing in the threads tab.

Code: Select all

#include <iostream>  
  
using namespace std; 
  
int main() 
{  
	int x = 0;
    while ( true ) {  //Would expect it to stop in this loop somewhere
        x++;
	cout<<std::to_string(x);
    }
      
    return 0; 
}