Skip to content

Commit dd06322

Browse files
committed
Patch android-21 with x86 gdbserver <sys/procfs.h> and <sys/user.h> fixes.
This makes the files match (AOSP ToT post-M) bionic. Bug: http://b/22068064 Change-Id: I100ac14afc06c2fe09ef5ecf9c2e3afa13b68c3b
1 parent 2acf10a commit dd06322

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ndk/platforms/android-21/include/sys/procfs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ typedef elf_greg_t elf_gregset_t[NGREG];
3939

4040
typedef fpregset_t elf_fpregset_t;
4141

42+
#if defined(__i386__)
43+
typedef struct user_fpxregs_struct elf_fpxregset_t;
44+
#endif
45+
4246
typedef elf_gregset_t prgregset_t;
4347
typedef elf_fpregset_t prfpregset_t;
4448

ndk/platforms/android-21/include/sys/user.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct user_fpregs_struct {
4747
long fos;
4848
long st_space[20];
4949
};
50-
struct user_fxsr_struct {
50+
struct user_fpxregs_struct {
5151
unsigned short cwd;
5252
unsigned short swd;
5353
unsigned short twd;
@@ -166,10 +166,6 @@ struct user {
166166
};
167167

168168
#elif defined(__mips__)
169-
struct user_regs_struct
170-
{
171-
unsigned long regs[180 / sizeof(unsigned long) + 64];
172-
};
173169

174170
struct user {
175171
unsigned long regs[180 / sizeof(unsigned long) + 64];

0 commit comments

Comments
 (0)