From: Joel Brobecker Date: Mon, 16 Mar 2009 15:57:08 +0000 (+0000) Subject: * darwin-nat.c (darwin_resume): Fix a compiler warning when X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da66f6a6bc5195b3cbd8b454715d3ab10ea7cf00;p=binutils-gdb.git * darwin-nat.c (darwin_resume): Fix a compiler warning when building on x86_64-darwin. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6bdacffbd1b..9fd8d06912e 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 cabd4e24381..cc1047adab6 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); }