aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2013-02-19 15:46:32 +0000
committerKai Tietz <kai.tietz@onevision.com>2013-02-19 15:46:32 +0000
commit42f45f1a898dbc2e6f7fd3029cb8cad60a4dea8f (patch)
treef8f2ff998d102db841be25abd37801942fdbfb99
parent6ce4c1124bb6579cd7dba278b86d91db3380fa97 (diff)
downloadgdb-42f45f1a898dbc2e6f7fd3029cb8cad60a4dea8f.zip
gdb-42f45f1a898dbc2e6f7fd3029cb8cad60a4dea8f.tar.gz
gdb-42f45f1a898dbc2e6f7fd3029cb8cad60a4dea8f.tar.bz2
* windows-nat.c (windows_xfer_memory): Fix debug-output
for LLP64.
-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 c23e318..e947b30 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-19 Kai Tietz <ktietz@redhat.com>
+
+ * windows-nat.c (windows_xfer_memory): Fix debug-output
+ for LLP64.
+
2013-02-19 Lei Liu <lei.liu2@windriver.com>
* mips-linux-nat.c (mips64_linux_regsets_store_registers):
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 2fe50b1..a69d561 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))