Hi,
I am using the latest version of MSYS2 MINGW64 (namely GCC 7.3.0, found here https://www.msys2.org/). I am able to launch GDB from Quick Debug under Codelite version 12.0.3 (from here https://downloads.codelite.org/). However, it just closes the debug panel after a very brief period. No error is shown.
It works fine with the older version of MYSY2 MINGW64 and the latest version of TDM GCC (GCC 5.1.0).
I am running under Windows 10. Any help is appreciated. Thanks.
GDB Fails after a Brief Period
-
- CodeLite Curious
- Posts: 9
- Joined: Sun Aug 30, 2015 9:45 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: GDB Fails after a Brief Period
Enable debugger full log (settings->gdb settings->GNU gdb debugger->Misc->Enable full debugger logging)
Run the debugger
After the panel closes, you can re-show it from View->Debugger Pane
The log should be under Debugger Pane, 'Output' tab
Run the debugger
After the panel closes, you can re-show it from View->Debugger Pane
The log should be under Debugger Pane, 'Output' tab
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 9
- Joined: Sun Aug 30, 2015 9:45 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: GDB Fails after a Brief Period
Not sure if I should dump the whole error message here or not. But here it is:
Code: Select all
Using gdbinit file: C:\Users\frask\AppData\Local\Temp\codelite_gdbinit.txt
Current working dir: C:\Program Files\CodeLite
Launching gdb from : C:\Students\Venno\Projects\C\TokenizerSkeleton\build\test\out
Starting debugger : C:\ProgramFiles\msys64\mingw64\bin\gdb.exe --command="C:\Users\frask\AppData\Local\Temp\codelite_gdbinit.txt" --interpreter=mi C:\Students\Venno\Projects\C\TokenizerSkeleton\build\test\out\test_MockGetToken.exe
GNU gdb (GDB) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
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.
This GDB was configured as "x86_64-w64-mingw32".\nType "show configuration" for configuration details.
\nFor bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from C:\Students\Venno\Projects\C\TokenizerSkeleton\build\test\out\test_MockGetToken.exe...
done.
>> Debuggee process ID: 8224
[New Thread 8224.0x27b4]
[New Thread 8224.0x2398]
Continuing...
Thread 1 hit Temporary breakpoint 1, main () at build/test/runners/test_MockGetToken_runner.c:77
77\t UnityBegin("test_MockGetToken.c");
Using gdbinit file: C:\Users\frask\AppData\Local\Temp\codelite_gdbinit.txt
Current working dir: C:\Program Files\CodeLite
Launching gdb from : C:\Students\Venno\Projects\C\TokenizerSkeleton\build\test\out
Starting debugger : C:\ProgramFiles\msys64\mingw64\bin\gdb.exe --command="C:\Users\frask\AppData\Local\Temp\codelite_gdbinit.txt" --interpreter=mi C:\Students\Venno\Projects\C\TokenizerSkeleton\build\test\out\test_MockGetToken.exe
GNU gdb (GDB) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
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.
This GDB was configured as "x86_64-w64-mingw32".\nType "show configuration" for configuration details.
\nFor bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from C:\Students\Venno\Projects\C\TokenizerSkeleton\build\test\out\test_MockGetToken.exe...
done.
>> Debuggee process ID: 5460
[New Thread 5460.0x944]
Continuing...
[New Thread 5460.0xcdc]
Thread 1 hit Temporary breakpoint 1, main () at build/test/runners/test_MockGetToken_runner.c:77
77\t UnityBegin("test_MockGetToken.c");
Using gdbinit file: C:\Users\frask\AppData\Local\Temp\codelite_gdbinit.txt
Current working dir: C:\Program Files\CodeLite
Launching gdb from : C:\Students\Venno\Projects\C\TokenizerSkeleton\build\test\out
Starting debugger : C:\ProgramFiles\msys64\mingw64\bin\gdb.exe --command="C:\Users\frask\AppData\Local\Temp\codelite_gdbinit.txt" --interpreter=mi C:\Students\Venno\Projects\C\TokenizerSkeleton\build\test\out\test_MockGetToken.exe
DEBUG>>set new-console on
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set print object on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print elements 200
DEBUG>>00000019-break-insert -f -t main
DEBUG>>00000020-enable-pretty-printing
DEBUG>>00000021-exec-arguments
DEBUG>>00000022-exec-run
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (GDB) 8.1\n"
GNU gdb (GDB) 8.1
DEBUG>>~"Copyright (C) 2018 Free Software Foundation, Inc.\n"
Copyright (C) 2018 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 \"x86_64-w64-mingw32\".\nType \"show configuration\" for configuration details."
This GDB was configured as "x86_64-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 C:\\Students\\Venno\\Projects\\C\\TokenizerSkeleton\\build\\test\\out\\test_MockGetToken.exe..."
Reading symbols from C:\Students\Venno\Projects\C\TokenizerSkeleton\build\test\out\test_MockGetToken.exe...
DEBUG>>~"done.\n"
done.
DEBUG>>&" File \"<string>\", line 2\n"
DEBUG>>&"SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \\UXXXXXXXX escape\n"
DEBUG>>&"C:\\Users\\frask\\AppData\\Local\\Temp\\codelite_gdbinit.txt:14: 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>>&"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>>00000019^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x00000000004015fc",func="main",file="build/test/runners/test_MockGetToken_runner.c",fullname="C:\\Students\\Venno\\Projects\\C\\TokenizerSkeleton\\build\\test\\runners\\test_MockGetToken_runner.c",line="77",thread-groups=["i1"],times="0",original-location="main"}
DEBUG>>00000020^done
DEBUG>>00000021^done
>> Debuggee process ID: 1652
DEBUG>>=thread-group-started,id="i1",pid="1652"
=thread-group-started,id="i1",pid="1652"
DEBUG>>=thread-created,id="1",group-id="i1"
=thread-created,id="1",group-id="i1"
DEBUG>>~"[New Thread 1652.0x2454]\n"
[New Thread 1652.0x2454]
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="0x00007fffeb301000",to="0x00007fffeb4e04d8"}]
=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="0x00007fffeb301000",to="0x00007fffeb4e04d8"}]
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="0x00007fffe9111000",to="0x00007fffe91c124c"}]
=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="0x00007fffe9111000",to="0x00007fffe91c124c"}]
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="0x00007fffe78c1000",to="0x00007fffe7b32e24"}]
=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="0x00007fffe78c1000",to="0x00007fffe7b32e24"}]
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="0x00007fffe8791000",to="0x00007fffe882d4a4"}]
=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="0x00007fffe8791000",to="0x00007fffe882d4a4"}]
DEBUG>>00000022^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 1652.0xb3c]\n"
[New Thread 1652.0xb3c]
DEBUG>>=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x00000000004015fc",func="main",file="build/test/runners/test_MockGetToken_runner.c",fullname="C:\\Students\\Venno\\Projects\\C\\TokenizerSkeleton\\build\\test\\runners\\test_MockGetToken_runner.c",line="77",thread-groups=["i1"],times="1",original-location="main"}
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x00000000004015fc",func="main",file="build/test/runners/test_MockGetToken_runner.c",fullname="C:\\Students\\Venno\\Projects\\C\\TokenizerSkeleton\\build\\test\\runners\\test_MockGetToken_runner.c",line="77",thread-groups=["i1"],times="1",original-location="main"}
DEBUG>>~"\n"
DEBUG>>~"Thread 1 hit Temporary breakpoint 1, main () at build/test/runners/test_MockGetToken_runner.c:77\n"
Thread 1 hit Temporary breakpoint 1, main () at build/test/runners/test_MockGetToken_runner.c:77
DEBUG>>~"77\t UnityBegin(\"test_MockGetToken.c\");\n"
77\t UnityBegin("test_MockGetToken.c");
DEBUG>>*stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={addr="0x00000000004015fc",func="main",args=[],file="build/test/runners/test_MockGetToken_runner.c",fullname="C:\\Students\\Venno\\Projects\\C\\TokenizerSkeleton\\build\\test\\runners\\test_MockGetToken_runner.c",line="77"},thread-id="1",stopped-threads="all"
DEBUG>>00000023-file-list-exec-source-file
DEBUG>>00000024-break-list
DEBUG>>=breakpoint-deleted,id="1"
=breakpoint-deleted,id="1"
DEBUG>>00000023^done,line="77",file="build/test/runners/test_MockGetToken_runner.c",fullname="C:\\Students\\Venno\\Projects\\C\\TokenizerSkeleton\\build\\test\\runners\\test_MockGetToken_runner.c",macro-info="0"
DEBUG>>00000025-stack-list-variables 2
DEBUG>>00000026-data-list-register-names
DEBUG>>00000024^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>>00000025^done,variables=[]
DEBUG>>00000026^done,register-names=["rax","rbx","rcx","rdx","rsi","rdi","rbp","rsp","r8","r9","r10","r11","r12","r13","r14","r15","rip","eflags","cs","ss","ds","es","fs","gs","st0","st1","st2","st3","st4","st5","st6","st7","fctrl","fstat","ftag","fiseg","fioff","foseg","fooff","fop","xmm0","xmm1","xmm2","xmm3","xmm4","xmm5","xmm6","xmm7","xmm8","xmm9","xmm10","xmm11","xmm12","xmm13","xmm14","xmm15","mxcsr","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","fs_base","gs_base","al","bl","cl","dl","sil","dil","bpl","spl","r8l","r9l","r10l","r11l","r12l","r13l","r14l","r15l","ah","bh","ch","dh","ax","bx","cx","dx","si","di","bp","","r8w","r9w","r10w","r11w","r12w","r13w","r14w","r15w","eax","ebx","ecx","edx","esi","edi","ebp","esp","r8d","r9d","r10d","r11d","r12d","r13d","r14d","r15d"]
DEBUG>>00000027-data-list-register-values N
-
- CodeLite Curious
- Posts: 9
- Joined: Sun Aug 30, 2015 9:45 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: GDB Fails after a Brief Period
Is the information I posted the one you need?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: GDB Fails after a Brief Period
I don't see anything wrong with the debug log you provided except for one Python error (i.e. according to the log, the debugger is still running)
Can you try and disable python support? this can be done from:
Uncheck this option: Settings->GDB settings->GNU gdb debugger->Display->Enable GDB pretty printing
Can you try and disable python support? this can be done from:
Uncheck this option: Settings->GDB settings->GNU gdb debugger->Display->Enable GDB pretty printing
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 9
- Joined: Sun Aug 30, 2015 9:45 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: GDB Fails after a Brief Period
Mmmmm... It is just weird. One of the computers I had installed suddenly did not abruptly stop like the other computers. I can debug like usual for that computer. I did not change any settings. The rest still have that problem.
What I saw for the other computers were that the debug pane automatically shut off after a brief period.
p/s: For the now working computer, I think I unchecked the GDB pretty printing temporarily before Codelite worked fine. Even I re-enabled the pretty printing after that, it was still working fine. I need to try that step on the other computers to see if it was the reason tmr.
What I saw for the other computers were that the debug pane automatically shut off after a brief period.
p/s: For the now working computer, I think I unchecked the GDB pretty printing temporarily before Codelite worked fine. Even I re-enabled the pretty printing after that, it was still working fine. I need to try that step on the other computers to see if it was the reason tmr.
-
- CodeLite Curious
- Posts: 9
- Joined: Sun Aug 30, 2015 9:45 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: GDB Fails after a Brief Period
Ah! Now I am able to replicate such that it consistently fails.
It was not because of GDB pretty printing as what I was coming to believe. It was because of the Disassemble and Locals panes. If one of those panes was active when I launched the debugger, Codelite would stop the debugger. Similarly, while I am debugging, if I switched to one of those panes, it would quit the debugger as well. It feels like a bug in Codelite.
The following is the output when I launched the Quick Debug:
This is the additional output when I switched to Locals before it automatically stops the debugger:
Or perhaps it is the GDB. I believe that last line was the culprit. When I launched Quick Debug and then manually issued -data-list-register-values N, it terminated the debugger.
It was not because of GDB pretty printing as what I was coming to believe. It was because of the Disassemble and Locals panes. If one of those panes was active when I launched the debugger, Codelite would stop the debugger. Similarly, while I am debugging, if I switched to one of those panes, it would quit the debugger as well. It feels like a bug in Codelite.
The following is the output when I launched the Quick Debug:
Code: Select all
Using gdbinit file: C:\Users\frask\AppData\Local\Temp\codelite_gdbinit.txt
Current working dir: C:\Program Files\CodeLite
Launching gdb from : C:\Students\Venno\Projects\C\Tokenizer\build\test
Starting debugger : C:\ProgramFiles\msys64\mingw64\bin\gdb.exe --command="C:\Users\frask\AppData\Local\Temp\codelite_gdbinit.txt" --interpreter=mi C:\Students\Venno\Projects\C\Tokenizer\build\test\out\test_AvrAssembler.exe
DEBUG>>set new-console on
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set print object on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print elements 200
DEBUG>>00000257-break-insert -f -t main
DEBUG>>00000258-enable-pretty-printing
DEBUG>>00000259-exec-arguments
DEBUG>>00000260-exec-run
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (GDB) 8.1\n"
GNU gdb (GDB) 8.1
DEBUG>>~"Copyright (C) 2018 Free Software Foundation, Inc.\n"
Copyright (C) 2018 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 \"x86_64-w64-mingw32\".\nType \"show configuration\" for configuration details."
This GDB was configured as "x86_64-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 C:\\Students\\Venno\\Projects\\C\\Tokenizer\\build\\test\\out\\test_AvrAssembler.exe..."
Reading symbols from C:\Students\Venno\Projects\C\Tokenizer\build\test\out\test_AvrAssembler.exe...
DEBUG>>~"done.\n"
done.
DEBUG>>&" File \"<string>\", line 2\n"
DEBUG>>&"SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \\UXXXXXXXX escape\n"
DEBUG>>&"C:\\Users\\frask\\AppData\\Local\\Temp\\codelite_gdbinit.txt:14: 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>>&"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>>00000257^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x000000000040158f",func="main",file="build/test/runners/test_AvrAssembler_runner.c",fullname="C:\\Students\\Venno\\Projects\\C\\Tokenizer\\build\\test\\runners\\test_AvrAssembler_runner.c",line="78",thread-groups=["i1"],times="0",original-location="main"}
DEBUG>>00000258^done
DEBUG>>00000259^done
>> Debuggee process ID: 17116
DEBUG>>=thread-group-started,id="i1",pid="17116"
=thread-group-started,id="i1",pid="17116"
DEBUG>>=thread-created,id="1",group-id="i1"
=thread-created,id="1",group-id="i1"
DEBUG>>~"[New Thread 17116.0x44c]\n"
[New Thread 17116.0x44c]
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="0x00007ff8f82b1000",to="0x00007ff8f84904d8"}]
=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="0x00007ff8f82b1000",to="0x00007ff8f84904d8"}]
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="0x00007ff8f63b1000",to="0x00007ff8f646124c"}]
=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="0x00007ff8f63b1000",to="0x00007ff8f646124c"}]
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="0x00007ff8f5371000",to="0x00007ff8f55e2e24"}]
=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="0x00007ff8f5371000",to="0x00007ff8f55e2e24"}]
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="0x00007ff8f6471000",to="0x00007ff8f650d4a4"}]
=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="0x00007ff8f6471000",to="0x00007ff8f650d4a4"}]
DEBUG>>00000260^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 17116.0x2d8c]\n"
[New Thread 17116.0x2d8c]
DEBUG>>=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x000000000040158f",func="main",file="build/test/runners/test_AvrAssembler_runner.c",fullname="C:\\Students\\Venno\\Projects\\C\\Tokenizer\\build\\test\\runners\\test_AvrAssembler_runner.c",line="78",thread-groups=["i1"],times="1",original-location="main"}
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x000000000040158f",func="main",file="build/test/runners/test_AvrAssembler_runner.c",fullname="C:\\Students\\Venno\\Projects\\C\\Tokenizer\\build\\test\\runners\\test_AvrAssembler_runner.c",line="78",thread-groups=["i1"],times="1",original-location="main"}
DEBUG>>~"\n"
DEBUG>>~"Thread 1 hit Temporary breakpoint 1, main () at build/test/runners/test_AvrAssembler_runner.c:78\n"
Thread 1 hit Temporary breakpoint 1, main () at build/test/runners/test_AvrAssembler_runner.c:78
DEBUG>>~"78\t UnityBegin(\"test_AvrAssembler.c\");\n"
78\t UnityBegin("test_AvrAssembler.c");
DEBUG>>*stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={addr="0x000000000040158f",func="main",args=[],file="build/test/runners/test_AvrAssembler_runner.c",fullname="C:\\Students\\Venno\\Projects\\C\\Tokenizer\\build\\test\\runners\\test_AvrAssembler_runner.c",line="78"},thread-id="1",stopped-threads="all"
DEBUG>>00000261-file-list-exec-source-file
DEBUG>>00000262-break-list
DEBUG>>=breakpoint-deleted,id="1"
=breakpoint-deleted,id="1"
DEBUG>>00000261^done,line="78",file="build/test/runners/test_AvrAssembler_runner.c",fullname="C:\\Students\\Venno\\Projects\\C\\Tokenizer\\build\\test\\runners\\test_AvrAssembler_runner.c",macro-info="0"
DEBUG>>00000262^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=[]}
Code: Select all
DEBUG>>00000263-stack-list-variables 2
DEBUG>>00000264-data-list-register-names
DEBUG>>00000263^done,variables=[]
DEBUG>>00000264^done,register-names=["rax","rbx","rcx","rdx","rsi","rdi","rbp","rsp","r8","r9","r10","r11","r12","r13","r14","r15","rip","eflags","cs","ss","ds","es","fs","gs","st0","st1","st2","st3","st4","st5","st6","st7","fctrl","fstat","ftag","fiseg","fioff","foseg","fooff","fop","xmm0","xmm1","xmm2","xmm3","xmm4","xmm5","xmm6","xmm7","xmm8","xmm9","xmm10","xmm11","xmm12","xmm13","xmm14","xmm15","mxcsr","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","fs_base","gs_base","al","bl","cl","dl","sil","dil","bpl","spl","r8l","r9l","r10l","r11l","r12l","r13l","r14l","r15l","ah","bh","ch","dh","ax","bx","cx","dx","si","di","bp","","r8w","r9w","r10w","r11w","r12w","r13w","r14w","r15w","eax","ebx","ecx","edx","esi","edi","ebp","esp","r8d","r9d","r10d","r11d","r12d","r13d","r14d","r15d"]
DEBUG>>00000265-data-list-register-values N
-
- CodeLite Enthusiast
- Posts: 10
- Joined: Mon Mar 22, 2010 1:59 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: GDB Fails after a Brief Period
I was about to start a new thread when the "search" function brought me here.
I'm experiencing the same problem: If the "locals" or "disassemble" pane are active after debugging has started and a breakpoint is hit, debugging is stopped after a few seconds. If some other pane like "watches" is active, everything is ok.
I'm using Codelite 12.0.8 w/ Mingw 7.3.0 x64.
After some further investigation, my conclusion is that the debugger version is important: after using the latest gdb 8.2 x64 from msys2 , the problem disappeared. With the debugger from MinGW 8.1 x64, the problem is still there. The Mingw 5.3 x32 bundled with Qt 5.11 also works.
EDIT: Mingw 7.3.0 x64 w/ gdb 8.1 worked [again] after rebuilding the workspace.
Morkel
I'm experiencing the same problem: If the "locals" or "disassemble" pane are active after debugging has started and a breakpoint is hit, debugging is stopped after a few seconds. If some other pane like "watches" is active, everything is ok.
I'm using Codelite 12.0.8 w/ Mingw 7.3.0 x64.
After some further investigation, my conclusion is that the debugger version is important: after using the latest gdb 8.2 x64 from msys2 , the problem disappeared. With the debugger from MinGW 8.1 x64, the problem is still there. The Mingw 5.3 x32 bundled with Qt 5.11 also works.
EDIT: Mingw 7.3.0 x64 w/ gdb 8.1 worked [again] after rebuilding the workspace.
Morkel