summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-04-26 03:33:27 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-04-26 03:33:27 +0000
commit84a445b4f53408444dec82146728a0a57054a492 (patch)
treea89ececea0c1df189f65af6a669498e98aebdcb0 /libcutils
parent94cb6e57a5f928b1774d78817fd1f43a782b5c98 (diff)
parent29941ec81705bdcad2b43f0059e1288304c523e8 (diff)
downloadsystem_core-84a445b4f53408444dec82146728a0a57054a492.zip
system_core-84a445b4f53408444dec82146728a0a57054a492.tar.gz
system_core-84a445b4f53408444dec82146728a0a57054a492.tar.bz2
am 29941ec8: am f8db4afb: am ab3d49b0: Merge "Use the si_code value bionic passes us."
* commit '29941ec81705bdcad2b43f0059e1288304c523e8': Use the si_code value bionic passes us.
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/debugger.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcutils/debugger.c b/libcutils/debugger.c
index 7d907fc..056de5d 100644
--- a/libcutils/debugger.c
+++ b/libcutils/debugger.c
@@ -15,6 +15,7 @@
*/
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <cutils/debugger.h>
@@ -28,9 +29,9 @@ int dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen) {
}
debugger_msg_t msg;
+ memset(&msg, 0, sizeof(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)) {
@@ -62,9 +63,9 @@ int dump_backtrace_to_file(pid_t tid, int fd) {
}
debugger_msg_t msg;
+ memset(&msg, 0, sizeof(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)) {