[Lldb-commits] [PATCH] find global by regex in SBTarget
Carlo Kok
ck at remobjects.com
Fri Sep 19 10:59:34 PDT 2014
On Fri, 19 Sep 2014 18:25:54 +0200, <jingham at apple.com> wrote:
> You can't do it this way, because it changes a public API, which we
> promised not to do. You have to add an API instead. Given that, maybe
> we want to add an enum to specify the textual match type, analogous to
> the search type for FindSymbols, so you could do "starts with",
> "regexp", etc?
>
Sounds like a good idea. The attached patch does this for both
GlobalVariables and GlobalFunctions, it supports Regex, "Normal", and
StartsWith (all use regex in the end to resolve the variable), I had to
add a method in ModuleList as there's nothing ModuleList that does regex,
but the underlying per-module apis do support it.
--
Carlo Kok
RemObjects Software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find-globals-by-regex2.patch
Type: application/octet-stream
Size: 6936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140919/6140083a/attachment.obj>
More information about the lldb-commits
mailing list