This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: bitpos expansion patches summary
On Thu, 9 Aug 2012 00:43:12 +0200, Jan wrote:
> ada-lang.c:2315
> offset is LONGEST:
> long new_offset = offset;
>
Turns out that this is the only one I had missed, so here's the fix for
it.
Regards,
Siddhesh
* ada-lang.c (ada_value_primitive_packed_val): Expand
NEW_OFFSET to LONGEST.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index c350a0e..9c305702 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -2312,7 +2312,7 @@ ada_value_primitive_packed_val (struct value *obj, const gdb_byte *valaddr,
if (obj != NULL)
{
- long new_offset = offset;
+ LONGEST new_offset = offset;
set_value_component_location (v, obj);
set_value_bitpos (v, bit_offset + value_bitpos (obj));