* darwin-nat.c (darwin_resume): Fix a compiler warning when
authorJoel Brobecker <brobecker@gnat.com>
Mon, 16 Mar 2009 15:57:08 +0000 (15:57 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 16 Mar 2009 15:57:08 +0000 (15:57 +0000)
        building on x86_64-darwin.

gdb/ChangeLog
gdb/darwin-nat.c

index 6bdacffbd1b9895b6d27bed78237e8d15002764d..9fd8d06912e0ebe721e19588d003013c690c2f30 100644 (file)
@@ -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.
index cabd4e24381c60f73f7155eb6e6217979c38fd8d..cc1047adab6f4202a73ec176f90b822f47ac7054 100644 (file)
@@ -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);
            }