aboutsummaryrefslogtreecommitdiff
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
parent58529c02672f2696c5e6097ed92b2a167a240924 (diff)
downloadgdb-da66f6a6bc5195b3cbd8b454715d3ab10ea7cf00.zip
gdb-da66f6a6bc5195b3cbd8b454715d3ab10ea7cf00.tar.gz
gdb-da66f6a6bc5195b3cbd8b454715d3ab10ea7cf00.tar.bz2
* darwin-nat.c (darwin_resume): Fix a compiler warning when
building on x86_64-darwin.
-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);
}