Jan Kratochvil 5d84d7a
--- ./gdb/value.c-orig	2015-02-11 15:17:58.413241779 +0100
Jan Kratochvil 5d84d7a
+++ ./gdb/value.c	2015-02-11 15:19:42.068716949 +0100
Jan Kratochvil 5d84d7a
@@ -3074,7 +3074,7 @@ value_primitive_field (struct value *arg
Jan Kratochvil 5d84d7a
 	}
Jan Kratochvil 5d84d7a
 
Jan Kratochvil 5d84d7a
       if (!TYPE_DATA_LOCATION (type)
Jan Kratochvil 5d84d7a
-          || !TYPE_DATA_LOCATION_KIND (type) == PROP_CONST)
Jan Kratochvil 5d84d7a
+          || TYPE_DATA_LOCATION_KIND (type) != PROP_CONST)
Jan Kratochvil 5d84d7a
 	v->offset = (value_offset (arg1) + offset
Jan Kratochvil 5d84d7a
 		     + value_embedded_offset (arg1));
Jan Kratochvil 5d84d7a
     }