1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix lldb scripts on older lldb python

This commit is contained in:
Aaron Patterson 2022-07-06 13:20:53 -07:00
parent dbb23f29cb
commit 4ccaf6285f
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

View file

@ -170,8 +170,10 @@ def lldb_init(debugger):
g = globals()
imemo_types = target.FindFirstType('enum imemo_type')
enum_members = imemo_types.GetEnumMembers()
for member in imemo_types.GetEnumMembers():
for i in range(enum_members.GetSize()):
member = enum_members.GetTypeEnumMemberAtIndex(i)
g[member.GetName()] = member.GetValueAsUnsigned()
for enum in target.FindFirstGlobalVariable('ruby_dummy_gdb_enums'):