[all-commits] [llvm/llvm-project] 320164: [lldb] Avoid returning a stale AddressOf (#212915)

Igor Kudrin via All-commits all-commits at lists.llvm.org
Fri Jul 31 14:20:15 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 320164daab4148e3372f6756caaa67882e24a91f
      https://github.com/llvm/llvm-project/commit/320164daab4148e3372f6756caaa67882e24a91f
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    M lldb/source/ValueObject/ValueObject.cpp
    A lldb/test/API/python_api/value/change_ptr/Makefile
    A lldb/test/API/python_api/value/change_ptr/TestChangePtr.py
    A lldb/test/API/python_api/value/change_ptr/main.c

  Log Message:
  -----------
  [lldb] Avoid returning a stale AddressOf (#212915)

The 'ValueObject::AddressOf()' method assumes that the address of a
value object cannot change, so when it is calculated once, it does not
need to be updated afterwards. However, this is not the case if the
'ValueObject' is a dependent object obtained by calling 'Dereference()'
of another 'ValueObject'. If the latter object is changed, the dependent
value object should return a new address from the 'AddressOf()' method
to reflect the change.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list