Hi.
Not all undefined GDB packets return an empty response.
This is issue when debugging using LLDB. Since the openocd does not immediately return an empty response, each nexti command becomes very slow due to LLDB waiting for a receive timeout.
Eg:
(gdb) maintenance packet jThreadsInfo
sending: jThreadsInfo
Ignoring packet error, continuing...
error while fetching packet from remote target
(gdb) maintenance packet xxx
sending: xxx
received: ""
(gdb) maintenance packet jxxx
sending: jxxx
Ignoring packet error, continuing...
error while fetching packet from remote target
I found out, a lot of gdb packets in openocd has missing else with empty response.
should have
elsewith:Thanks for the report.
Could you please submit a patch to https://review.openocd.org ?
You may find details in https://openocd.org/doc/doxygen/html/patchguide.html