This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA/win32] Wrong use of type DWORD in win32-nat.c


Fix some incorrect uses of type DWORD that cause problems on x86_64-windows
(compilation warnings and errors due to DWORD and SIZE_T being different
types).

2009-01-07  Joel Brobecker  <brobecker@adacore.com>

        * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
        definition of local variable "done".
        (info_w32_command, handle_exception): Remove unnecessary cast.

Now that I look at the patch again, I wonder if we shouldn't
print the ExceptionAddress using function host_address_to_string,
rather than using the %lx format...

Tested on x86-windows.

-- 
Joel

Attachment: cast.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]