1 | // clang-format off |
2 | // REQUIRES: lld, x86 |
3 | |
4 | // RUN: %clang_cl --target=x86_64-windows-msvc -Od -Z7 -GR- -c /Fo%t.obj -- %s |
5 | // RUN: lld-link -debug:full -nodefaultlib -entry:main %t.obj -base:0x400000 -out:%t.exe -pdb:%t.pdb |
6 | // RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -O "target create %t.exe" -o "image lookup -a 0x401000" -o "exit" | FileCheck %s --check-prefix=ADDRESS |
7 | int main(int argc, char **argv) { |
8 | return 0; |
9 | } |
10 | |
11 | // ADDRESS: image lookup -a 0x401000 |
12 | // ADDRESS: Address: lookup-by-address.cpp.tmp.exe[0x{{0+}}401000] (lookup-by-address.cpp.tmp.exe..text |
13 | // ADDRESS: Summary: lookup-by-address.cpp.tmp.exe`main at lookup-by-address.cpp:7 |
14 | |