diff options
Diffstat (limited to 'libbacktrace/Backtrace.cpp')
-rw-r--r-- | libbacktrace/Backtrace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbacktrace/Backtrace.cpp b/libbacktrace/Backtrace.cpp index ccfce81..a7568e0 100644 --- a/libbacktrace/Backtrace.cpp +++ b/libbacktrace/Backtrace.cpp @@ -219,12 +219,12 @@ bool BacktracePtrace::ReadWord(uintptr_t ptr, uint32_t* out_value) { Backtrace* Backtrace::Create(pid_t pid, pid_t tid, backtrace_map_info_t* map_info) { if (pid == BACKTRACE_CURRENT_PROCESS || pid == getpid()) { - if (tid == BACKTRACE_NO_TID || tid == gettid()) { + if (tid == BACKTRACE_CURRENT_THREAD || tid == gettid()) { return CreateCurrentObj(map_info); } else { return CreateThreadObj(tid, map_info); } - } else if (tid == BACKTRACE_NO_TID) { + } else if (tid == BACKTRACE_CURRENT_THREAD) { return CreatePtraceObj(pid, pid, map_info); } else { return CreatePtraceObj(pid, tid, map_info); |