diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-02 16:39:29 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-02 16:39:29 +0000 |
commit | 407f1a2e1727b611f2f36645b23300b4f15cf402 (patch) | |
tree | 7cf62d6321ae493a49b8b35994d440e1dc1f335d | |
parent | 02d3ff8c47852d55db40850ca078e88c0de6131a (diff) | |
download | gdb-407f1a2e1727b611f2f36645b23300b4f15cf402.zip gdb-407f1a2e1727b611f2f36645b23300b4f15cf402.tar.gz gdb-407f1a2e1727b611f2f36645b23300b4f15cf402.tar.bz2 |
* ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
pointer to uintptr_t before casting to CORE_ADDR.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ppc-linux-nat.c | 2 |
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; } |