зеркало из https://github.com/github/ruby.git
Fix up global name references in misc/lldb_disasm.py
Some of the symbols had changed names and the script was no longer finding them.
This commit is contained in:
Родитель
b61e469c74
Коммит
20c190f95a
|
@ -162,7 +162,7 @@ class IseqDisassembler:
|
|||
size_of_short = tUShort.GetByteSize()
|
||||
size_of_char = self.tChar.GetByteSize()
|
||||
|
||||
symbol = target.FindSymbols("insn_op_types.y")[0].GetSymbol()
|
||||
symbol = target.FindSymbols("rb_vm_insn_op_offset")[0].GetSymbol()
|
||||
section = symbol.GetStartAddress().GetSection()
|
||||
addr_of_table = symbol.GetStartAddress().GetOffset()
|
||||
|
||||
|
@ -174,7 +174,7 @@ class IseqDisassembler:
|
|||
if not error.Success():
|
||||
print("error getting op type offset: ", error)
|
||||
|
||||
symbol = target.FindSymbols("insn_op_types.x")[0].GetSymbol()
|
||||
symbol = target.FindSymbols("rb_vm_insn_op_base")[0].GetSymbol()
|
||||
section = symbol.GetStartAddress().GetSection()
|
||||
addr_of_table = symbol.GetStartAddress().GetOffset()
|
||||
addr_in_name_table = addr_of_table + (offset * size_of_char)
|
||||
|
@ -190,7 +190,7 @@ class IseqDisassembler:
|
|||
tUShort = target.FindFirstType("unsigned short")
|
||||
size_of_short = tUShort.GetByteSize()
|
||||
|
||||
symbol = target.FindSymbols("insn_name.y")[0].GetSymbol()
|
||||
symbol = target.FindSymbols("rb_vm_insn_name_offset")[0].GetSymbol()
|
||||
section = symbol.GetStartAddress().GetSection()
|
||||
table_offset = symbol.GetStartAddress().GetOffset()
|
||||
|
||||
|
@ -205,7 +205,7 @@ class IseqDisassembler:
|
|||
print("error getting insn name table offset: ", error)
|
||||
|
||||
def insn_name(self, target, process, result, offset):
|
||||
symbol = target.FindSymbols("insn_name.x")[0].GetSymbol()
|
||||
symbol = target.FindSymbols("rb_vm_insn_name_base")[0].GetSymbol()
|
||||
section = symbol.GetStartAddress().GetSection()
|
||||
addr_of_table = symbol.GetStartAddress().GetOffset()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче