projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix gdb build with --enable-build-with-cxx --disable-nls
[deliverable/binutils-gdb.git]
/
gdb
/
i386gnu-tdep.c
diff --git
a/gdb/i386gnu-tdep.c
b/gdb/i386gnu-tdep.c
index 8d7f68aba5ac941d2b080993b742045eb55a4122..acf772fb85beabdf61ae4ee5a95ea8d0c62737e8 100644
(file)
--- a/
gdb/i386gnu-tdep.c
+++ b/
gdb/i386gnu-tdep.c
@@
-1,5
+1,5
@@
/* Target-dependent code for the GNU Hurd.
/* Target-dependent code for the GNU Hurd.
- Copyright (C) 2002-20
03, 2007-2012
Free Software Foundation, Inc.
+ Copyright (C) 2002-20
16
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-22,6
+22,27
@@
#include "i386-tdep.h"
#include "i386-tdep.h"
+/* From <sys/ucontext.h>. */
+static int i386gnu_gregset_reg_offset[] =
+{
+ 11 * 4, /* %eax */
+ 10 * 4, /* %ecx */
+ 9 * 4, /* %edx */
+ 8 * 4, /* %ebx */
+ 17 * 4, /* %uesp */
+ 6 * 4, /* %ebp */
+ 5 * 4, /* %esi */
+ 4 * 4, /* %edi */
+ 14 * 4, /* %eip */
+ 16 * 4, /* %efl */
+ 15 * 4, /* %cs */
+ 18 * 4, /* %ss */
+ 3 * 4, /* %ds */
+ 2 * 4, /* %es */
+ 1 * 4, /* %fs */
+ 0 * 4, /* %gs */
+};
+
static void
i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
static void
i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
@@
-33,6
+54,10
@@
i386gnu_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_solib_svr4_fetch_link_map_offsets
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
set_solib_svr4_fetch_link_map_offsets
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
+ tdep->gregset_reg_offset = i386gnu_gregset_reg_offset;
+ tdep->gregset_num_regs = ARRAY_SIZE (i386gnu_gregset_reg_offset);
+ tdep->sizeof_gregset = 19 * 4;
+
tdep->jb_pc_offset = 20; /* From <bits/setjmp.h>. */
}
tdep->jb_pc_offset = 20; /* From <bits/setjmp.h>. */
}
This page took
0.024735 seconds
and
4
git commands to generate.