
Several SBAddress properties use the lldb.target or lldb.process convenience variables which are only set under the interactive script interpreter. Unfortunately, users have been using these properties in Python script and commands. This patch raises a Python exception to force users to use GetLoadAddress instead. Differential revision: https://reviews.llvm.org/D80848
8 lines
220 B
Python
8 lines
220 B
Python
import lldb
|
|
|
|
def test(debugger, command, result, internal_dict):
|
|
return int(lldb.SBAddress())
|
|
|
|
def __lldb_init_module(debugger, internal_dict):
|
|
debugger.HandleCommand('command script add -f sbaddress.test test')
|