summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-09-16 17:28:00 +0000
committerAdrian Prantl <aprantl@apple.com>2017-09-16 17:28:00 +0000
commit597aa48d119c0b489efaa638ea5c66e1151aabd8 (patch)
tree1fe1184d89056735266adbe103b5a5f011ad703b /llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
parent099d7e452a68ca43de6231ff8b19f14b84ce61ca (diff)
downloadbcm5719-llvm-597aa48d119c0b489efaa638ea5c66e1151aabd8.tar.gz
bcm5719-llvm-597aa48d119c0b489efaa638ea5c66e1151aabd8.zip
llvm-dwarfdump: support a --show-children option
This will print all children of a DIE when selectively printing only one DIE at a given offset. llvm-svn: 313464
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp')
-rw-r--r--llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index 0ac3354a7aa..725152161a6 100644
--- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -127,6 +127,12 @@ static opt<bool> DumpUUID("uuid", desc("Show the UUID for each architecture"),
static alias DumpUUIDAlias("u", desc("Alias for -uuid"), aliasopt(DumpUUID));
static opt<bool>
+ ShowChildren("show-children",
+ desc("Show a debug info entry's children when selectively "
+ "printing with the =<Offset> option"));
+static alias ShowChildrenAlias("c", desc("Alias for -show-children"),
+ aliasopt(ShowChildren));
+static opt<bool>
SummarizeTypes("summarize-types",
desc("Abbreviate the description of type unit entries"));
static opt<bool> Verify("verify", desc("Verify the DWARF debug info"),
@@ -153,6 +159,7 @@ static void error(StringRef Filename, std::error_code EC) {
static DIDumpOptions getDumpOpts() {
DIDumpOptions DumpOpts;
DumpOpts.DumpType = DumpType;
+ DumpOpts.ShowChildren = ShowChildren;
DumpOpts.SummarizeTypes = SummarizeTypes;
DumpOpts.Verbose = Verbose;
return DumpOpts;
OpenPOWER on IntegriCloud