From 88c643b6fec27eec436c8d138fee6346e92337d6 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 20 Aug 2019 18:01:57 +0000 Subject: Remove upstream files and directories from vendor/lldb/dist that we do not use. This saves on repository space, and reduces the number of tree conflicts when merging. --- examples/python/gdb_disassemble.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 examples/python/gdb_disassemble.py (limited to 'examples/python/gdb_disassemble.py') diff --git a/examples/python/gdb_disassemble.py b/examples/python/gdb_disassemble.py deleted file mode 100755 index 2590aba8c85c..000000000000 --- a/examples/python/gdb_disassemble.py +++ /dev/null @@ -1,26 +0,0 @@ -import lldb - - -def disassemble(debugger, command, result, dict): - if lldb.frame.function: - instructions = lldb.frame.function.instructions - start_addr = lldb.frame.function.addr.load_addr - name = lldb.frame.function.name - elif lldb.frame.symbol: - instructions = lldb.frame.symbol.instructions - start_addr = lldb.frame.symbol.addr.load_addr - name = lldb.frame.symbol.name - - for inst in instructions: - inst_addr = inst.addr.load_addr - inst_offset = inst_addr - start_addr - comment = inst.comment - if comment: - print "<%s + %-4u> 0x%x %8s %s ; %s" % (name, inst_offset, inst_addr, inst.mnemonic, inst.operands, comment) - else: - print "<%s + %-4u> 0x%x %8s %s" % (name, inst_offset, inst_addr, inst.mnemonic, inst.operands) - -# Install the command when the module gets imported -lldb.debugger.HandleCommand( - 'command script add -f gdb_disassemble.disassemble gdb-disassemble') -print 'Installed "gdb-disassemble" command for disassembly' -- cgit v1.2.3