Chromium Code Reviews| Index: base/process_util_posix.cc |
| diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc |
| index 1ea90c3dd4fb844cfa9e37a6a387a0a3400a815a..287f5c786d389166bd68d1bdf2bcd6d14fa52cfc 100644 |
| --- a/base/process_util_posix.cc |
| +++ b/base/process_util_posix.cc |
| @@ -18,6 +18,7 @@ |
| #include "base/command_line.h" |
| #include "base/compiler_specific.h" |
| +#include "base/debug/debugger.h" |
| #include "base/debug/stack_trace.h" |
| #include "base/dir_reader_posix.h" |
| #include "base/eintr_wrapper.h" |
| @@ -105,6 +106,9 @@ int WaitpidWithTimeout(ProcessHandle handle, int64 wait_milliseconds, |
| } |
| void StackDumpSignalHandler(int signal, siginfo_t* info, ucontext_t* context) { |
| + if (debug::BeingDebugged()) |
|
Evan Martin
2011/06/10 16:39:05
Does this work? I thought we didn't implement thi
Sheridan Rawlins
2011/06/10 23:02:58
It is implemented, and worked for me.
On 2011/06/
|
| + debug::BreakDebugger(); |
| + |
| LOG(ERROR) << "Received signal " << signal; |
| debug::StackTrace().PrintBacktrace(); |