Files
clang-p2996/lldb/lit/SymbolFile/PDB/Inputs/VariablesLocationsTest.cpp
Aleksandr Urakov 758657e565 [PDB] Fix location retrieval for function local variables and arguments that are
stored relative to VFRAME

Summary:
This patch makes LLDB able to retrieve proper values for function arguments and
local variables stored in PDB relative to VFRAME register.

Patch contains retrieval of corresponding FPO table entries from PDB and a
generic translator from FPO programs to DWARF expressions to get correct VFRAME
value.

Patch also improves variables-locations.test and makes this test passable on
x86.

Patch By: leonid.mashinsky

Reviewers: zturner, asmith, stella.stamenova, aleksandr.urakov

Reviewed By: zturner

Subscribers: arphaman, labath, mgorny, aprantl, JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D55122

llvm-svn: 352845
2019-02-01 10:01:18 +00:00

27 lines
348 B
C++

int g_var = 2222;
void __fastcall foo(short arg_0, float arg_1) {
char loc_0 = 'x';
double loc_1 = 0.5678;
}
__declspec(align(128)) struct S {
int a = 1234;
};
void bar(int arg_0) {
S loc_0;
int loc_1 = 5678;
}
int main(int argc, char *argv[]) {
bool loc_0 = true;
int loc_1 = 3333;
foo(1111, 0.1234);
bar(22);
return 0;
}