aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-07-02 17:11:36 +0000
committerDoug Evans <dje@google.com>2012-07-02 17:11:36 +0000
commit7f216e7c7c1812f0acf33cd537b24e9a056ca6f4 (patch)
treeba7004b41ff8a10a75e79a7faa833283642330c2 /gdb
parentd628b0e133664d90241b8d17b3d5f43453020d90 (diff)
downloadgdb-7f216e7c7c1812f0acf33cd537b24e9a056ca6f4.zip
gdb-7f216e7c7c1812f0acf33cd537b24e9a056ca6f4.tar.gz
gdb-7f216e7c7c1812f0acf33cd537b24e9a056ca6f4.tar.bz2
* mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
pointer to int.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/mem-break.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 02a2398..43e5240 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-02 Doug Evans <dje@google.com>
+
+ * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
+ pointer to int.
+
2012-07-02 Stan Shebs <stan@codesourcery.com>
* Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c
index aec09ba..8ab6e13 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);
}