summaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorBrigid Smith <brigidsmith@google.com>2014-06-23 11:03:40 -0700
committerBrigid Smith <brigidsmith@google.com>2014-06-23 11:03:40 -0700
commitf473200d355a10dca1260948acc85bf059034768 (patch)
tree2aa55dcca69cab4adbb2c5b45f1a41dcd07e146c /debuggerd
parent2e8290463eff6e66e17b8afa0bcdfe4ff2e920cf (diff)
downloadsystem_core-f473200d355a10dca1260948acc85bf059034768.tar.gz
system_core-f473200d355a10dca1260948acc85bf059034768.tar.bz2
system_core-f473200d355a10dca1260948acc85bf059034768.zip
Fixing debuggerd header output.
PID and TID output line was missing. Change-Id: I609af5727bc22ea0b97f3975ddb3cf0102910bc2
Diffstat (limited to 'debuggerd')
-rwxr-xr-xdebuggerd/tombstone.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp
index 952b58e1e..74828868a 100755
--- a/debuggerd/tombstone.cpp
+++ b/debuggerd/tombstone.cpp
@@ -235,7 +235,7 @@ static void dump_thread_info(log_t* log, pid_t pid, pid_t tid) {
fclose(fp);
}
- _LOG(log, logtype::THREAD, "pid: %d, tid: %d, name: %s >>> %s <<<\n", pid, tid,
+ _LOG(log, logtype::HEADER, "pid: %d, tid: %d, name: %s >>> %s <<<\n", pid, tid,
threadname ? threadname : "UNKNOWN", procname ? procname : "UNKNOWN");
}
@@ -429,11 +429,10 @@ static bool dump_sibling_thread_report(
continue;
}
+ log->current_tid = new_tid;
_LOG(log, logtype::THREAD, "--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---\n");
dump_thread_info(log, pid, new_tid);
- log->current_tid = new_tid;
-
UniquePtr<Backtrace> backtrace(Backtrace::Create(pid, new_tid, map));
if (backtrace->Unwind(0)) {
dump_thread(backtrace.get(), log, total_sleep_time_usec);