Changed the register number lists for the qRegisterInfo packet response to be raw hex to match all other register reading and writing APIs.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@173105 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index ce220d3..07ced0d 100644
--- a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -382,7 +382,9 @@
value_pair = value_pair.second.split(',');
if (!value_pair.first.empty())
{
- value_regs.push_back (Args::StringToUInt32 (value_pair.first.str().c_str()));
+ uint32_t reg = Args::StringToUInt32 (value_pair.first.str().c_str(), LLDB_INVALID_REGNUM, 16);
+ if (reg != LLDB_INVALID_REGNUM)
+ value_regs.push_back (reg);
}
} while (!value_pair.second.empty());
}
@@ -395,7 +397,9 @@
value_pair = value_pair.second.split(',');
if (!value_pair.first.empty())
{
- invalidate_regs.push_back (Args::StringToUInt32 (value_pair.first.str().c_str()));
+ uint32_t reg = Args::StringToUInt32 (value_pair.first.str().c_str(), LLDB_INVALID_REGNUM, 16);
+ if (reg != LLDB_INVALID_REGNUM)
+ invalidate_regs.push_back (reg);
}
} while (!value_pair.second.empty());
}