Define DumpPCAndSymbol() only when HAVE_SYMBOLIZE is defined.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@65 eb4d4688-79bd-11dd-afb4-1d65580434c0
This commit is contained in:
2009-07-29 09:11:48 +00:00
parent d712e2084a
commit f028227fa3

View File

@ -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) {