OSDN Git Service

* ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
authoruweigand <uweigand>
Tue, 2 Oct 2007 16:39:29 +0000 (16:39 +0000)
committeruweigand <uweigand>
Tue, 2 Oct 2007 16:39:29 +0000 (16:39 +0000)
pointer to uintptr_t before casting to CORE_ADDR.

gdb/ChangeLog
gdb/ppc-linux-nat.c

index 4632cbf..0276e2c 100644 (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.
index ec061b0..d86c9f8 100644 (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;
 }