summaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2013-02-19 15:46:29 +0000
committerKai Tietz <kai.tietz@onevision.com>2013-02-19 15:46:29 +0000
commit5ad3e7fe864d1a87517c98c819530143a78e42ab (patch)
treea62e55157f91043702ca6d7c7c372951f2b2c8c5 /gdb/windows-nat.c
parentba4723b55c553a4ec25cba267f1ae5852237ec1d (diff)
downloadgdb-5ad3e7fe864d1a87517c98c819530143a78e42ab.tar.gz
* windows-nat.c (windows_xfer_memory): Fix debug-output
for LLP64.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 2fe50b1d34e..a69d561074b 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -2313,8 +2313,8 @@ windows_xfer_memory (CORE_ADDR memaddr, gdb_byte *our, int len,
SIZE_T done = 0;
if (write)
{
- DEBUG_MEM (("gdb: write target memory, %d bytes at 0x%08lx\n",
- len, (DWORD) (uintptr_t) memaddr));
+ DEBUG_MEM (("gdb: write target memory, %d bytes at %s\n",
+ len, core_addr_to_string (memaddr)));
if (!WriteProcessMemory (current_process_handle,
(LPVOID) (uintptr_t) memaddr, our,
len, &done))
@@ -2324,8 +2324,8 @@ windows_xfer_memory (CORE_ADDR memaddr, gdb_byte *our, int len,
}
else
{
- DEBUG_MEM (("gdb: read target memory, %d bytes at 0x%08lx\n",
- len, (DWORD) (uintptr_t) memaddr));
+ DEBUG_MEM (("gdb: read target memory, %d bytes at %s\n",
+ len, core_addr_to_string (memaddr)));
if (!ReadProcessMemory (current_process_handle,
(LPCVOID) (uintptr_t) memaddr, our,
len, &done))