aboutsummaryrefslogtreecommitdiff
path: root/gdb/jv-lang.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-04-17 12:43:20 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-04-17 12:43:20 +0000
commit945b3a323089731de2e79dc318195c75d747435d (patch)
tree80b09350e10cccd40910ed209c964fa378045875 /gdb/jv-lang.c
parentda03bf4d5bf7cdf56a85d10b85b05028649f94f7 (diff)
downloadgdb-945b3a323089731de2e79dc318195c75d747435d.zip
gdb-945b3a323089731de2e79dc318195c75d747435d.tar.gz
gdb-945b3a323089731de2e79dc318195c75d747435d.tar.bz2
gdb/
Do not rely on FIELD_LOC_KIND_BITPOS being zero. * ada-lang.c (ada_template_to_fixed_record_type_1): Replace TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS. * gdbtypes.c (append_flags_type_flag): Likewise, twice. * jv-lang.c (java_link_class_type): Likewise, once. * stabsread.c (read_enum_type): Likewise.
Diffstat (limited to 'gdb/jv-lang.c')
-rw-r--r--gdb/jv-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c
index 08ecf5f..c3c5298 100644
--- a/gdb/jv-lang.c
+++ b/gdb/jv-lang.c
@@ -480,7 +480,7 @@ java_link_class_type (struct gdbarch *gdbarch,
if (accflags & 0x0008) /* ACC_STATIC */
SET_FIELD_PHYSADDR (TYPE_FIELD (type, i), boffset);
else
- TYPE_FIELD_BITPOS (type, i) = 8 * boffset;
+ SET_FIELD_BITPOS (TYPE_FIELD (type, i), 8 * boffset);
if (accflags & 0x8000) /* FIELD_UNRESOLVED_FLAG */
{
TYPE_FIELD_TYPE (type, i) = get_java_object_type (); /* FIXME */