summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2014-01-10 14:46:03 -0800
committerChristopher Ferris <cferris@google.com>2014-01-10 14:46:03 -0800
commit1da83c3eccac942939748b66eb24f85b5f1983d4 (patch)
treedd4bf5b40f8ee24369c9b58e93a4fb341e20000f /libcutils
parent08a140e6a3989ece3854014123dac243cc372886 (diff)
downloadsystem_core-1da83c3eccac942939748b66eb24f85b5f1983d4.zip
system_core-1da83c3eccac942939748b66eb24f85b5f1983d4.tar.gz
system_core-1da83c3eccac942939748b66eb24f85b5f1983d4.tar.bz2
Init the abort_msg_address value.
When initiating a manual dump, the abort_msg_address parameter is random garbage. Initialize this value to 0. Change-Id: I9ba817ee6104f47cfcb2b746bfa6f02a259c86d7
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/debugger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcutils/debugger.c b/libcutils/debugger.c
index 9425006..7d907fc 100644
--- a/libcutils/debugger.c
+++ b/libcutils/debugger.c
@@ -30,6 +30,7 @@ int dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen) {
debugger_msg_t msg;
msg.tid = tid;
msg.action = DEBUGGER_ACTION_DUMP_TOMBSTONE;
+ msg.abort_msg_address = 0;
int result = 0;
if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {
@@ -63,6 +64,7 @@ int dump_backtrace_to_file(pid_t tid, int fd) {
debugger_msg_t msg;
msg.tid = tid;
msg.action = DEBUGGER_ACTION_DUMP_BACKTRACE;
+ msg.abort_msg_address = 0;
int result = 0;
if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {