This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] fix build failure
- From: Tristan Gingold <gingold at adacore dot com>
- To: "gdb-patches at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Date: Fri, 20 Jul 2012 11:58:43 +0200
- Subject: [RFA] fix build failure
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@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
@@ -3430,7 +3430,7 @@ 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);