Switch the gdb-remote client logic to use local (LLDB) register numbers
in value_regs/invalidate_regs rather than remote regnos. This involves
translating regnos received from lldb-server.
Details
Diff Detail
Event Timeline
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | ||
---|---|---|
4684 | drop local_regnum and use llvm::enumerate | |
4699 | Why should we have LLDB_INVALID_REGNUM in this list? I think that a more interesting question is what to do if the value is not located in the remote_to_local_map. This will map it to zero, which isn't very useful. I suppose we could just drop this value -- this is something that was probably happening already (if we weren't just crashing). |
clang-format: please reformat the code