[Lldb-commits] [PATCH] find global by regex in SBTarget
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6936 bytes
Desc: not available
More information about the lldb-commits