aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2011-10-11 19:08:59 +0000
committerDavid S. Miller <davem@redhat.com>2011-10-11 19:08:59 +0000
commit205c306f8020479681add9d274b2c261acc48318 (patch)
treec2115206a3c038bad74bc1f8a3ea8cb7a558e6f6 /gdb/i386-tdep.c
parentfac7ceb31e1d0600828e3d1c5729871fe1f10600 (diff)
downloadgdb-205c306f8020479681add9d274b2c261acc48318.zip
gdb-205c306f8020479681add9d274b2c261acc48318.tar.gz
gdb-205c306f8020479681add9d274b2c261acc48318.tar.bz2
Fix jit.exp on most 32-bit targets.
* gdbarch.sh: New field 'long_long_align_bit'. * gdbarch.c, gdbarch.h: Regenerate. * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32. * jit.c (jit_read_code_entry): Use it to determine correct size offset.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 179bc45..2f0b6f5 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -7281,6 +7281,8 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
tdep->record_regmap = i386_record_regmap;
+ set_gdbarch_long_long_align_bit (gdbarch, 32);
+
/* The format used for `long double' on almost all i386 targets is
the i387 extended floating-point format. In fact, of all targets
in the GCC 2.95 tree, only OSF/1 does it different, and insists