[all-commits] [llvm/llvm-project] 6c1738: [lldb] Fix TestDiagnoseDereferenceFunctionReturn o...

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue Feb 25 00:03:26 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c17380ea896e9966645958ad3d76441cc25430c
      https://github.com/llvm/llvm-project/commit/6c17380ea896e9966645958ad3d76441cc25430c
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2025-02-25 (Tue, 25 Feb 2025)

  Changed paths:
    M lldb/source/Target/StackFrame.cpp
    M lldb/test/API/commands/frame/diagnose/dereference-function-return/TestDiagnoseDereferenceFunctionReturn.py

  Log Message:
  -----------
  [lldb] Fix TestDiagnoseDereferenceFunctionReturn on linux (#128512)

The test was failing because it was looking up the immediate value from
the call instruction as a load address, whereas in fact it was a file
address. This worked on darwin because (with ASLR disabled) the two
addresses are generally the same. On linux, this depends on the build
mode, but with the default (PIE) build type, the two are never the same.
The test also fails on a mac with ASLR enabled.

This path fixes the code to look up the value as a file address.



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