microsoft / microsoft/MIEngine
In `-target-select {remoteMode} {destination}`, the GDB remoteMode should also be able to be supplied by user.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 859
- Forks
- 233
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 3
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs at lines 731-735 and inspect how -target-select is assembled. Check the surrounding configuration and command-handling paths to determine where a user-defined remoteMode would be supplied. Done means supporting targets such as qnx without restricting remoteMode to the two currently listed options, with relevant coverage if existing tests are found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100