From 04a83fee11b7074fc1d7a2a6ea13c3a12f87b290 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Mon, 16 Sep 2013 11:28:53 +0000 Subject: [PATCH] * arm-linux-tdep.c: Add "elf/common.h" header. Remove AT_HWCAP macro definintion as it is provided in added include file. * s390-tdep.c: Remove system header Add "elf/common.h" header for AT_HWCAP definition. (s390_core_read_description): Use correct CORE_ADDR for hwcap local variable used as third parameter of function target_auxv_search. --- gdb/ChangeLog | 11 +++++++++++ gdb/arm-linux-tdep.c | 5 +---- gdb/s390-tdep.c | 4 ++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dd25f6a..b52ecb0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +2013-09-16 Pierre Muller + + * arm-linux-tdep.c: Add "elf/common.h" header. + Remove AT_HWCAP macro definintion as it is provided in + added include file. + * s390-tdep.c: Remove system header + Add "elf/common.h" header for AT_HWCAP definition. + (s390_core_read_description): Use correct CORE_ADDR + for hwcap local variable used as third parameter + of function target_auxv_search. + 2013-09-14 Pierre Muller Tom Tromey Pedro Alves diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index 6ac61cc..7546d34 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -49,12 +49,9 @@ #include "parser-defs.h" #include "user-regs.h" #include - +#include "elf/common.h" #include "gdb_string.h" -/* This is defined in on ARM GNU/Linux systems. */ -#define AT_HWCAP 16 - extern int arm_apcs_32; /* Under ARM GNU/Linux the traditional way of performing a breakpoint diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index c340758..091d82a 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -52,7 +52,7 @@ #include "user-regs.h" #include "cli/cli-utils.h" #include -#include +#include "elf/common.h" #include "features/s390-linux32.c" #include "features/s390-linux32v1.c" @@ -807,7 +807,7 @@ s390_core_read_description (struct gdbarch *gdbarch, asection *v1 = bfd_get_section_by_name (abfd, ".reg-s390-last-break"); asection *v2 = bfd_get_section_by_name (abfd, ".reg-s390-system-call"); asection *section = bfd_get_section_by_name (abfd, ".reg"); - unsigned long hwcap = 0; + CORE_ADDR hwcap = 0; target_auxv_search (target, AT_HWCAP, &hwcap); if (!section) -- 2.7.4