aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Newton <will.newton@linaro.org>2014-08-21 09:38:00 +0100
committerWill Newton <will.newton@linaro.org>2014-08-21 09:38:00 +0100
commitde589d04f30e658fcf4ba37a678c9487c128f97f (patch)
treeadbb0e04ed63de495022a5e0fda4c37cd93dcd37
parent42868dce3e9d5c858d91f141ec920bc4629a5918 (diff)
downloadgdb-de589d04f30e658fcf4ba37a678c9487c128f97f.zip
gdb-de589d04f30e658fcf4ba37a678c9487c128f97f.tar.gz
gdb-de589d04f30e658fcf4ba37a678c9487c128f97f.tar.bz2
gdb: Fix aarch64 native build issue caused by use of LONGEST
Recent gdb code refactor changes LONGEST from a macro to a typedef, thus the use of it in aarch64-linux-nat.c is no longer valid. 2014-08-21 Bin Cheng <bin.cheng@arm.com> * aarch64-linux-nat.c (dr_changed_t): Change the type from unsigned LONGEST to ULONGEST.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/aarch64-linux-nat.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8bae7d3..fae78e5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-21 Bin Cheng <bin.cheng@arm.com>
+
+ * aarch64-linux-nat.c (dr_changed_t): Change the type from
+ unsigned LONGEST to ULONGEST.
+
2014-08-20 Pedro Alves <palves@redhat.com>
* Makefile.in (check-read1): New rule.
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index 4ae789b..1184197 100644
--- a/gdb/aarch64-linux-nat.c
+++ b/gdb/aarch64-linux-nat.c
@@ -144,7 +144,7 @@ static int debug_hw_points;
ptrace calls to the kernel, i.e. avoid asking the kernel to write
to the debug registers with unchanged values. */
-typedef unsigned LONGEST dr_changed_t;
+typedef ULONGEST dr_changed_t;
/* Set each of the lower M bits of X to 1; assert X is wide enough. */