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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think "This resolves the SBAddress" is better than "This resolves SBAddress". Other than that LGTM.
It would be convenient if you could reuse the _runtime_err_str in the doc strings, but I can't see a way to do that in Python.
def Foo():
'''%s'''%(_runtime_err_str) etc
doesn't raise an error, and defines the function correctly but help(Foo) doesn't show anything.
lldb/test/Shell/ScriptInterpreter/Python/Inputs/sbaddress.py | ||
---|---|---|
5 | This was for testing, I'll remove it before landing. |
This was for testing, I'll remove it before landing.