From de589d04f30e658fcf4ba37a678c9487c128f97f Mon Sep 17 00:00:00 2001 From: Will Newton Date: Thu, 21 Aug 2014 09:38:00 +0100 Subject: [PATCH] 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 * aarch64-linux-nat.c (dr_changed_t): Change the type from unsigned LONGEST to ULONGEST. --- gdb/ChangeLog | 5 +++++ gdb/aarch64-linux-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8bae7d334db..fae78e54fce 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-08-21 Bin Cheng + + * aarch64-linux-nat.c (dr_changed_t): Change the type from + unsigned LONGEST to ULONGEST. + 2014-08-20 Pedro Alves * Makefile.in (check-read1): New rule. diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c index 4ae789b7747..1184197fe2e 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. */ -- 2.30.2