summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author <shinichiro.hamaji@gmail.com>2009-07-29 09:11:48 +0000
committer <shinichiro.hamaji@gmail.com>2009-07-29 09:11:48 +0000
commitf028227fa34aade991666d27ea1b0cc083a1d135 (patch)
treefa4b1ed1b8fd0b1f276f148ccafc1d3a36eaa27e
parentd712e2084ae7c2841fbe98a378db36e70252fc0f (diff)
downloadglog-f028227fa34aade991666d27ea1b0cc083a1d135.tar.gz
glog-f028227fa34aade991666d27ea1b0cc083a1d135.tar.bz2
glog-f028227fa34aade991666d27ea1b0cc083a1d135.zip
Define DumpPCAndSymbol() only when HAVE_SYMBOLIZE is defined.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@65 eb4d4688-79bd-11dd-afb4-1d65580434c0
-rw-r--r--src/utilities.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utilities.cc b/src/utilities.cc
index d35744e..ec0e1b9 100644
--- a/src/utilities.cc
+++ b/src/utilities.cc
@@ -83,6 +83,7 @@ void DebugWriteToString(const char* data, void *arg) {
reinterpret_cast<string*>(arg)->append(data);
}
+#ifdef HAVE_SYMBOLIZE
// Print a program counter and its symbol name.
static void DumpPCAndSymbol(DebugWriter *writerfn, void *arg, void *pc,
const char * const prefix) {
@@ -99,6 +100,7 @@ static void DumpPCAndSymbol(DebugWriter *writerfn, void *arg, void *pc,
prefix, kPrintfPointerFieldWidth, pc, symbol);
writerfn(buf, arg);
}
+#endif
static void DumpPC(DebugWriter *writerfn, void *arg, void *pc,
const char * const prefix) {