[Lldb-commits] [PATCH] D110472: [lldb] [gdb-remote] Use llvm::StringRef.split() and llvm::to_integer()
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Sep 26 02:53:35 PDT 2021
mgorny marked an inline comment as not done.
mgorny added inline comments.
================
Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp:1667
+ addr_t page;
+ if (llvm::to_integer(x, page))
dirty_page_list.push_back(page);
----------------
mgorny wrote:
> teemperor wrote:
> > Base 16 arg is lost here.
> Good catch, thanks.
Actually, scratch that. The values here include `0x` prefix. and apparently `llvm::to_integer()` handles that correctly only if base isn't specified.
Though it might be reasonable to fix `llvm::to_integer()` to allow matching prefix, I guess.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110472/new/
https://reviews.llvm.org/D110472
More information about the lldb-commits
mailing list