aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-tdep.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2013-09-16 11:28:53 +0000
committerPierre Muller <muller@sourceware.org>2013-09-16 11:28:53 +0000
commit04a83fee11b7074fc1d7a2a6ea13c3a12f87b290 (patch)
treeccfdddb944c9a28ad78c567657919222266a6619 /gdb/s390-tdep.c
parent1d50d57ca2c58167dc7ba142c6d38fad3d10b980 (diff)
downloadgdb-04a83fee11b7074fc1d7a2a6ea13c3a12f87b290.zip
gdb-04a83fee11b7074fc1d7a2a6ea13c3a12f87b290.tar.gz
gdb-04a83fee11b7074fc1d7a2a6ea13c3a12f87b290.tar.bz2
* 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 <elf.h> 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.
Diffstat (limited to 'gdb/s390-tdep.c')
-rw-r--r--gdb/s390-tdep.c4
1 files changed, 2 insertions, 2 deletions
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 <ctype.h>
-#include <elf.h>
+#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)