diff options
| author | 2017-05-31 10:33:28 +0100 | |
|---|---|---|
| committer | 2017-05-31 10:34:18 +0100 | |
| commit | 93b36d1de19c3536f3809a96f2a5e11365e2cb4f (patch) | |
| tree | 176115da9cc0c8930252a8bb051bc13fd425144b /cmds/dumpstate/utils.cpp | |
| parent | 2410cd179d60b14ac9ad639a930a7b9c712b8463 (diff) | |
dumpstate: Track debuggerd API changes.
dump_backtrace_to_file_timeout now needs an additional argument
that specifies the dump type.
Bug: 36024548
Test: make; manual bug report capture
Change-Id: I6ce3c172dd571e296d9ced9c576b88ea487b2fbb
Diffstat (limited to 'cmds/dumpstate/utils.cpp')
| -rw-r--r-- | cmds/dumpstate/utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp index 6ec636e029..0bec18ef91 100644 --- a/cmds/dumpstate/utils.cpp +++ b/cmds/dumpstate/utils.cpp @@ -1087,7 +1087,8 @@ const char *dump_traces() { /* If 3 backtrace dumps fail in a row, consider debuggerd dead. */ if (timeout_failures == 3) { dprintf(fd, "too many stack dump failures, skipping...\n"); - } else if (dump_backtrace_to_file_timeout(pid, fd, 20) == -1) { + } else if (dump_backtrace_to_file_timeout( + pid, kDebuggerdNativeBacktrace, 20, fd) == -1) { dprintf(fd, "dumping failed, likely due to a timeout\n"); timeout_failures++; } else { |