From a993366103a671e95f5721e5517f8a68149d4d0a Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 19 Apr 2013 15:24:25 +0000 Subject: -Wpointer-sign: alpha-tdep.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../../src/gdb/alpha-tdep.c: In function ‘alpha_extract_return_value’: ../../src/gdb/alpha-tdep.c:520:4: error: pointer targets in passing argument 3 of ‘regcache_cooked_read_signed’ differ in signedness [-Werror=pointer-sign] In file included from ../../src/gdb/alpha-tdep.c:36:0: We use regcache_cooked_read_unsigned everywhere else too. 2013-04-19 Pedro Alves * alpha-tdep.c (alpha_extract_return_value): Use regcache_cooked_read_unsigned to read 'v0'. --- gdb/ChangeLog | 5 +++++ gdb/alpha-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3cb8438..122cfb4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2013-04-19 Pedro Alves + * alpha-tdep.c (alpha_extract_return_value): Use + regcache_cooked_read_unsigned to read 'v0'. + +2013-04-19 Pedro Alves + * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of parameters 'at', 'as' and 'offset' to uint32_t. diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 7696b42..a8b90b9 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -517,7 +517,7 @@ alpha_extract_return_value (struct type *valtype, struct regcache *regcache, break; case 32: - regcache_cooked_read_signed (regcache, ALPHA_V0_REGNUM, &l); + regcache_cooked_read_unsigned (regcache, ALPHA_V0_REGNUM, &l); read_memory (l, valbuf, 32); break; -- cgit v1.1