This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 09/26] -Wpointer-sign: aarch64-tdep.c.
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 12 Apr 2013 00:00:01 +0100
- Subject: [PATCH 09/26] -Wpointer-sign: aarch64-tdep.c.
- References: <20130411225847 dot 16791 dot 29283 dot stgit at brno dot lan>
../../src/gdb/aarch64-tdep.c: In function âaarch64_analyze_prologueâ:
../../src/gdb/aarch64-tdep.c:713:7: error: pointer targets in passing argument 3 of âdecode_cbâ differ in signedness [-Werror=pointer-sign]
../../src/gdb/aarch64-tdep.c:386:1: note: expected âint *â but argument is of type âunsigned int *â
../../src/gdb/aarch64-tdep.c:747:7: error: pointer targets in passing argument 3 of âdecode_sturâ differ in signedness [-Werror=pointer-sign]
../../src/gdb/aarch64-tdep.c:597:1: note: expected âint *â but argument is of type âunsigned int *â
'is64' is just used as a boolean; signed/unsigned doesn't really matter.
2013-04-11 Pedro Alves <palves@redhat.com>
* aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
'is64' to signed 'int'.
---
gdb/aarch64-tdep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/aarch64-tdep.c b/gdb/aarch64-tdep.c
index 2a889fa..9a01352 100644
--- a/gdb/aarch64-tdep.c
+++ b/gdb/aarch64-tdep.c
@@ -683,7 +683,7 @@ aarch64_analyze_prologue (struct gdbarch *gdbarch,
int op_is_sub;
int32_t imm;
unsigned cond;
- unsigned is64;
+ int is64;
unsigned is_link;
unsigned op;
unsigned bit;