summaryrefslogtreecommitdiff
path: root/debian/patches/illumos-libgcc-regs.diff
blob: eddda0f0f6a91dd5bc87f603cb74c12e94ca3dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: gcc-5/src/libgcc/config/i386/sol2-unwind.h
===================================================================
--- gcc-5.orig/src/libgcc/config/i386/sol2-unwind.h
+++ gcc-5/src/libgcc/config/i386/sol2-unwind.h
@@ -28,6 +28,20 @@ see the files COPYING3 and COPYING.RUNTI
 #include <ucontext.h>
 #include <sys/frame.h>
 
+/* /usr/include/sys/regset.h */
+#ifndef EAX
+# define    UESP       17
+# define    EIP        14
+# define    EAX        11
+# define    ECX        10
+# define    EDX         9
+# define    EBX         8
+# define    ESP         7
+# define    EBP         6
+# define    ESI         5
+# define    EDI         4
+#endif
+
 #ifdef __x86_64__
 
 #define MD_FALLBACK_FRAME_STATE_FOR x86_64_fallback_frame_state