summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-09-27 00:58:45 +0000
committerGreg Clayton <gclayton@apple.com>2011-09-27 00:58:45 +0000
commitfb0655ef59f52c81c8998e51477157e7794d7c05 (patch)
treec3cc61410a497f3d93b329d5856c4ae47992db04 /lldb/examples/python
parent581243919d9e2b06c65cb4c55834819dc75cb6d3 (diff)
downloadbcm5719-llvm-fb0655ef59f52c81c8998e51477157e7794d7c05.tar.gz
bcm5719-llvm-fb0655ef59f52c81c8998e51477157e7794d7c05.zip
Fixed the public and internal disassembler API to be named correctly:
const char * SBInstruction::GetMnemonic() const char * SBInstruction::GetOperands() const char * SBInstruction::GetComment() Fixed the symbolicate example script and the internals. llvm-svn: 140591
Diffstat (limited to 'lldb/examples/python')
-rwxr-xr-xlldb/examples/python/symbolicate-crash.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/examples/python/symbolicate-crash.py b/lldb/examples/python/symbolicate-crash.py
index 9e614def6ee..6afd9e1eb9a 100755
--- a/lldb/examples/python/symbolicate-crash.py
+++ b/lldb/examples/python/symbolicate-crash.py
@@ -236,11 +236,11 @@ def disassemble_instructions (target, instructions, pc, insts_before_pc, insts_a
inst_pc = inst.GetAddress().GetLoadAddress(target);
if pc == inst_pc:
pc_index = inst_idx
- opcode_name = inst.GetOpcodeName(target)
- mnemonics = inst.GetMnemonics(target)
- comment = inst.GetComment(target)
- #data = inst.GetData(target)
- lines.append ("%#16.16x: %8s %s" % (inst_pc, opcode_name, mnemonics))
+ mnemonic = inst.GetMnemonic (target)
+ operands = inst.GetOperands (target)
+ comment = inst.GetComment (target)
+ #data = inst.GetData (target)
+ lines.append ("%#16.16x: %8s %s" % (inst_pc, mnemonic, operands))
if comment:
line_len = len(lines[-1])
if line_len < comment_column:
OpenPOWER on IntegriCloud