aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ppc-linux-nat.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4632cbf..0276e2c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
+ pointer to uintptr_t before casting to CORE_ADDR.
+
2007-10-02 Markus Deuling <deuling@de.ibm.com>
* linux-nat.c (PTRACE_GETSIGINFO): Add define.
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index ec061b0..d86c9f8 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -869,7 +869,7 @@ ppc_linux_stopped_data_address (struct target_ops *target, CORE_ADDR *addr_p)
|| (siginfo_p->si_code & 0xffff) != 0x0004 /* TRAP_HWBKPT */)
return 0;
- *addr_p = (CORE_ADDR) siginfo_p->si_addr;
+ *addr_p = (CORE_ADDR) (uintptr_t) siginfo_p->si_addr;
return 1;
}