[PATCH v2] gdb/dap - Add support for additional target types

Simon Farre simon.farre.cx@gmail.com
Wed Jun 14 10:54:37 GMT 2023


> I don't really understand this part of the implementation.
>
> However, I was wondering if we really want to bother with all this.
> Perhaps instead we should just have the clients pass any old "target"
> argument as a string and have gdb invoke '"target " + client_string'.
> I guess I don't see a whole lot of value in trying to separate out the
> various parameters somehow.

I think you're right actually. I looked over the other `target` commands 
and it seems as though they all

take just 1 parameter, which makes this implementation 
superfluous/over-designed. I think the

simple string approach, where the user passes `remote <addr>` or 
`extended-remote <addr>` is better.


More information about the Gdb-patches mailing list