* windows-nat.c (windows_xfer_memory): Fix debug-output

for LLP64.
This commit is contained in:
Kai Tietz 2013-02-19 15:46:32 +00:00
parent 6ce4c1124b
commit 42f45f1a89
2 changed files with 9 additions and 4 deletions

View File

@ -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):

View File

@ -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))