aboutsummaryrefslogtreecommitdiff
path: root/absl/debugging/internal/examine_stack.cc
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2022-03-07 22:25:14 -0800
committerDerek Mauro <dmauro@google.com>2022-03-08 08:54:06 -0500
commitf9b99adeddbe71208e65cead5f349add7aa9c9b5 (patch)
treec728f274aba8be325cfcb2469182b8f18bb28aee /absl/debugging/internal/examine_stack.cc
parent04bde89e5cb33bf4a714a5496fac715481fc4831 (diff)
downloadabseil-f9b99adeddbe71208e65cead5f349add7aa9c9b5.tar.gz
abseil-f9b99adeddbe71208e65cead5f349add7aa9c9b5.tar.bz2
abseil-f9b99adeddbe71208e65cead5f349add7aa9c9b5.zip
Export of internal Abseil changes
-- 0b01bad05b4cdea647ad274d64af0d6732787a1d by Gennadiy Rozental <rogeeff@google.com>: Internal change PiperOrigin-RevId: 433124996 Change-Id: I0a081fb5cbb628901e4913a9c587468ca3b3aaa4 GitOrigin-RevId: 0b01bad05b4cdea647ad274d64af0d6732787a1d
Diffstat (limited to 'absl/debugging/internal/examine_stack.cc')
-rw-r--r--absl/debugging/internal/examine_stack.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc
index 2fbfea8e..81d216f9 100644
--- a/absl/debugging/internal/examine_stack.cc
+++ b/absl/debugging/internal/examine_stack.cc
@@ -37,6 +37,16 @@ namespace absl {
ABSL_NAMESPACE_BEGIN
namespace debugging_internal {
+namespace {
+ABSL_CONST_INIT SymbolizeUrlEmitter debug_stack_trace_hook = nullptr;
+} // namespace
+
+void RegisterDebugStackTraceHook(SymbolizeUrlEmitter hook) {
+ debug_stack_trace_hook = hook;
+}
+
+SymbolizeUrlEmitter GetDebugStackTraceHook() { return debug_stack_trace_hook; }
+
// Returns the program counter from signal context, nullptr if
// unknown. vuc is a ucontext_t*. We use void* to avoid the use of
// ucontext_t on non-POSIX systems.