diff options
author | David S. Miller <davem@redhat.com> | 2011-10-11 19:08:59 +0000 |
---|---|---|
committer | David S. Miller <davem@redhat.com> | 2011-10-11 19:08:59 +0000 |
commit | 205c306f8020479681add9d274b2c261acc48318 (patch) | |
tree | c2115206a3c038bad74bc1f8a3ea8cb7a558e6f6 /gdb/gdbarch.sh | |
parent | fac7ceb31e1d0600828e3d1c5729871fe1f10600 (diff) | |
download | binutils-gdb-205c306f8020479681add9d274b2c261acc48318.tar.gz |
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/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index dcf0343300f..bf78173d334 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -362,6 +362,9 @@ v:int:long_bit:::8 * sizeof (long):4*TARGET_CHAR_BIT::0 # Number of bits in a long long or unsigned long long for the target # machine. v:int:long_long_bit:::8 * sizeof (LONGEST):2*gdbarch->long_bit::0 +# Alignment of a long long or unsigned long long for the target +# machine. +v:int:long_long_align_bit:::8 * sizeof (LONGEST):2*gdbarch->long_bit::0 # The ABI default bit-size and format for "half", "float", "double", and # "long double". These bit/format pairs should eventually be combined |