Files
clang-p2996/lldb/lit/SymbolFile/DWARF/gnu-style-compression.cpp
Pavel Labath 0ace98c9df ObjectFileELF: Add support for gnu-style compressed sections
With this style, a compressed section is indicated by a "z" in the section
name, instead of a section header flag. This patch consists of two small tweaks:
- use an llvm Decompressor method in order to properly detect compressed sections
- make sure we recognise .zdebug_info (and friends) when classifying section types.

llvm-svn: 365654
2019-07-10 16:10:43 +00:00

15 lines
343 B
C++

// REQUIRES: zlib
// RUN: %clang %s -target x86_64-pc-linux -g -gsplit-dwarf -c -o %t \
// RUN: -Wa,--compress-debug-sections=zlib-gnu
// RUN: %lldb %t -o "target var s a" -b | FileCheck %s
// CHECK: (const short) s = 47
// CHECK: (const A) a = (a = 42)
struct A {
long a = 42;
};
extern constexpr short s = 47;
extern constexpr A a{};