[Lldb-commits] [lldb] [lldb] Store the command in the CommandReturnObject (PR #125132)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Sat Feb 1 14:26:24 PST 2025
JDevlieghere wrote:
> This looks good. I wonder if we ought to do something a little less ad hoc about the cases where our command return objects are from HandleCommands, so they won't necessarily have the result of a single command. In the case where a UI is parsing these, it might very well need to know that fact. They all currently have `<>` around the command name, but sadly we don't outlaw `<` as the initial character of a command, so you can't 100% tell from that.
I can add an enum to indicate whether the command was a user command or something LLDB put together and have two constructors that each do the appropriate thing. `GetCommand` could then return a predefined value for non-user commands.
https://github.com/llvm/llvm-project/pull/125132
More information about the lldb-commits
mailing list