[Lldb-commits] [PATCH] D60268: Breakpad: Parse Stack CFI records
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 5 07:24:08 PDT 2019
clayborg added inline comments.
================
Comment at: source/Plugins/ObjectFile/Breakpad/BreakpadRecords.cpp:393
+ llvm::StringRef LHS, RHS;
+ while (std::tie(Str, Line) = getToken(Line), !Str.empty()) {
+ if (Str.back() == ':') { // regN
----------------
clayborg wrote:
> Do we really need to pull the content apart into separate strings for each register? Seems like a lot of work and 99% of these we will never accessed. Maybe just store the entire string for all registers and be done?
You can add an iterator method to the StackCFIRecord record maybe for when you do want to parse each register?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60268/new/
https://reviews.llvm.org/D60268
More information about the lldb-commits
mailing list