diff options
author | Doug Evans <dje@google.com> | 2012-07-02 17:11:36 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-07-02 17:11:36 +0000 |
commit | 8a26a566700f8250efd58c1224e3d9f0cc550d55 (patch) | |
tree | 26fb87ce0d5a24e4ff6daa740e147ec89a57700e /gdb/gdbserver/mem-break.c | |
parent | 2885fb01788703023acfeb2bade84c20d8723853 (diff) | |
download | gdb-8a26a566700f8250efd58c1224e3d9f0cc550d55.tar.gz |
* mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
pointer to int.
Diffstat (limited to 'gdb/gdbserver/mem-break.c')
-rw-r--r-- | gdb/gdbserver/mem-break.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c index aec09ba5bb8..8ab6e13a7c4 100644 --- a/gdb/gdbserver/mem-break.c +++ b/gdb/gdbserver/mem-break.c @@ -22,6 +22,7 @@ #include "server.h" #include "regcache.h" #include "ax.h" +#include <stdint.h> const unsigned char *breakpoint_data; int breakpoint_len; @@ -929,8 +930,8 @@ gdb_no_commands_at_breakpoint (CORE_ADDR where) return 0; if (debug_threads) - fprintf (stderr, "at 0x%s, bp command_list is 0x%x\n", - paddress (where), (int) bp->command_list); + fprintf (stderr, "at 0x%s, bp command_list is 0x%lx\n", + paddress (where), (long) (uintptr_t) bp->command_list); return (bp->command_list == NULL); } |