You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
c9c09ef836
The convention is that the dwp file name is derived from the name of the file holding the executable code, even if the linked portion of the debug info is elsewhere (objcopy --only-keep-debug).
18 lines
413 B
C++
18 lines
413 B
C++
// REQUIRES: lld
|
|
|
|
// RUN: %clang -target x86_64-pc-linux -gsplit-dwarf -c %s -o %t.o
|
|
// RUN: ld.lld %t.o -o %t
|
|
// RUN: llvm-dwp %t.dwo -o %t.dwp
|
|
// RUN: rm %t.dwo
|
|
// RUN: llvm-objcopy --only-keep-debug %t %t.debug
|
|
// RUN: llvm-objcopy --strip-all --add-gnu-debuglink=%t.debug %t
|
|
// RUN: %lldb %t -o "target variable a" -b | FileCheck %s
|
|
|
|
// CHECK: (A) a = (x = 47)
|
|
|
|
struct A {
|
|
int x = 47;
|
|
};
|
|
A a;
|
|
int main() {}
|