aboutsummaryrefslogtreecommitdiff
path: root/gdb/darwin-nat.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-03-16 15:57:08 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-03-16 15:57:08 +0000
commitda66f6a6bc5195b3cbd8b454715d3ab10ea7cf00 (patch)
treecbebaaeddd0612ded8d2271eed4bfe7615c5a806 /gdb/darwin-nat.c
parent58529c02672f2696c5e6097ed92b2a167a240924 (diff)
downloadfsf-binutils-gdb-da66f6a6bc5195b3cbd8b454715d3ab10ea7cf00.zip
fsf-binutils-gdb-da66f6a6bc5195b3cbd8b454715d3ab10ea7cf00.tar.gz
fsf-binutils-gdb-da66f6a6bc5195b3cbd8b454715d3ab10ea7cf00.tar.bz2
* darwin-nat.c (darwin_resume): Fix a compiler warning when
building on x86_64-darwin.
Diffstat (limited to 'gdb/darwin-nat.c')
-rw-r--r--gdb/darwin-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index cabd4e2..cc1047a 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -367,7 +367,7 @@ darwin_resume (struct target_ops *ops,
{
int nsignal = target_signal_to_host (signal);
res = PTRACE (PT_THUPDATE, pid,
- (void *)exc_msg.thread_port, nsignal);
+ (void *)(uintptr_t)exc_msg.thread_port, nsignal);
if (res < 0)
printf_unfiltered (_("ptrace THUP: res=%d\n"), res);
}