[Lldb-commits] [PATCH] D131138: [lldb] Dynamically generate enum names in lldbutil

Med Ismail Bennani via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 3 21:07:47 PDT 2022


mib added a comment.

This is awesome 🤩 ! I was also thinking of changing the way enums are exposed to python: instead of having everything added to the `lldb` python module, we could create a class per enum and have static attributes for each enum value so we could do something like `lldb.StopReason.Breakpoint`. That static variable could be a pair with the value/string representation or maybe we could use the `__str__` method to make it very pythonic. Just throwing some ideas here for later, but this LGTM 😊 !


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131138



More information about the lldb-commits mailing list