From 5732a500953b06899d4308778d7850999f70219c Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 9 Jan 2009 10:43:37 +0000 Subject: [PATCH] * win32-nat.c (get_image_name, win32_xfer_memory): Fix type definition of local variable "done". (info_w32_command, handle_exception): Remove unnecessary cast. --- gdb/ChangeLog | 6 ++++++ gdb/win32-nat.c | 8 ++++---- gdb/windows-nat.c | 8 ++++---- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d5ce35667ec..a3f00fd17b4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-01-09 Joel Brobecker + + * win32-nat.c (get_image_name, win32_xfer_memory): Fix type + definition of local variable "done". + (info_w32_command, handle_exception): Remove unnecessary cast. + 2009-01-09 Joel Brobecker * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 0c1ec05421e..51443a3d4ed 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -696,7 +696,7 @@ get_image_name (HANDLE h, void *address, int unicode) char *address_ptr; int len = 0; char b[2]; - DWORD done; + SIZE_T done; /* Attempt to read the name of the dll that was detected. This is documented to work only when actively debugging @@ -1001,7 +1001,7 @@ info_w32_command (char *args, int from_tty) #define DEBUG_EXCEPTION_SIMPLE(x) if (debug_exceptions) \ printf_unfiltered ("gdb: Target exception %s at 0x%08lx\n", x, \ - (DWORD) current_event.u.Exception.ExceptionRecord.ExceptionAddress) + current_event.u.Exception.ExceptionRecord.ExceptionAddress) static int handle_exception (struct target_waitstatus *ourstatus) @@ -1115,7 +1115,7 @@ handle_exception (struct target_waitstatus *ourstatus) return -1; printf_unfiltered ("gdb: unknown target exception 0x%08lx at 0x%08lx\n", current_event.u.Exception.ExceptionRecord.ExceptionCode, - (DWORD) current_event.u.Exception.ExceptionRecord.ExceptionAddress); + current_event.u.Exception.ExceptionRecord.ExceptionAddress); ourstatus->value.sig = TARGET_SIGNAL_UNKNOWN; break; } @@ -1981,7 +1981,7 @@ win32_xfer_memory (CORE_ADDR memaddr, gdb_byte *our, int len, int write, struct mem_attrib *mem, struct target_ops *target) { - DWORD done = 0; + SIZE_T done = 0; if (write) { DEBUG_MEM (("gdb: write target memory, %d bytes at 0x%08lx\n", diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 0c1ec05421e..51443a3d4ed 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -696,7 +696,7 @@ get_image_name (HANDLE h, void *address, int unicode) char *address_ptr; int len = 0; char b[2]; - DWORD done; + SIZE_T done; /* Attempt to read the name of the dll that was detected. This is documented to work only when actively debugging @@ -1001,7 +1001,7 @@ info_w32_command (char *args, int from_tty) #define DEBUG_EXCEPTION_SIMPLE(x) if (debug_exceptions) \ printf_unfiltered ("gdb: Target exception %s at 0x%08lx\n", x, \ - (DWORD) current_event.u.Exception.ExceptionRecord.ExceptionAddress) + current_event.u.Exception.ExceptionRecord.ExceptionAddress) static int handle_exception (struct target_waitstatus *ourstatus) @@ -1115,7 +1115,7 @@ handle_exception (struct target_waitstatus *ourstatus) return -1; printf_unfiltered ("gdb: unknown target exception 0x%08lx at 0x%08lx\n", current_event.u.Exception.ExceptionRecord.ExceptionCode, - (DWORD) current_event.u.Exception.ExceptionRecord.ExceptionAddress); + current_event.u.Exception.ExceptionRecord.ExceptionAddress); ourstatus->value.sig = TARGET_SIGNAL_UNKNOWN; break; } @@ -1981,7 +1981,7 @@ win32_xfer_memory (CORE_ADDR memaddr, gdb_byte *our, int len, int write, struct mem_attrib *mem, struct target_ops *target) { - DWORD done = 0; + SIZE_T done = 0; if (write) { DEBUG_MEM (("gdb: write target memory, %d bytes at 0x%08lx\n", -- 2.30.2