[Lldb-commits] [lldb] [lldb] Fix TestDiagnoseDereferenceFunctionReturn on linux (PR #128512)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 24 06:21:44 PST 2025


================
@@ -1670,13 +1670,14 @@ lldb::ValueObjectSP DoGuessValueAt(StackFrame &frame, ConstString reg,
         break;
       case Instruction::Operand::Type::Immediate: {
----------------
DavidSpickett wrote:

What exactly is an immediate here? It's not a literal value, if it were we wouldn't load anything from anywhere. So it's going to be some address or offset from something, that then points to a value, correct?

And the file address is relative to the normal location of the file in memory, or maybe to the file itself. Either way, we can know where it was loaded to and correct for that, which handles anything ALSR may move about. Right?

https://github.com/llvm/llvm-project/pull/128512


More information about the lldb-commits mailing list