aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/darwin-nat.c2
2 files changed, 6 insertions, 1 deletions
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 <brobecker@adacore.com>
+
+ * darwin-nat.c (darwin_resume): Fix a compiler warning when
+ building on x86_64-darwin.
+
2009-03-16 Tristan Gingold <gingold@adacore.com>
* 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);
}