Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1826)

Unified Diff: src/common/android/include/sys/ucontext.h

Issue 444002: Add custom getcontext() implementation for Android. (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: Created 12 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/common/android/breakpad_getcontext_unittest.cc ('k') | src/common/android/include/ucontext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/common/android/include/sys/ucontext.h
===================================================================
--- src/common/android/include/sys/ucontext.h (revision 1022)
+++ src/common/android/include/sys/ucontext.h (working copy)
@@ -50,11 +50,15 @@
#include <asm/sigcontext.h>
typedef struct sigcontext mcontext_t;
+// The ARM kernel uses a 64-bit signal mask.
+typedef uint32_t kernel_sigmask_t[2];
+
typedef struct ucontext {
uint32_t uc_flags;
struct ucontext* uc_link;
stack_t uc_stack;
mcontext_t uc_mcontext;
+ kernel_sigmask_t uc_sigmask;
// Other fields are not used by Google Breakpad. Don't define them.
} ucontext_t;
@@ -110,12 +114,16 @@
REG_SS,
};
+// The i386 kernel uses a 64-bit signal mask.
+typedef uint32_t kernel_sigmask_t[2];
+
typedef struct ucontext {
uint32_t uc_flags;
struct ucontext* uc_link;
stack_t uc_stack;
mcontext_t uc_mcontext;
- // Other fields are not used by Google Breakpad. Don't define them.
+ kernel_sigmask_t uc_sigmask;
+ struct _libc_fpstate __fpregs_mem;
} ucontext_t;
#elif defined(__mips__)
@@ -142,11 +150,15 @@
uint32_t lo3;
} mcontext_t;
+// The MIPS kernel uses a 128-bit signal mask.
+typedef uint32_t kernel_sigmask_t[4];
+
typedef struct ucontext {
uint32_t uc_flags;
struct ucontext* uc_link;
stack_t uc_stack;
mcontext_t uc_mcontext;
+ kernel_sigmask_t uc_sigmask;
// Other fields are not used by Google Breakpad. Don't define them.
} ucontext_t;
« no previous file with comments | « src/common/android/breakpad_getcontext_unittest.cc ('k') | src/common/android/include/ucontext.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted