projects
/
platform
/
upstream
/
glog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d712e20
)
Define DumpPCAndSymbol() only when HAVE_SYMBOLIZE is defined.
author
<shinichiro.hamaji@gmail.com>
<>
Wed, 29 Jul 2009 09:11:48 +0000
(09:11 +0000)
committer
<shinichiro.hamaji@gmail.com>
<>
Wed, 29 Jul 2009 09:11:48 +0000
(09:11 +0000)
git-svn-id: https://google-glog.googlecode.com/svn/trunk@65
eb4d4688
-79bd-11dd-afb4-
1d65580434c0
src/utilities.cc
patch
|
blob
|
history
diff --git
a/src/utilities.cc
b/src/utilities.cc
index d35744e447368ba9856c52eae0c14c46e1f4bea3..ec0e1b9df20868234a29b193f9a95367c432f48d 100644
(file)
--- 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) {