ae208a0b2c336422ff1a5e1c303f216e86a6f346
[dragonfly.git] / gnu / usr.bin / gdb / libgdb / patches / i386fbsd-tdep.c.patch
1 $DragonFly: src/gnu/usr.bin/gdb/libgdb/patches/Attic/i386fbsd-tdep.c.patch,v 1.2 2007/01/12 07:17:56 dillon Exp $
2
3 Index: i386fbsd-tdep.c
4 ===================================================================
5 RCS file: /cvs/src/contrib/gdb-6.2.1/gdb/i386fbsd-tdep.c,v
6 retrieving revision 1.1
7 diff -u -r1.1 i386fbsd-tdep.c
8 --- i386fbsd-tdep.c     24 Oct 2004 19:56:25 -0000      1.1
9 +++ i386fbsd-tdep.c     12 Jan 2007 07:14:32 -0000
10 @@ -45,7 +45,7 @@
11  CORE_ADDR i386fbsd_sigtramp_end_addr = 0xbfbfdff0;
12  
13  /* From <machine/signal.h>.  */
14 -static int i386fbsd_sc_reg_offset[] =
15 +int i386fbsd_sc_reg_offset[] =
16  {
17    8 + 14 * 4,                  /* %eax */
18    8 + 13 * 4,                  /* %ecx */
19 @@ -77,7 +77,7 @@
20       its FPU emulator in `struct fpreg'.  */
21    tdep->gregset_reg_offset = i386fbsd_r_reg_offset;
22    tdep->gregset_num_regs = ARRAY_SIZE (i386fbsd_r_reg_offset);
23 -  tdep->sizeof_gregset = 18 * 4;
24 +  tdep->sizeof_gregset = 20 * 4;
25    tdep->sizeof_fpregset = 176;
26  
27    /* FreeBSD uses -freg-struct-return by default.  */
28 @@ -113,12 +113,12 @@
29  /* From <machine/reg.h>.  */
30  static int i386fbsd4_r_reg_offset[] =
31  {
32 -  10 * 4, 9 * 4, 8 * 4, 7 * 4, /* %eax, %ecx, %edx, %ebx */
33 -  16 * 4, 5 * 4,               /* %esp, %ebp */
34 -  4 * 4, 3 * 4,                        /* %esi, %edi */
35 -  13 * 4, 15 * 4,              /* %eip, %eflags */
36 -  14 * 4, 17 * 4,              /* %cs, %ss */
37 -  2 * 4, 1 * 4, 0 * 4, 18 * 4  /* %ds, %es, %fs, %gs */
38 +  11 * 4, 10 * 4, 9 * 4, 8 * 4,        /* %eax, %ecx, %edx, %ebx */
39 +  18 * 4, 6 * 4,               /* %esp, %ebp */
40 +  5 * 4, 4 * 4,                        /* %esi, %edi */
41 +  15 * 4, 17 * 4,              /* %eip, %eflags */
42 +  16 * 4, 19 * 4,              /* %cs, %ss */
43 +  3 * 4, 2 * 4, 1 * 4, 0 * 4   /* %ds, %es, %fs, %gs */
44  };
45  
46  /* From <machine/signal.h>.  */
47 @@ -128,14 +128,14 @@
48    20 + 10 * 4,                 /* %ecx */
49    20 + 9 * 4,                  /* %edx */
50    20 + 8 * 4,                  /* %ebx */
51 -  20 + 17 * 4,                 /* %esp */
52 +  20 + 18 * 4,                 /* %esp */
53    20 + 6 * 4,                  /* %ebp */
54    20 + 5 * 4,                  /* %esi */
55    20 + 4 * 4,                  /* %edi */
56 -  20 + 14 * 4,                 /* %eip */
57 -  20 + 16 * 4,                 /* %eflags */
58 -  20 + 15 * 4,                 /* %cs */
59 -  20 + 18 * 4,                 /* %ss */
60 +  20 + 15 * 4,                 /* %eip */
61 +  20 + 17 * 4,                 /* %eflags */
62 +  20 + 16 * 4,                 /* %cs */
63 +  20 + 19 * 4,                 /* %ss */
64    20 + 3 * 4,                  /* %ds */
65    20 + 2 * 4,                  /* %es */
66    20 + 1 * 4,                  /* %fs */
67 @@ -154,7 +154,7 @@
68    /* FreeBSD 4.0 introduced a new `struct reg'.  */
69    tdep->gregset_reg_offset = i386fbsd4_r_reg_offset;
70    tdep->gregset_num_regs = ARRAY_SIZE (i386fbsd4_r_reg_offset);
71 -  tdep->sizeof_gregset = 19 * 4;
72 +  tdep->sizeof_gregset = 20 * 4;
73  
74    /* FreeBSD 4.0 introduced a new `struct sigcontext'.  */
75    tdep->sc_reg_offset = i386fbsd4_sc_reg_offset;