2012-11-12 19:33:29 +08:00
|
|
|
//===-- llvm-symbolizer.cpp - Simple addr2line-like symbolizer ------------===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2012-11-12 19:33:29 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This utility works much like "addr2line". It is able of transforming
|
|
|
|
// tuples (module name, module offset) to code locations (function name,
|
|
|
|
// file, line number, column number). It is targeted for compiler-rt tools
|
|
|
|
// (especially AddressSanitizer and ThreadSanitizer) that can use it
|
|
|
|
// to symbolize stack traces in their error reports.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/ADT/StringRef.h"
|
2015-11-04 06:20:52 +08:00
|
|
|
#include "llvm/DebugInfo/Symbolize/DIPrinter.h"
|
2015-10-27 01:56:12 +08:00
|
|
|
#include "llvm/DebugInfo/Symbolize/Symbolize.h"
|
2015-04-28 01:19:51 +08:00
|
|
|
#include "llvm/Support/COM.h"
|
2012-11-12 19:33:29 +08:00
|
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
#include "llvm/Support/Debug.h"
|
2014-10-17 08:50:19 +08:00
|
|
|
#include "llvm/Support/FileSystem.h"
|
2018-04-14 02:26:06 +08:00
|
|
|
#include "llvm/Support/InitLLVM.h"
|
2015-03-24 02:07:13 +08:00
|
|
|
#include "llvm/Support/Path.h"
|
2012-11-12 19:33:29 +08:00
|
|
|
#include "llvm/Support/raw_ostream.h"
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstring>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
using namespace llvm;
|
2013-01-22 22:21:19 +08:00
|
|
|
using namespace symbolize;
|
2012-11-12 19:33:29 +08:00
|
|
|
|
|
|
|
static cl::opt<bool>
|
2013-01-22 22:21:19 +08:00
|
|
|
ClUseSymbolTable("use-symbol-table", cl::init(true),
|
2013-02-15 16:54:47 +08:00
|
|
|
cl::desc("Prefer names in symbol table to names "
|
|
|
|
"in debug info"));
|
2012-11-12 19:33:29 +08:00
|
|
|
|
2014-05-17 08:07:48 +08:00
|
|
|
static cl::opt<FunctionNameKind> ClPrintFunctions(
|
|
|
|
"functions", cl::init(FunctionNameKind::LinkageName),
|
2019-02-05 00:17:57 +08:00
|
|
|
cl::desc("Print function name for a given address"), cl::ValueOptional,
|
2014-05-17 08:07:48 +08:00
|
|
|
cl::values(clEnumValN(FunctionNameKind::None, "none", "omit function name"),
|
|
|
|
clEnumValN(FunctionNameKind::ShortName, "short",
|
|
|
|
"print short function name"),
|
|
|
|
clEnumValN(FunctionNameKind::LinkageName, "linkage",
|
2019-01-24 01:27:48 +08:00
|
|
|
"print function linkage name (default)"),
|
|
|
|
// Sentinel value for unspecified value.
|
|
|
|
clEnumValN(FunctionNameKind::LinkageName, "", "")));
|
|
|
|
static cl::alias ClPrintFunctionsShort("f", cl::desc("Alias for -functions"),
|
|
|
|
cl::NotHidden, cl::Grouping,
|
|
|
|
cl::aliasopt(ClPrintFunctions));
|
2012-11-12 19:33:29 +08:00
|
|
|
|
|
|
|
static cl::opt<bool>
|
2015-05-07 06:26:30 +08:00
|
|
|
ClUseRelativeAddress("relative-address", cl::init(false),
|
|
|
|
cl::desc("Interpret addresses as relative addresses"),
|
|
|
|
cl::ReallyHidden);
|
|
|
|
|
|
|
|
static cl::opt<bool>
|
|
|
|
ClPrintInlining("inlining", cl::init(true),
|
|
|
|
cl::desc("Print all inlined frames for a given address"));
|
2019-01-24 08:34:09 +08:00
|
|
|
static cl::alias
|
|
|
|
ClPrintInliningAliasI("i", cl::desc("Alias for -inlining"),
|
|
|
|
cl::NotHidden, cl::aliasopt(ClPrintInlining),
|
|
|
|
cl::Grouping);
|
|
|
|
static cl::alias
|
|
|
|
ClPrintInliningAliasInlines("inlines", cl::desc("Alias for -inlining"),
|
|
|
|
cl::NotHidden, cl::aliasopt(ClPrintInlining));
|
2012-11-12 19:33:29 +08:00
|
|
|
|
2019-01-22 18:24:32 +08:00
|
|
|
// -basenames, -s
|
|
|
|
static cl::opt<bool> ClBasenames("basenames", cl::init(false),
|
|
|
|
cl::desc("Strip directory names from paths"));
|
|
|
|
static cl::alias ClBasenamesShort("s", cl::desc("Alias for -basenames"),
|
|
|
|
cl::NotHidden, cl::aliasopt(ClBasenames));
|
|
|
|
|
2019-01-21 18:00:57 +08:00
|
|
|
// -demangle, -C, -no-demangle
|
2012-11-12 19:33:29 +08:00
|
|
|
static cl::opt<bool>
|
2013-02-15 16:54:47 +08:00
|
|
|
ClDemangle("demangle", cl::init(true), cl::desc("Demangle function names"));
|
2019-01-16 15:05:58 +08:00
|
|
|
static cl::alias
|
|
|
|
ClDemangleShort("C", cl::desc("Alias for -demangle"),
|
2019-01-23 17:49:37 +08:00
|
|
|
cl::NotHidden, cl::aliasopt(ClDemangle), cl::Grouping);
|
2019-01-21 18:00:57 +08:00
|
|
|
static cl::opt<bool>
|
|
|
|
ClNoDemangle("no-demangle", cl::init(false),
|
|
|
|
cl::desc("Don't demangle function names"));
|
2012-11-12 19:33:29 +08:00
|
|
|
|
2013-06-28 16:15:40 +08:00
|
|
|
static cl::opt<std::string> ClDefaultArch("default-arch", cl::init(""),
|
|
|
|
cl::desc("Default architecture "
|
|
|
|
"(for multi-arch objects)"));
|
|
|
|
|
2019-01-11 19:51:52 +08:00
|
|
|
// -obj, -exe, -e
|
2013-12-25 03:33:22 +08:00
|
|
|
static cl::opt<std::string>
|
|
|
|
ClBinaryName("obj", cl::init(""),
|
|
|
|
cl::desc("Path to object file to be symbolized (if not provided, "
|
|
|
|
"object file should be specified for each input line)"));
|
2019-01-11 19:51:52 +08:00
|
|
|
static cl::alias
|
|
|
|
ClBinaryNameAliasExe("exe", cl::desc("Alias for -obj"),
|
|
|
|
cl::NotHidden, cl::aliasopt(ClBinaryName));
|
|
|
|
static cl::alias
|
|
|
|
ClBinaryNameAliasE("e", cl::desc("Alias for -obj"),
|
|
|
|
cl::NotHidden, cl::aliasopt(ClBinaryName));
|
|
|
|
|
2013-12-25 03:33:22 +08:00
|
|
|
|
2017-07-30 09:34:08 +08:00
|
|
|
static cl::opt<std::string>
|
|
|
|
ClDwpName("dwp", cl::init(""),
|
|
|
|
cl::desc("Path to DWP file to be use for any split CUs"));
|
|
|
|
|
2014-10-17 08:50:19 +08:00
|
|
|
static cl::list<std::string>
|
|
|
|
ClDsymHint("dsym-hint", cl::ZeroOrMore,
|
|
|
|
cl::desc("Path to .dSYM bundles to search for debug info for the "
|
|
|
|
"object files"));
|
2019-01-14 18:10:51 +08:00
|
|
|
|
|
|
|
// -print-address, -addresses, -a
|
2015-10-13 03:26:44 +08:00
|
|
|
static cl::opt<bool>
|
2019-01-14 18:10:51 +08:00
|
|
|
ClPrintAddress("print-address", cl::init(false),
|
|
|
|
cl::desc("Show address before line information"));
|
|
|
|
static cl::alias
|
|
|
|
ClPrintAddressAliasAddresses("addresses", cl::desc("Alias for -print-address"),
|
|
|
|
cl::NotHidden, cl::aliasopt(ClPrintAddress));
|
|
|
|
static cl::alias
|
|
|
|
ClPrintAddressAliasA("a", cl::desc("Alias for -print-address"),
|
2019-01-23 17:49:37 +08:00
|
|
|
cl::NotHidden, cl::aliasopt(ClPrintAddress), cl::Grouping);
|
2014-10-17 08:50:19 +08:00
|
|
|
|
2019-01-10 23:33:35 +08:00
|
|
|
// -pretty-print, -p
|
2015-11-12 04:41:43 +08:00
|
|
|
static cl::opt<bool>
|
|
|
|
ClPrettyPrint("pretty-print", cl::init(false),
|
|
|
|
cl::desc("Make the output more human friendly"));
|
2019-01-10 23:33:35 +08:00
|
|
|
static cl::alias ClPrettyPrintShort("p", cl::desc("Alias for -pretty-print"),
|
|
|
|
cl::NotHidden,
|
2019-01-23 17:49:37 +08:00
|
|
|
cl::aliasopt(ClPrettyPrint), cl::Grouping);
|
2015-11-12 04:41:43 +08:00
|
|
|
|
2016-01-09 08:14:35 +08:00
|
|
|
static cl::opt<int> ClPrintSourceContextLines(
|
|
|
|
"print-source-context-lines", cl::init(0),
|
|
|
|
cl::desc("Print N number of source file context"));
|
|
|
|
|
2017-02-01 06:19:38 +08:00
|
|
|
static cl::opt<bool> ClVerbose("verbose", cl::init(false),
|
|
|
|
cl::desc("Print verbose line info"));
|
|
|
|
|
2019-01-25 19:49:21 +08:00
|
|
|
// -adjust-vma
|
|
|
|
static cl::opt<unsigned long long>
|
|
|
|
ClAdjustVMA("adjust-vma", cl::init(0), cl::value_desc("offset"),
|
|
|
|
cl::desc("Add specified offset to object file addresses"));
|
|
|
|
|
2019-01-10 22:10:02 +08:00
|
|
|
static cl::list<std::string> ClInputAddresses(cl::Positional,
|
|
|
|
cl::desc("<input addresses>..."),
|
|
|
|
cl::ZeroOrMore);
|
|
|
|
|
[DebugInfo] Fix /usr/lib/debug llvm-symbolizer lookup with relative paths
Summary:
rL189250 added a realpath call, and rL352916 because realpath breaks assumptions with some build systems. However, the /usr/lib/debug case has been clarified, falling back to /usr/lib/debug is currently broken if the obj passed in is a relative path. Adding a call to use absolute paths when falling back to /usr/lib/debug fixes that while still not making any realpath assumptions.
This also adds a --fallback-debug-path command line flag for testing (since we probably can't write to /usr/lib/debug from buildbot environments), but was also verified manually:
```
$ rm -f path/to/dwarfdump-test.elf-x86-64
$ strace llvm-symbolizer --obj=relative/path/to/dwarfdump-test.elf-x86-64.debuglink 0x40113f |& grep dwarfdump
```
Lookups went to relative/path/to/dwarfdump-test.elf-x86-64, relative/path/to/.debug/dwarfdump-test.elf-x86-64, and then finally /usr/lib/debug/absolute/path/to/dwarfdump-test.elf-x86-64.
Reviewers: dblaikie, samsonov
Reviewed By: dblaikie
Subscribers: krytarowski, aprantl, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D57916
llvm-svn: 353730
2019-02-12 02:05:48 +08:00
|
|
|
static cl::opt<std::string>
|
|
|
|
ClFallbackDebugPath("fallback-debug-path", cl::init(""),
|
|
|
|
cl::desc("Fallback path for debug binaries."));
|
|
|
|
|
2016-06-04 04:25:09 +08:00
|
|
|
template<typename T>
|
|
|
|
static bool error(Expected<T> &ResOrErr) {
|
|
|
|
if (ResOrErr)
|
2015-11-04 08:30:24 +08:00
|
|
|
return false;
|
2016-06-04 04:25:09 +08:00
|
|
|
logAllUnhandledErrors(ResOrErr.takeError(), errs(),
|
|
|
|
"LLVMSymbolizer: error reading file: ");
|
2015-11-04 08:30:24 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-01-08 07:57:41 +08:00
|
|
|
static bool parseCommand(StringRef InputString, bool &IsData,
|
|
|
|
std::string &ModuleName, uint64_t &ModuleOffset) {
|
|
|
|
const char kDelimiters[] = " \n\r";
|
2012-11-12 19:33:29 +08:00
|
|
|
ModuleName = "";
|
2018-05-25 08:11:15 +08:00
|
|
|
if (InputString.consume_front("CODE ")) {
|
2013-01-11 15:16:20 +08:00
|
|
|
IsData = false;
|
2018-05-25 08:11:15 +08:00
|
|
|
} else if (InputString.consume_front("DATA ")) {
|
|
|
|
IsData = true;
|
2013-01-11 15:16:20 +08:00
|
|
|
} else {
|
|
|
|
// If no cmd, assume it's CODE.
|
|
|
|
IsData = false;
|
|
|
|
}
|
2018-05-25 08:11:15 +08:00
|
|
|
const char *pos = InputString.data();
|
2013-12-25 03:33:22 +08:00
|
|
|
// Skip delimiters and parse input filename (if needed).
|
2018-05-26 10:29:14 +08:00
|
|
|
if (ClBinaryName.empty()) {
|
2013-12-25 03:33:22 +08:00
|
|
|
pos += strspn(pos, kDelimiters);
|
|
|
|
if (*pos == '"' || *pos == '\'') {
|
|
|
|
char quote = *pos;
|
|
|
|
pos++;
|
2016-01-08 07:57:41 +08:00
|
|
|
const char *end = strchr(pos, quote);
|
2014-04-25 12:24:47 +08:00
|
|
|
if (!end)
|
2013-12-25 03:33:22 +08:00
|
|
|
return false;
|
|
|
|
ModuleName = std::string(pos, end - pos);
|
|
|
|
pos = end + 1;
|
|
|
|
} else {
|
|
|
|
int name_length = strcspn(pos, kDelimiters);
|
|
|
|
ModuleName = std::string(pos, name_length);
|
|
|
|
pos += name_length;
|
|
|
|
}
|
2013-04-05 17:22:24 +08:00
|
|
|
} else {
|
2013-12-25 03:33:22 +08:00
|
|
|
ModuleName = ClBinaryName;
|
2012-11-12 19:33:29 +08:00
|
|
|
}
|
2013-04-05 17:22:24 +08:00
|
|
|
// Skip delimiters and parse module offset.
|
|
|
|
pos += strspn(pos, kDelimiters);
|
|
|
|
int offset_length = strcspn(pos, kDelimiters);
|
2015-10-25 07:23:25 +08:00
|
|
|
return !StringRef(pos, offset_length).getAsInteger(0, ModuleOffset);
|
2012-11-12 19:33:29 +08:00
|
|
|
}
|
|
|
|
|
2019-02-27 21:17:36 +08:00
|
|
|
// This routine returns section index for an address.
|
|
|
|
// Assumption: would work ambiguously for object files which have sections not
|
|
|
|
// assigned to an address(since the same address could belong to various
|
|
|
|
// sections).
|
|
|
|
static uint64_t getModuleSectionIndexForAddress(const std::string &ModuleName,
|
|
|
|
uint64_t Address) {
|
|
|
|
|
2019-03-01 18:15:18 +08:00
|
|
|
// following ModuleName processing was copied from
|
|
|
|
// LLVMSymbolizer::getOrCreateModuleInfo().
|
|
|
|
// it needs to be refactored to avoid code duplication.
|
|
|
|
std::string BinaryName = ModuleName;
|
|
|
|
size_t ColonPos = ModuleName.find_last_of(':');
|
|
|
|
// Verify that substring after colon form a valid arch name.
|
|
|
|
if (ColonPos != std::string::npos) {
|
|
|
|
std::string ArchStr = ModuleName.substr(ColonPos + 1);
|
|
|
|
if (Triple(ArchStr).getArch() != Triple::UnknownArch) {
|
|
|
|
BinaryName = ModuleName.substr(0, ColonPos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(BinaryName);
|
2019-02-27 21:17:36 +08:00
|
|
|
|
|
|
|
if (error(BinaryOrErr))
|
|
|
|
return object::SectionedAddress::UndefSection;
|
|
|
|
|
|
|
|
Binary &Binary = *BinaryOrErr->getBinary();
|
|
|
|
|
|
|
|
if (ObjectFile *O = dyn_cast<ObjectFile>(&Binary)) {
|
|
|
|
for (SectionRef Sec : O->sections()) {
|
|
|
|
if (!Sec.isText() || Sec.isVirtual())
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if (Address >= Sec.getAddress() &&
|
|
|
|
Address <= Sec.getAddress() + Sec.getSize()) {
|
|
|
|
return Sec.getIndex();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return object::SectionedAddress::UndefSection;
|
|
|
|
}
|
|
|
|
|
2019-01-10 22:10:02 +08:00
|
|
|
static void symbolizeInput(StringRef InputString, LLVMSymbolizer &Symbolizer,
|
|
|
|
DIPrinter &Printer) {
|
|
|
|
bool IsData = false;
|
|
|
|
std::string ModuleName;
|
2019-02-27 21:17:36 +08:00
|
|
|
uint64_t Offset = 0;
|
|
|
|
if (!parseCommand(StringRef(InputString), IsData, ModuleName, Offset)) {
|
2019-01-10 22:10:02 +08:00
|
|
|
outs() << InputString;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ClPrintAddress) {
|
|
|
|
outs() << "0x";
|
2019-02-27 21:17:36 +08:00
|
|
|
outs().write_hex(Offset);
|
2019-01-10 22:10:02 +08:00
|
|
|
StringRef Delimiter = ClPrettyPrint ? ": " : "\n";
|
|
|
|
outs() << Delimiter;
|
|
|
|
}
|
2019-02-27 21:17:36 +08:00
|
|
|
Offset -= ClAdjustVMA;
|
|
|
|
object::SectionedAddress ModuleOffset = {
|
|
|
|
Offset, getModuleSectionIndexForAddress(ModuleName, Offset)};
|
2019-01-10 22:10:02 +08:00
|
|
|
if (IsData) {
|
|
|
|
auto ResOrErr = Symbolizer.symbolizeData(ModuleName, ModuleOffset);
|
|
|
|
Printer << (error(ResOrErr) ? DIGlobal() : ResOrErr.get());
|
|
|
|
} else if (ClPrintInlining) {
|
|
|
|
auto ResOrErr =
|
|
|
|
Symbolizer.symbolizeInlinedCode(ModuleName, ModuleOffset, ClDwpName);
|
|
|
|
Printer << (error(ResOrErr) ? DIInliningInfo() : ResOrErr.get());
|
|
|
|
} else {
|
|
|
|
auto ResOrErr =
|
|
|
|
Symbolizer.symbolizeCode(ModuleName, ModuleOffset, ClDwpName);
|
|
|
|
Printer << (error(ResOrErr) ? DILineInfo() : ResOrErr.get());
|
|
|
|
}
|
|
|
|
outs() << "\n";
|
|
|
|
outs().flush();
|
|
|
|
}
|
|
|
|
|
2012-11-12 19:33:29 +08:00
|
|
|
int main(int argc, char **argv) {
|
2018-04-14 02:26:06 +08:00
|
|
|
InitLLVM X(argc, argv);
|
2012-11-12 19:33:29 +08:00
|
|
|
|
2015-04-28 01:19:51 +08:00
|
|
|
llvm::sys::InitializeCOMRAII COM(llvm::sys::COMThreadingMode::MultiThreaded);
|
2013-12-25 03:33:22 +08:00
|
|
|
cl::ParseCommandLineOptions(argc, argv, "llvm-symbolizer\n");
|
2019-01-21 18:00:57 +08:00
|
|
|
|
|
|
|
// If both --demangle and --no-demangle are specified then pick the last one.
|
|
|
|
if (ClNoDemangle.getPosition() > ClDemangle.getPosition())
|
|
|
|
ClDemangle = !ClNoDemangle;
|
|
|
|
|
2015-10-30 08:40:20 +08:00
|
|
|
LLVMSymbolizer::Options Opts(ClPrintFunctions, ClUseSymbolTable, ClDemangle,
|
[DebugInfo] Fix /usr/lib/debug llvm-symbolizer lookup with relative paths
Summary:
rL189250 added a realpath call, and rL352916 because realpath breaks assumptions with some build systems. However, the /usr/lib/debug case has been clarified, falling back to /usr/lib/debug is currently broken if the obj passed in is a relative path. Adding a call to use absolute paths when falling back to /usr/lib/debug fixes that while still not making any realpath assumptions.
This also adds a --fallback-debug-path command line flag for testing (since we probably can't write to /usr/lib/debug from buildbot environments), but was also verified manually:
```
$ rm -f path/to/dwarfdump-test.elf-x86-64
$ strace llvm-symbolizer --obj=relative/path/to/dwarfdump-test.elf-x86-64.debuglink 0x40113f |& grep dwarfdump
```
Lookups went to relative/path/to/dwarfdump-test.elf-x86-64, relative/path/to/.debug/dwarfdump-test.elf-x86-64, and then finally /usr/lib/debug/absolute/path/to/dwarfdump-test.elf-x86-64.
Reviewers: dblaikie, samsonov
Reviewed By: dblaikie
Subscribers: krytarowski, aprantl, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D57916
llvm-svn: 353730
2019-02-12 02:05:48 +08:00
|
|
|
ClUseRelativeAddress, ClDefaultArch,
|
|
|
|
ClFallbackDebugPath);
|
2015-11-12 04:41:43 +08:00
|
|
|
|
2014-10-17 08:50:19 +08:00
|
|
|
for (const auto &hint : ClDsymHint) {
|
|
|
|
if (sys::path::extension(hint) == ".dSYM") {
|
|
|
|
Opts.DsymHints.push_back(hint);
|
|
|
|
} else {
|
|
|
|
errs() << "Warning: invalid dSYM hint: \"" << hint <<
|
|
|
|
"\" (must have the '.dSYM' extension).\n";
|
|
|
|
}
|
|
|
|
}
|
2013-01-22 22:21:19 +08:00
|
|
|
LLVMSymbolizer Symbolizer(Opts);
|
2012-11-12 19:33:29 +08:00
|
|
|
|
2015-11-12 04:41:43 +08:00
|
|
|
DIPrinter Printer(outs(), ClPrintFunctions != FunctionNameKind::None,
|
2019-01-22 18:24:32 +08:00
|
|
|
ClPrettyPrint, ClPrintSourceContextLines, ClVerbose,
|
|
|
|
ClBasenames);
|
2015-11-04 06:20:52 +08:00
|
|
|
|
2019-01-10 22:10:02 +08:00
|
|
|
if (ClInputAddresses.empty()) {
|
|
|
|
const int kMaxInputStringLength = 1024;
|
|
|
|
char InputString[kMaxInputStringLength];
|
2016-01-08 07:57:41 +08:00
|
|
|
|
2019-01-10 22:10:02 +08:00
|
|
|
while (fgets(InputString, sizeof(InputString), stdin))
|
|
|
|
symbolizeInput(InputString, Symbolizer, Printer);
|
|
|
|
} else {
|
|
|
|
for (StringRef Address : ClInputAddresses)
|
|
|
|
symbolizeInput(Address, Symbolizer, Printer);
|
2012-11-12 19:33:29 +08:00
|
|
|
}
|
2015-04-28 01:19:51 +08:00
|
|
|
|
2012-11-12 19:33:29 +08:00
|
|
|
return 0;
|
|
|
|
}
|