diff options
author | Sinan Kaya <41809318+franksinankaya@users.noreply.github.com> | 2020-02-20 15:37:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 15:37:01 -0500 |
commit | 0232c87f21c26718aa3eb2d86678070f3b498a4e (patch) | |
tree | 6743a63a99ffbf3bdb06304ba6ad0ead3b7168b0 | |
parent | 3c814105108680997d0821077694f663693b5382 (diff) |
Add missing ABSL_HAVE_VDSO_SUPPORT conditional (#622)
Signed-off-by: Sinan Kaya <sinan.kaya@microsoft.com>
-rw-r--r-- | absl/debugging/internal/stacktrace_x86-inl.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/absl/debugging/internal/stacktrace_x86-inl.inc b/absl/debugging/internal/stacktrace_x86-inl.inc index 972febd..f87cafb 100644 --- a/absl/debugging/internal/stacktrace_x86-inl.inc +++ b/absl/debugging/internal/stacktrace_x86-inl.inc @@ -173,6 +173,7 @@ static void **NextStackFrame(void **old_fp, const void *uc) { static const unsigned char *kernel_rt_sigreturn_address = nullptr; static const unsigned char *kernel_vsyscall_address = nullptr; if (num_push_instructions == -1) { +#ifdef ABSL_HAVE_VDSO_SUPPORT absl::debugging_internal::VDSOSupport vdso; if (vdso.IsPresent()) { absl::debugging_internal::VDSOSupport::SymbolInfo @@ -201,6 +202,9 @@ static void **NextStackFrame(void **old_fp, const void *uc) { } else { num_push_instructions = 0; } +#else + num_push_instructions = 0; +#endif } if (num_push_instructions != 0 && kernel_rt_sigreturn_address != nullptr && old_fp[1] == kernel_rt_sigreturn_address) { |