2012-04-11 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Wed, 11 Apr 2012 09:52:12 +0000 (09:52 +0000)
committerTristan Gingold <gingold@adacore.com>
Wed, 11 Apr 2012 09:52:12 +0000 (09:52 +0000)
* i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
warning.

gdb/ChangeLog
gdb/i386-darwin-nat.c

index c3f755eb774b6542f05bee398e24c9a9cff7aaff..20fd5735b3bf988159afc30873126cd79b1a9613 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-11  Tristan Gingold  <gingold@adacore.com>
+
+       * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
+       warning.
+
 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
 
        New command 'explore' which helps explore values and types in
index 1a757e4872185a5628807c8772c1c610c9b23e53..6afbbd0beceb89ba358b4c36bf12be5cafbb135f 100644 (file)
@@ -71,7 +71,7 @@ i386_darwin_fetch_inferior_registers (struct target_ops *ops,
            {
              printf_unfiltered (_("Error calling thread_get_state for "
                                   "GP registers for thread 0x%lx\n"),
-                                current_thread);
+                                (unsigned long) current_thread);
              MACH_CHECK_ERROR (ret);
            }
          amd64_supply_native_gregset (regcache, &gp_regs.uts, -1);
@@ -91,7 +91,7 @@ i386_darwin_fetch_inferior_registers (struct target_ops *ops,
            {
              printf_unfiltered (_("Error calling thread_get_state for "
                                   "float registers for thread 0x%lx\n"),
-                                current_thread);
+                                (unsigned long) current_thread);
              MACH_CHECK_ERROR (ret);
            }
           amd64_supply_fxsave (regcache, -1, &fp_regs.ufs.fs64.__fpu_fcw);