summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2022-06-15 09:25:07 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2022-06-15 09:04:11 -0700
commitd154d5d281c76eb5780ab20709584b782166c855 (patch)
tree7d96bd1fe2016566224222f4aa8dbe1a786f7423 /misc
parentbb12aa4d15077071faae5e7b3a4c864699474169 (diff)
Add imemo types to global namespace in lldb helpers
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6020
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/lldb_cruby.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py
index c9ed7dd429..a783b1b559 100755
--- a/misc/lldb_cruby.py
+++ b/misc/lldb_cruby.py
@@ -168,6 +168,12 @@ def lldb_init(debugger):
value_types = []
g = globals()
+
+ imemo_types = target.FindFirstType('enum imemo_type')
+
+ for member in imemo_types.GetEnumMembers():
+ g[member.GetName()] = member.GetValueAsUnsigned()
+
for enum in target.FindFirstGlobalVariable('ruby_dummy_gdb_enums'):
enum = enum.GetType()
members = enum.GetEnumMembers()