You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS and version of remote machine (if applicable): N/A
GDB / LLDB version: GDB 14.2 (MSYS)
Bug Summary and Steps to Reproduce
Bug Summary:
I am trying to debug a Ceedling unit test.
Using the "Ceedling test" task, I run the test and it compiles successfully and runs the unit tests. When I try to debug the program through the program the "(gdb) Launch" through the "Run and Debug" sidebar, I get the error below and the debug process is halted immediately.
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". Error creating process /usr/bin/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out, (error 2: The system cannot find the file specified.))
The path generated is incorrect. It is a combination of :
the gdb path "c:/msys64/usr/bin/gdb.exe",
the current working directory "c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/"
the path to the actual executable "c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out"
I've verified that the actual executable exists.
It does not matter if breakpoints are set.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (99) LaunchOptions{\"name\":\"(gdb) Launch\",\"type\":\"cppdbg\",\"request\":\"launch\",\"program\":\"c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out\",\"args\":[],\"stopAtEntry\":false,\"cwd\":\"c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW\",\"environment\":[],\"externalConsole\":true,\"logging\":{\"engineLogging\":true,\"trace\":true,\"traceResponse\":true},\"MIMode\":\"gdb\",\"miDebuggerPath\":\"c:/msys64/usr/bin/gdb.exe\",\"setupCommands\":[{\"description\":\"Enable pretty-printing for gdb\",\"text\":\"-enable-pretty-printing\",\"ignoreFailures\":true},{\"description\":\"Set Disassembly Flavor to Intel\",\"text\":\"-gdb-set disassembly-flavor intel\",\"ignoreFailures\":true}],\"__configurationTarget\":6,\"__sessionId\":\"4d33cf59-1548-4a67-b503-78ce0186e1e2\"}\r\n"},"seq":2}
1: (99) LaunchOptions{"name":"(gdb) Launch","type":"cppdbg","request":"launch","program":"c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out","args":[],"stopAtEntry":false,"cwd":"c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW","environment":[],"externalConsole":true,"logging":{"engineLogging":true,"trace":true,"traceResponse":true},"MIMode":"gdb","miDebuggerPath":"c:/msys64/usr/bin/gdb.exe","setupCommands":[{"description":"Enable pretty-printing for gdb","text":"-enable-pretty-printing","ignoreFailures":true},{"description":"Set Disassembly Flavor to Intel","text":"-gdb-set disassembly-flavor intel","ignoreFailures":true}],"__configurationTarget":6,"__sessionId":"4d33cf59-1548-4a67-b503-78ce0186e1e2"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (159) Starting: \"c:/msys64/usr/bin/gdb.exe\" --interpreter=mi\r\n"},"seq":4}
1: (159) Starting: "c:/msys64/usr/bin/gdb.exe" --interpreter=mi
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (184) DebuggerPid=23636\r\n"},"seq":6}
1: (184) DebuggerPid=23636
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7565) ->=thread-group-added,id=\"i1\"\r\n"},"seq":8}
1: (7565) ->=thread-group-added,id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7572) ->~\"GNU gdb (GDB) 14.2\\n\"\r\n"},"seq":10}
1: (7572) ->~"GNU gdb (GDB) 14.2\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7574) ->~\"Copyright (C) 2023 Free Software Foundation, Inc.\\n\"\r\n"},"seq":12}
1: (7574) ->~"Copyright (C) 2023 Free Software Foundation, Inc.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7574) ->~\"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.\"\r\n"},"seq":14}
1: (7574) ->~"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."
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7574) ->~\"\\nType \\\"show copying\\\" and \\\"show warranty\\\" for details.\\n\"\r\n"},"seq":16}
1: (7574) ->~"\nType \"show copying\" and \"show warranty\" for details.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7575) ->~\"This GDB was configured as \\\"x86_64-pc-cygwin\\\".\\n\"\r\n"},"seq":18}
1: (7575) ->~"This GDB was configured as \"x86_64-pc-cygwin\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7575) ->~\"Type \\\"show configuration\\\" for configuration details.\\n\"\r\n"},"seq":20}
1: (7575) ->~"Type \"show configuration\" for configuration details.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7575) ->~\"For bug reporting instructions, please see:\\n\"\r\n"},"seq":22}
1: (7575) ->~"For bug reporting instructions, please see:\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7575) ->~\"<https://www.gnu.org/software/gdb/bugs/>.\\n\"\r\n"},"seq":24}
1: (7575) ->~"<https://www.gnu.org/software/gdb/bugs/>.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7575) ->~\"Find the GDB manual and other documentation resources online at:\\n <\"\r\n"},"seq":26}
1: (7575) ->~"Find the GDB manual and other documentation resources online at:\n <"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7576) ->~\"http://www.gnu.org/software/gdb/documentation/>.\\n\\n\"\r\n"},"seq":28}
1: (7576) ->~"http://www.gnu.org/software/gdb/documentation/>.\n\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7576) ->~\"For help, type \\\"help\\\".\\n\"\r\n"},"seq":30}
1: (7576) ->~"For help, type \"help\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7576) ->~\"Type \\\"apropos word\\\" to search for commands related to \\\"word\\\".\\n\"\r\n"},"seq":32}
1: (7576) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7576) ->&\"Traceback (most recent call last):\\n\"\r\n"},"seq":34}
1: (7576) ->&"Traceback (most recent call last):\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7576) ->&\" File \\\"<string>\\\", line 3, in <module>\\n\"\r\n"},"seq":36}
1: (7576) ->&" File \"<string>\", line 3, in <module>\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7576) ->&\"ModuleNotFoundError: No module named 'libstdcxx'\\n\"\r\n"},"seq":38}
1: (7576) ->&"ModuleNotFoundError: No module named 'libstdcxx'\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7576) ->&\"/etc/gdbinit:6: Error in sourced command file:\\n\"\r\n"},"seq":40}
1: (7576) ->&"/etc/gdbinit:6: Error in sourced command file:\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7577) ->&\"Error while executing Python code.\\n\"\r\n"},"seq":42}
1: (7577) ->&"Error while executing Python code.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7577) ->(gdb)\r\n"},"seq":44}
1: (7577) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7583) <-1001-gdb-set mi-async on\r\n"},"seq":46}
1: (7583) <-1001-gdb-set mi-async on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7594) ->1001^done\r\n"},"seq":48}
1: (7594) ->1001^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7595) ->(gdb)\r\n"},"seq":50}
1: (7595) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7595) ->&\"\\n\"\r\n"},"seq":52}
1: (7595) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7595) ->^done\r\n"},"seq":54}
1: (7595) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7595) ->(gdb)\r\n"},"seq":56}
1: (7595) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7598) 1001: elapsed time 15\r\n"},"seq":58}
1: (7598) 1001: elapsed time 15
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7601) <-1002-interpreter-exec console \"show configuration\"\r\n"},"seq":60}
1: (7601) <-1002-interpreter-exec console "show configuration"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7611) ->~\"This GDB was configured as follows:\\n configure --host=\"\r\n"},"seq":62}
1: (7611) ->~"This GDB was configured as follows:\n configure --host="
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7612) ->~\"x86_64-pc-cygwin --target=x86_64-pc-cygwin\\n\"\r\n"},"seq":64}
1: (7612) ->~"x86_64-pc-cygwin --target=x86_64-pc-cygwin\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7612) ->~\"\\t --with-auto-load-dir=$debugdir:$datadir/auto-load\\n\\t --with-auto-load-safe-path=\"\r\n"},"seq":66}
1: (7612) ->~"\t --with-auto-load-dir=$debugdir:$datadir/auto-load\n\t --with-auto-load-safe-path="
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7612) ->~\"$debugdir:$datadir/auto-load\\n\"\r\n"},"seq":68}
1: (7612) ->~"$debugdir:$datadir/auto-load\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7612) ->~\"\\t --with-expat\\n\"\r\n"},"seq":70}
1: (7612) ->~"\t --with-expat\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7612) ->~\"\\t --with-gdb-datadir=/usr/share/gdb (relocatable)\\n\"\r\n"},"seq":72}
1: (7612) ->~"\t --with-gdb-datadir=/usr/share/gdb (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7612) ->~\"\\t --with-jit-reader-dir=/usr/lib/gdb (relocatable)\\n\"\r\n"},"seq":74}
1: (7612) ->~"\t --with-jit-reader-dir=/usr/lib/gdb (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7613) ->~\"\\t --without-libunwind-ia64\\n\"\r\n"},"seq":76}
1: (7613) ->~"\t --without-libunwind-ia64\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7613) ->~\"\\t --with-lzma\\n\"\r\n"},"seq":78}
1: (7613) ->~"\t --with-lzma\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7613) ->~\"\\t --without-babeltrace\\n\"\r\n"},"seq":80}
1: (7613) ->~"\t --without-babeltrace\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7613) ->~\"\\t --without-intel-pt\\n\"\r\n"},"seq":82}
1: (7613) ->~"\t --without-intel-pt\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7613) ->~\"\\t --without-xxhash\\n\"\r\n"},"seq":84}
1: (7613) ->~"\t --without-xxhash\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7613) ->~\"\\t --with-python=/usr (relocatable)\\n\"\r\n"},"seq":86}
1: (7613) ->~"\t --with-python=/usr (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7613) ->~\"\\t --with-python-libdir=/usr/lib (relocatable)\\n\"\r\n"},"seq":88}
1: (7613) ->~"\t --with-python-libdir=/usr/lib (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7614) ->~\"\\t --without-debuginfod\\n\"\r\n"},"seq":90}
1: (7614) ->~"\t --without-debuginfod\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7614) ->~\"\\t --with-curses\\n\"\r\n"},"seq":92}
1: (7614) ->~"\t --with-curses\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7614) ->~\"\\t --with-guile\\n\"\r\n"},"seq":94}
1: (7614) ->~"\t --with-guile\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7614) ->~\"\\t --without-amd-dbgapi\\n\"\r\n"},"seq":96}
1: (7614) ->~"\t --without-amd-dbgapi\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7614) ->~\"\\t --disable-source-highlight\\n\"\r\n"},"seq":98}
1: (7614) ->~"\t --disable-source-highlight\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7614) ->~\"\\t --enable-threading\\n\"\r\n"},"seq":100}
1: (7614) ->~"\t --enable-threading\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7615) ->~\"\\t --enable-tui\\n\"\r\n"},"seq":102}
1: (7615) ->~"\t --enable-tui\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7615) ->~\"\\t --with-system-readline\\n\"\r\n"},"seq":104}
1: (7615) ->~"\t --with-system-readline\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7615) ->~\"\\t --with-separate-debug-dir=/usr/lib/debug (relocatable)\\n\"\r\n"},"seq":106}
1: (7615) ->~"\t --with-separate-debug-dir=/usr/lib/debug (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7615) ->~\"\\t --with-system-gdbinit=/etc/gdbinit\\n\"\r\n"},"seq":108}
1: (7615) ->~"\t --with-system-gdbinit=/etc/gdbinit\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7615) ->~\"\\n(\\\"Relocatable\\\" means the directory can be moved with the GDB installation\\ntree, and GDB will still find it.)\\n\"\r\n"},"seq":110}
1: (7615) ->~"\n(\"Relocatable\" means the directory can be moved with the GDB installation\ntree, and GDB will still find it.)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7615) ->1002^done\r\n"},"seq":112}
1: (7615) ->1002^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7616) ->(gdb)\r\n"},"seq":114}
1: (7616) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7616) ->&\"\\n\"\r\n"},"seq":116}
1: (7616) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7616) ->^done\r\n"},"seq":118}
1: (7616) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7616) 1002: elapsed time 14\r\n"},"seq":120}
1: (7616) 1002: elapsed time 14
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (7616) ->(gdb)\r\n"},"seq":122}
1: (7616) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/MIEngine/WindowsRuntime","data":{"VS.Diagnostics.Debugger.MIEngine.WindowsRuntime":"Cygwin"}},"seq":124}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22678) <-1003-enable-pretty-printing\r\n"},"seq":126}
1: (22678) <-1003-enable-pretty-printing
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22691) ->1003^done\r\n"},"seq":128}
1: (22691) ->1003^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22692) ->(gdb)\r\n"},"seq":130}
1: (22692) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22692) 1003: elapsed time 13\r\n"},"seq":132}
1: (22692) 1003: elapsed time 13
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22693) ->&\"\\n\"\r\n"},"seq":134}
1: (22693) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22694) <-1004-gdb-set disassembly-flavor intel\r\n"},"seq":136}
1: (22694) <-1004-gdb-set disassembly-flavor intel
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22695) ->^done\r\n"},"seq":138}
1: (22695) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22696) ->(gdb)\r\n"},"seq":140}
1: (22696) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22709) ->1004^done\r\n"},"seq":142}
1: (22709) ->1004^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22710) ->(gdb)\r\n"},"seq":144}
1: (22710) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22710) 1004: elapsed time 15\r\n"},"seq":146}
1: (22710) 1004: elapsed time 15
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22710) ->&\"\\n\"\r\n"},"seq":148}
1: (22710) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22711) <-1005-interpreter-exec console \"set pagination off\"\r\n"},"seq":150}
1: (22711) <-1005-interpreter-exec console "set pagination off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22712) ->^done\r\n"},"seq":152}
1: (22712) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22713) ->(gdb)\r\n"},"seq":154}
1: (22713) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22727) ->=cmd-param-changed,param=\"pagination\",value=\"off\"\r\n"},"seq":156}
1: (22727) ->=cmd-param-changed,param="pagination",value="off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22728) ->1005^done\r\n"},"seq":158}
1: (22728) ->1005^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22729) ->(gdb)\r\n"},"seq":160}
1: (22729) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22730) ->&\"\\n\"\r\n"},"seq":162}
1: (22730) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22729) 1005: elapsed time 18\r\n"},"seq":164}
1: (22729) 1005: elapsed time 18
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22731) ->^done\r\n"},"seq":166}
1: (22731) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22731) <-1006-gdb-set auto-solib-add on\r\n"},"seq":168}
1: (22731) <-1006-gdb-set auto-solib-add on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22732) ->(gdb)\r\n"},"seq":170}
1: (22732) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22743) ->1006^done\r\n"},"seq":172}
1: (22743) ->1006^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22743) ->(gdb)\r\n"},"seq":174}
1: (22743) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22744) 1006: elapsed time 12\r\n"},"seq":176}
1: (22744) 1006: elapsed time 12
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22745) ->&\"\\n\"\r\n"},"seq":178}
1: (22745) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22745) <-1007-gdb-set solib-search-path c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out:\r\n"},"seq":180}
1: (22745) <-1007-gdb-set solib-search-path c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out:
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22745) ->^done\r\n"},"seq":182}
1: (22745) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22746) ->(gdb)\r\n"},"seq":184}
1: (22746) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22759) ->1007^done\r\n"},"seq":186}
1: (22759) ->1007^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22759) ->(gdb)\r\n"},"seq":188}
1: (22759) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22759) 1007: elapsed time 14\r\n"},"seq":190}
1: (22759) 1007: elapsed time 14
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22759) <-1008-environment-cd c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW\r\n"},"seq":192}
1: (22759) <-1008-environment-cd c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22759) ->&\"\\n\"\r\n"},"seq":194}
1: (22759) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22760) ->^done\r\n"},"seq":196}
1: (22760) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22760) ->(gdb)\r\n"},"seq":198}
1: (22760) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22774) ->1008^done\r\n"},"seq":200}
1: (22774) ->1008^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22775) ->(gdb)\r\n"},"seq":202}
1: (22775) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22775) 1008: elapsed time 15\r\n"},"seq":204}
1: (22775) 1008: elapsed time 15
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22775) ->&\"\\n\"\r\n"},"seq":206}
1: (22775) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22775) <-1009-gdb-set new-console on\r\n"},"seq":208}
1: (22775) <-1009-gdb-set new-console on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22775) ->^done\r\n"},"seq":210}
1: (22775) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22776) ->(gdb)\r\n"},"seq":212}
1: (22776) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22791) ->1009^done\r\n"},"seq":214}
1: (22791) ->1009^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22791) ->(gdb)\r\n"},"seq":216}
1: (22791) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22791) 1009: elapsed time 16\r\n"},"seq":218}
1: (22791) 1009: elapsed time 16
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22792) ->&\"\\n\"\r\n"},"seq":220}
1: (22792) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22792) ->^done\r\n"},"seq":222}
1: (22792) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22792) ->(gdb)\r\n"},"seq":224}
1: (22792) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22792) <-1010-file-exec-and-symbols c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out\r\n"},"seq":226}
1: (22792) <-1010-file-exec-and-symbols c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22813) ->1010^done\r\n"},"seq":228}
1: (22813) ->1010^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22813) ->(gdb)\r\n"},"seq":230}
1: (22813) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22813) 1010: elapsed time 21\r\n"},"seq":232}
1: (22813) 1010: elapsed time 21
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22814) <-1011-interpreter-exec console \"show architecture\"\r\n"},"seq":234}
1: (22814) <-1011-interpreter-exec console "show architecture"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22814) ->&\"\\n\"\r\n"},"seq":236}
1: (22814) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22814) ->^done\r\n"},"seq":238}
1: (22814) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22814) ->(gdb)\r\n"},"seq":240}
1: (22814) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22825) ->~\"The target architecture is set to \\\"auto\\\" (currently \\\"i386:x86-64\\\").\\n\"\r\n"},"seq":242}
1: (22825) ->~"The target architecture is set to \"auto\" (currently \"i386:x86-64\").\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22826) ->1011^done\r\n"},"seq":244}
1: (22826) ->1011^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22827) ->(gdb)\r\n"},"seq":246}
1: (22827) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22828) 1011: elapsed time 13\r\n"},"seq":248}
1: (22828) 1011: elapsed time 13
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22828) ->&\"\\n\"\r\n"},"seq":250}
1: (22828) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22830) ->^done\r\n"},"seq":252}
1: (22830) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22831) ->(gdb)\r\n"},"seq":254}
1: (22831) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22833) <-1012-break-insert -f main\r\n"},"seq":256}
1: (22833) <-1012-break-insert -f main
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"[Warning] 1: (22850) STDERR: BFD: reopening /usr/bin/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out: No such file or directory\r\n"},"seq":258}
[Warning] 1: (22850) STDERR: BFD: reopening /usr/bin/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out: No such file or directory
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22857) ->1012^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x00000001400015a7\",func=\"main\",file=\"build/test/runners/test_bit_operations_runner.c\",fullname=\"/c/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/runners/test_bit_operations_runner.c\",line=\"79\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\r\n"},"seq":260}
1: (22857) ->1012^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000001400015a7",func="main",file="build/test/runners/test_bit_operations_runner.c",fullname="/c/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/runners/test_bit_operations_runner.c",line="79",thread-groups=["i1"],times="0",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22858) ->(gdb)\r\n"},"seq":262}
1: (22858) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22858) ->&\"\\n\"\r\n"},"seq":264}
1: (22858) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22859) ->^done\r\n"},"seq":266}
1: (22859) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22859) ->(gdb)\r\n"},"seq":268}
1: (22859) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22868) 1012: elapsed time 35\r\n"},"seq":270}
1: (22868) 1012: elapsed time 35
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22876) Send Event AD7EngineCreateEvent\r\n"},"seq":272}
1: (22876) Send Event AD7EngineCreateEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22878) Send Event AD7ProgramCreateEvent\r\n"},"seq":274}
1: (22878) Send Event AD7ProgramCreateEvent
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"17.12.21003.1","VS.Diagnostics.Debugger.HostVersion":"17.12.21003.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":22797,"VS.Diagnostics.Debugger.MIMode":"gdb","VS.Diagnostics.Debugger.FrameworkVersion":"8.0.824.36612"}},"seq":276}
--> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":278}
--> E (initialized): {"type":"event","event":"initialized","body":{},"seq":280}
<-- C (setBreakpoints-3): {"command":"setBreakpoints","arguments":{"source":{"name":"test_specific_tesla.c","path":"c:\\Checked_Out\\Memory_Seat_Module\\Memory_Seat_Module_FW\\test_ceedling\\test\\SeatSpecific\\Tesla\\test_specific_tesla.c"},"lines":[707],"breakpoints":[{"line":707}],"sourceModified":false},"type":"request","seq":3}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22988) <-1013-break-insert -f test_specific_tesla.c:707\r\n"},"seq":283}
1: (22988) <-1013-break-insert -f test_specific_tesla.c:707
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22992) ->&\"No source file named test_specific_tesla.c.\\n\"\r\n"},"seq":285}
1: (22992) ->&"No source file named test_specific_tesla.c.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22993) ->1013^done,bkpt={number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"<PENDING>\",pending=\"test_specific_tesla.c:707\",times=\"0\",original-location=\"test_specific_tesla.c:707\"}\r\n"},"seq":287}
1: (22993) ->1013^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="test_specific_tesla.c:707",times="0",original-location="test_specific_tesla.c:707"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22993) ->(gdb)\r\n"},"seq":289}
1: (22993) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22993) 1013: elapsed time 4\r\n"},"seq":291}
1: (22993) 1013: elapsed time 4
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22993) ->&\"\\n\"\r\n"},"seq":293}
1: (22993) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22993) ->^done\r\n"},"seq":295}
1: (22993) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (22994) ->(gdb)\r\n"},"seq":297}
1: (22994) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23001) Send Event AD7BreakpointErrorEvent\r\n"},"seq":299}
1: (23001) Send Event AD7BreakpointErrorEvent
--> R (setBreakpoints-3): {"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":707,"BoundBreakpoints":[]}]},"seq":301}
--> E (breakpoint): {"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":false,"message":"Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained.","line":707,"BoundBreakpoints":[]}},"seq":303}
<-- C (setFunctionBreakpoints-4): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
--> R (setFunctionBreakpoints-4): {"type":"response","request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":306}
<-- C (setInstructionBreakpoints-5): {"command":"setInstructionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":5}
--> R (setInstructionBreakpoints-5): {"type":"response","request_seq":5,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]},"seq":309}
<-- C (setExceptionBreakpoints-6): {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[]},"type":"request","seq":6}
--> R (setExceptionBreakpoints-6): {"type":"response","request_seq":6,"success":true,"command":"setExceptionBreakpoints","body":{"breakpoints":[]},"seq":312}
<-- C (setDataBreakpoints-7): {"command":"setDataBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":7}
--> R (setDataBreakpoints-7): {"type":"response","request_seq":7,"success":true,"command":"setDataBreakpoints","body":{"breakpoints":[]},"seq":315}
<-- C (configurationDone-8): {"command":"configurationDone","type":"request","seq":8}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23194) Send Event AD7LoadCompleteEvent\r\n"},"seq":319}
1: (23194) Send Event AD7LoadCompleteEvent
--> R (configurationDone-8): {"type":"response","request_seq":8,"success":true,"command":"configurationDone","body":{},"seq":318}
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"=thread-group-added,id=\"i1\"\nGNU gdb (GDB) 14.2\nCopyright (C) 2023 Free Software Foundation, Inc.\nLicense 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.\nType \"show copying\" and \"show warranty\" for details.\nThis GDB was configured as \"x86_64-pc-cygwin\".\nType \"show configuration\" for configuration details.\nFor bug reporting instructions, please see:\n<https://www.gnu.org/software/gdb/bugs/>.\nFind the GDB manual and other documentation resources online at:\n <http://www.gnu.org/software/gdb/documentation/>.\n\nFor help, type \"help\".\nType \"apropos word\" to search for commands related to \"word\".\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n=cmd-param-changed,param=\"pagination\",value=\"off\"\n"},"seq":322}
=thread-group-added,id="i1"
GNU gdb (GDB) 14.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty"for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration"for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type"help".
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"<-- C (threads-9): {"command":"threads","type":"request","seq":9}
--> R (threads-9): {"type":"response","request_seq":9,"success":true,"command":"threads","body":{"threads":[]},"seq":325}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23242) <-1014-exec-run\r\n"},"seq":327}
1: (23242) <-1014-exec-run
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23250) ->1014^error,msg=\"Error creating process /usr/bin/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out, (error 2: The system cannot find the file specified.)\"\r\n"},"seq":329}
1: (23250) ->1014^error,msg="Error creating process /usr/bin/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out, (error 2: The system cannot find the file specified.)"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23251) ->(gdb)\r\n"},"seq":331}
1: (23251) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23251) 1014: elapsed time 8\r\n"},"seq":333}
1: (23251) 1014: elapsed time 8
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23251) ->&\"\\n\"\r\n"},"seq":335}
1: (23251) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23252) ->^done\r\n"},"seq":337}
1: (23252) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23252) ->(gdb)\r\n"},"seq":339}
1: (23252) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23256) Send Event AD7MessageEvent\r\n"},"seq":341}
1: (23256) Send Event AD7MessageEvent
--> E (output): {"type":"event","event":"output","body":{"category":"stderr","output":"ERROR: Unable to start debugging. Unexpected GDB output from command \"-exec-run\". Error creating process /usr/bin/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out, (error 2: The system cannot find the file specified.)\r\n"},"seq":343}
ERROR: Unable to start debugging. Unexpected GDB output from command"-exec-run". Error creating process /usr/bin/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out, (error 2: The system cannot find the file specified.)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23264) <--gdb-exit\r\n"},"seq":345}
1: (23264) <--gdb-exit
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23276) ->^exit\r\n"},"seq":347}
1: (23276) ->^exit
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23280) <-logout\r\n"},"seq":349}
1: (23280) <-logout
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23282) Send Event AD7ProgramDestroyEvent\r\n"},"seq":351}
1: (23282) Send Event AD7ProgramDestroyEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"The program 'c:\\Checked_Out\\Memory_Seat_Module\\Memory_Seat_Module_FW\\test_ceedling\\build\\test\\out\\test_bit_operations.out' has exited with code 42 (0x0000002a).\r\n\r\n"},"seq":353}
The program 'c:\Checked_Out\Memory_Seat_Module\Memory_Seat_Module_FW\test_ceedling\build\test\out\test_bit_operations.out' has exited with code 42 (0x0000002a).
--> E (exited): {"type":"event","event":"exited","body":{"exitCode":42},"seq":355}
--> E (terminated): {"type":"event","event":"terminated","body":{},"seq":357}
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/DebugCompleted","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"17.12.21003.1","VS.Diagnostics.Debugger.HostVersion":"17.12.21003.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.DebugCompleted.BreakCounter":0}},"seq":359}
<-- C (disconnect-10): {"command":"disconnect","arguments":{"restart":false},"type":"request","seq":10}
--> R (disconnect-10): {"type":"response","request_seq":10,"success":true,"command":"disconnect","body":{},"seq":362}
Other Extensions
I've disabled all other extensions except cpptool and I still had the same problem. When I disabled all other extensions, including "command-variable", which is used to fix the slashes in my path, I had to hard code the path to the CWD and program in launch.json, but the problem remained.
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue. We’ll let you know if we need more information to investigate it. Additionally, if you're working with GDB/LLDB, please note that the code is open source at https://github.com/microsoft/MIEngine/wiki/Contributing-Code . Your contributions are always welcome and appreciated.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
I am trying to debug a Ceedling unit test.
Using the "Ceedling test" task, I run the test and it compiles successfully and runs the unit tests. When I try to debug the program through the program the "(gdb) Launch" through the "Run and Debug" sidebar, I get the error below and the debug process is halted immediately.
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". Error creating process /usr/bin/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/c:/Checked_Out/Memory_Seat_Module/Memory_Seat_Module_FW/test_ceedling/build/test/out/test_bit_operations.out, (error 2: The system cannot find the file specified.))
The path generated is incorrect. It is a combination of :
I've verified that the actual executable exists.
It does not matter if breakpoints are set.
Debugger Configurations
Debugger Logs
Other Extensions
I've disabled all other extensions except cpptool and I still had the same problem. When I disabled all other extensions, including "command-variable", which is used to fix the slashes in my path, I had to hard code the path to the CWD and program in launch.json, but the problem remained.
Additional Information
No response
The text was updated successfully, but these errors were encountered: