> 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 ` or `extended-remote ` is better.