@@ -108,6 +108,7 @@ static void MaybePrintAndroidHelpUrl() {
108
108
#endif
109
109
}
110
110
111
+ namespace {
111
112
// A RAII object that holds a copy of the current thread stack ring buffer.
112
113
// The actual stack buffer may change while we are iterating over it (for
113
114
// example, Printf may call syslog() which can itself be built with hwasan).
@@ -143,6 +144,7 @@ class Decorator: public __sanitizer::SanitizerCommonDecorator {
143
144
const char *Location () { return Green (); }
144
145
const char *Thread () { return Green (); }
145
146
};
147
+ } // namespace
146
148
147
149
static bool FindHeapAllocation (HeapAllocationsRingBuffer *rb, uptr tagged_addr,
148
150
HeapAllocationRecord *har, uptr *ring_index,
@@ -373,7 +375,7 @@ static void ShowHeapOrGlobalCandidate(uptr untagged_addr, tag_t *candidate,
373
375
}
374
376
}
375
377
376
- void PrintAddressDescription (
378
+ static void PrintAddressDescription (
377
379
uptr tagged_addr, uptr access_size,
378
380
StackAllocationsRingBuffer *current_stack_allocations) {
379
381
Decorator d;
@@ -564,7 +566,7 @@ static void PrintTagsAroundAddr(tag_t *tag_ptr) {
564
566
" description of short granule tags\n " );
565
567
}
566
568
567
- uptr GetTopPc (StackTrace *stack) {
569
+ static uptr GetTopPc (StackTrace *stack) {
568
570
return stack->size ? StackTrace::GetPreviousInstructionPc (stack->trace [0 ])
569
571
: 0 ;
570
572
}
0 commit comments