Closed smwikipedia closed 3 months ago
halt
is meaningful to most gdb-servers. When you have external
server type, you have to supply all the required commands to make debug possible. external
means we have no idea what your are doing or why, so some reasonable defaults are used. Please read our docs and how our debugger works and what it expects...
https://github.com/Marus/cortex-debug/wiki/Cortex-Debug-Under-the-hood
Note that we do not issue any halt
command to the server. We issue that command to gdb
and it is supposed to do the right thing based on the server. If your gdb does not support a halt
, many things will not work.
Describe the bug I launch the
qemu-system-arm
with-s
option, which start a gdbserver on-gdb tcp::1234
. Then I connect Cortex Debug to the gdbserver with below launch.json in Visual Studio Code.Then in the Visual Studio Code's Debug Console window, below message is printed. The
unknown command: 'halt'
is printed on the last line.And the
-ex "b reset_handler"
argument is not executed.The similar set up works fine with Native Debug extension for Visual Studio Code.
I guess the Cortex Debug is still expecting an OpenOCD gdbserver, though I specify
external
for the "servertype". Because AFAIK, thehalt
command is only meaningful to OpenOCD.The error message of "halt" command may be not critical.
But the failure of
-ex
option is critical.