From da66f6a6bc5195b3cbd8b454715d3ab10ea7cf00 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 16 Mar 2009 15:57:08 +0000 Subject: * darwin-nat.c (darwin_resume): Fix a compiler warning when building on x86_64-darwin. --- gdb/ChangeLog | 5 +++++ gdb/darwin-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6bdacff..9fd8d06 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-03-16 Joel Brobecker + + * darwin-nat.c (darwin_resume): Fix a compiler warning when + building on x86_64-darwin. + 2009-03-16 Tristan Gingold * configure.tgt: Add handling for x86_64-darwin. 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); } -- cgit v1.1