[Lldb-commits] [PATCH] D120292: [lldb] Add lldb.find helper function

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 24 09:16:18 PST 2022


JDevlieghere added a comment.

This is really great, this is going to save me a lot of time.

I wonder if we should take this even further and make it a first class command in lldb, similar to `apropos`. (I wouldn't make it part of apropos, because it can already be overwhelming.) By making it its own command, we can have the same command for all the supported scripting languages. Similar to `script` it would look at the current scripting language by default, but you could also search other supported language with a flag. I think the implementation could remain the same. Every script interpreter plugin could have a `find` method that it implements (or doesn't). For the Python case, it could call the find command you have here.

What do you think?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120292/new/

https://reviews.llvm.org/D120292



More information about the lldb-commits mailing list