DerekSelander / LLDB

A collection of LLDB aliases/regexes and Python scripts to aid in your debugging sessions
GNU General Public License v2.0
1.77k stars 198 forks source link

dd command issue #2

Closed SmashingPumpkins closed 7 years ago

SmashingPumpkins commented 7 years ago

dd isn't working for me on Version 8.3.3 (8E3004b) of Xcode

@DerekSelander Thanks for all your hard work and enjoying your book!

(lldb) dd Traceback (most recent call last): File "/usr/local/bin/lldb_commands/disassemble.py", line 37, in handle_command output += generateAssemblyFromSymbol(sym, options) File "/usr/local/bin/lldb_commands/disassemble.py", line 66, in generateAssemblyFromSymbol mnemonic = ds.attrStr(inst.mnemonic.ljust(5), 'red') File "/Applications/Xcode8.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/init.py", line 5220, in __mnemonic_property return self.GetMnemonic (target) File "/Applications/Xcode8.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python/lldb/init__.py", line 5173, in GetMnemonic return _lldb.SBInstruction_GetMnemonic(self, *args) ValueError: invalid null reference in method 'SBInstruction_GetMnemonic', argument 2 of type 'lldb::SBTarget' (lldb)

DerekSelander commented 7 years ago

Hey @SmashingPumpkins thanks for bring that to my attention. Should be fixed on 8b767b44. Cheers.