In `-target-select {remoteMode} {destination}`, the GDB remoteMode should also be able to be supplied by user.
xiahualiu opened this issue · comments
MIEngine/src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs
Lines 731 to 735 in 8e80e0c
As you can see, the remoteMode
can only be chosen from extended-remote
or remote
. After checking the older commits I believe the extended-remote was previously added to give support for the OpenOCD debugging server.
However, there are many other remote targets out there. For example, QNX OS uses qnx as the GDB target. You can list all available targets using help target
in a GDB console.
I think making the {remoteMode}
a json user-defined variable is a better idea. Since it is really up to the user what type of remote target gdb is going to attach to, and should not be limited by the fixed options provided by VS Code.
Thanks,
Xiahua