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:
parent
d712e2084a
commit
f028227fa3
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user