20 Jul 2012 11:58
[RFA] fix build failure
Tristan Gingold <gingold <at> adacore.com>
2012-07-20 09:58:43 GMT
2012-07-20 09:58:43 GMT
Hi,
I got a build failure while building on x86_64-apple-darwin, because ULONGEST isn't the same type as uint64_t.
Ok for trunk ?
Tristan.
2012-07-20 Tristan Gingold <gingold <at> adacore.com>
* dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for offset.
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 38e4814..830220f 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
<at> <at> -3430,7 +3430,7 <at> <at> locexpr_describe_location_piece (struct symbol *symbol, st
&& data[1 + leb128_size] == DW_OP_GNU_push_tls_address
&& piece_end_p (data + 2 + leb128_size, end))
{
- ULONGEST offset;
+ uint64_t offset;
data = safe_read_uleb128 (data + 1, end, &offset);
offset = dwarf2_read_addr_index (per_cu, offset);
RSS Feed