diff options
Diffstat (limited to 'debian/patches/dyson-reg.patch')
-rw-r--r-- | debian/patches/dyson-reg.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/dyson-reg.patch b/debian/patches/dyson-reg.patch new file mode 100644 index 0000000..9958d64 --- /dev/null +++ b/debian/patches/dyson-reg.patch @@ -0,0 +1,25 @@ +Index: gdb.git/gdb/procfs.c +=================================================================== +--- gdb.git.orig/gdb/procfs.c ++++ gdb.git/gdb/procfs.c +@@ -1569,6 +1569,12 @@ proc_set_watchpoint (procinfo *pi, CORE_ + + #include <sys/sysi86.h> + ++// These macros are not exposed by default on Dyson to avoid conflicts ++// with other software (due to very generic names). ++#ifndef GS ++#define GS 0 ++#endif ++ + /* The KEY is actually the value of the lower 16 bits of the GS + register for the LWP that we're interested in. Returns the + matching ssh struct (LDT entry). */ +@@ -1641,6 +1647,7 @@ procfs_find_LDT_entry (ptid_t ptid) /* A + /* Find the matching entry and return it. */ + return proc_get_LDT_entry (pi, key); + } ++#undef GS + + #endif + |