Re: bitpos expansion patches summary

Siddhesh Poyarekar
2012-08-10T01:28:01Z

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

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.

[-- Attachment #2: bitpos-expand-mised-long.patch --]
[-- Type: text/x-patch, Size: 424 bytes --]

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));