* ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast

pointer to uintptr_t before casting to CORE_ADDR.
This commit is contained in:
Ulrich Weigand 2007-10-02 16:39:29 +00:00
parent 02d3ff8c47
commit 407f1a2e17
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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;
}