This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
forked from llvm-mirror/lldb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@365654 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
3 changed files
with
57 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// 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{}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters