]> granicus.if.org Git - llvm/commitdiff
[dwarfdump] Lookup needs to be an unsigned long long parameter.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 19 Dec 2017 09:45:26 +0000 (09:45 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 19 Dec 2017 09:45:26 +0000 (09:45 +0000)
Before this patch, dwarfdump's lookup parameter only accepts unsigned.
Given that for many current platforms the load address already exceeds
unsigned (e.g. arm64 w/ 0x100000000), dwarfdump needs an unsigned long
long parameter.

Patch by: Dr. Michael 'Mickey' Lauer <mickey@vanille-media.de>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321064 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-dwarfdump/llvm-dwarfdump.cpp

index e4e34efff842e280d839bee23594d1c0be04ea2c..12c005de60051a5ab4c4beaf97facc4e13473592 100644 (file)
@@ -156,8 +156,7 @@ static list<std::string> Name(
          "the -regex option <pattern> is interpreted as a regular expression."),
     value_desc("pattern"), cat(DwarfDumpCategory));
 static alias NameAlias("n", desc("Alias for -name"), aliasopt(Name));
-static opt<unsigned>
-    Lookup("lookup",
+static opt<unsigned long long> Lookup("lookup",
            desc("Lookup <address> in the debug information and print out any"
                 "available file, function, block and line table details."),
            value_desc("address"), cat(DwarfDumpCategory));