From db877a13bbb35f8d6b2c645177aee8f3be51800e Mon Sep 17 00:00:00 2001 From: "gordana.cmiljanovic@imgtec.com" Date: Wed, 25 Sep 2013 08:18:03 +0000 Subject: Adding mips support for Android. Mips linux support has been added previously in r1212. Some additional changes are required to make breakpad functional on Android. BUG=none TEST=build, unittests, chrome test application Review URL: https://breakpad.appspot.com/632002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1215 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/android/include/sys/ucontext.h | 1 - src/common/android/include/sys/user.h | 19 +++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'src/common/android/include') diff --git a/src/common/android/include/sys/ucontext.h b/src/common/android/include/sys/ucontext.h index 4a4e77c1..85c69ebd 100644 --- a/src/common/android/include/sys/ucontext.h +++ b/src/common/android/include/sys/ucontext.h @@ -128,7 +128,6 @@ typedef struct ucontext { #elif defined(__mips__) -// Not supported by Google Breakpad at this point, but just in case. typedef struct { uint32_t regmask; uint32_t status; diff --git a/src/common/android/include/sys/user.h b/src/common/android/include/sys/user.h index d13e5f6e..bc275bbe 100644 --- a/src/common/android/include/sys/user.h +++ b/src/common/android/include/sys/user.h @@ -120,8 +120,23 @@ struct user { #elif defined(__mips__) -// TODO: Provide some useful definitions here, once the rest of Breakpad -// requires them. +#define _ASM_USER_H 1 // Prevent conflicts + +struct user_regs_struct { + unsigned long long regs[32]; + unsigned long long lo; + unsigned long long hi; + unsigned long long epc; + unsigned long long badvaddr; + unsigned long long status; + unsigned long long cause; +}; + +struct user_fpregs_struct { + unsigned long long regs[32]; + unsigned int fpcsr; + unsigned int fir; +}; #else # error "Unsupported Android CPU ABI" -- cgit v1.2.1