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:
parent
dbb23f29cb
commit
4ccaf6285f
1 changed files with 3 additions and 1 deletions
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue