On Fri, 19 Sep 2014 18:25:54 +0200, <[email protected]> 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

Attachment: find-globals-by-regex2.patch
Description: Binary data

_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to