[all-commits] [llvm/llvm-project] 080052: [lldb/Bindings] Raise exception when using propert...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri May 29 22:15:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0800529fe605a03e9da1aca241a377eebcaa8cad
      https://github.com/llvm/llvm-project/commit/0800529fe605a03e9da1aca241a377eebcaa8cad
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-05-29 (Fri, 29 May 2020)

  Changed paths:
    M lldb/bindings/interface/SBAddress.i
    A lldb/test/Shell/ScriptInterpreter/Python/Inputs/sbaddress.py
    A lldb/test/Shell/ScriptInterpreter/Python/sb_address_exception.test

  Log Message:
  -----------
  [lldb/Bindings] Raise exception when using properties that rely on lldb.target

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




More information about the All-commits mailing list