preload-hacks: Some patches to make it work.
[termux-packages] / packages / gdb / gdb-amd64-linux-nat.c.patch
1 diff -u -r ../gdb-7.11.1/gdb/amd64-linux-nat.c ./gdb/amd64-linux-nat.c
2 --- ../gdb-7.11.1/gdb/amd64-linux-nat.c 2016-02-09 22:19:39.000000000 -0500
3 +++ ./gdb/amd64-linux-nat.c 2016-06-17 17:06:35.515474250 -0400
4 @@ -272,8 +272,10 @@
5 #endif
6 /* FIXME: ezannoni-2003-07-09 see comment above about include
7 file order. We could be getting bogus values for these two. */
8 +#ifndef __ANDROID__
9 gdb_assert (FS < ELF_NGREG);
10 gdb_assert (GS < ELF_NGREG);
11 +#endif
12 switch (idx)
13 {
14 case FS: