aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2013-09-02 12:45:55 +0000
committerPierre Muller <muller@sourceware.org>2013-09-02 12:45:55 +0000
commita238856838fffac2dca233db8a0bfd6b3d748a14 (patch)
tree24758451a83825c1496b52e7a355b3ff2c65d079 /gdb
parentc8094e012c8c44edc02008f13d0ec4335294b708 (diff)
downloadgdb-a238856838fffac2dca233db8a0bfd6b3d748a14.zip
gdb-a238856838fffac2dca233db8a0bfd6b3d748a14.tar.gz
gdb-a238856838fffac2dca233db8a0bfd6b3d748a14.tar.bz2
* windows-nat.c (windows_xfer_memory): Fix compilation failure
by use of plongest function.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/windows-nat.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9b1fa3f..0622214 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-02 Pierre Muller <muller@sourceware.org>
+
+ * windows-nat.c (windows_xfer_memory): Fix compilation failure
+ by use of plongest function.
+
2013-09-02 Tristan Gingold <gingold@adacore.com>
* NEWS: Add entry mentioning support for native Windows x64
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 2ffaad4..28705f7 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -2327,8 +2327,8 @@ windows_xfer_memory (gdb_byte *readbuf, const gdb_byte *writebuf,
if (writebuf != NULL)
{
- DEBUG_MEM (("gdb: write target memory, %d bytes at %s\n",
- len, core_addr_to_string (memaddr)));
+ DEBUG_MEM (("gdb: write target memory, %s bytes at %s\n",
+ plongest (len), core_addr_to_string (memaddr)));
success = WriteProcessMemory (current_process_handle,
(LPVOID) (uintptr_t) memaddr, writebuf,
len, &done);
@@ -2337,8 +2337,8 @@ windows_xfer_memory (gdb_byte *readbuf, const gdb_byte *writebuf,
}
else
{
- DEBUG_MEM (("gdb: read target memory, %d bytes at %s\n",
- len, core_addr_to_string (memaddr)));
+ DEBUG_MEM (("gdb: read target memory, %s bytes at %s\n",
+ plongest (len), core_addr_to_string (memaddr)));
success = ReadProcessMemory (current_process_handle,
(LPCVOID) (uintptr_t) memaddr, readbuf,
len, &done);