From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5057 invoked by alias); 19 Feb 2013 14:09:27 -0000 Received: (qmail 4948 invoked by uid 22791); 19 Feb 2013 14:09:25 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ie0-f176.google.com (HELO mail-ie0-f176.google.com) (209.85.223.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 Feb 2013 14:09:16 +0000 Received: by mail-ie0-f176.google.com with SMTP id k13so8248133iea.7 for ; Tue, 19 Feb 2013 06:09:16 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.50.219.228 with SMTP id pr4mr9072017igc.40.1361282946699; Tue, 19 Feb 2013 06:09:06 -0800 (PST) Received: by 10.64.231.200 with HTTP; Tue, 19 Feb 2013 06:09:06 -0800 (PST) Date: Tue, 19 Feb 2013 14:09:00 -0000 Message-ID: Subject: [patch gdb]: Fix display for LLP64 target in window-nat.c From: Kai Tietz To: gdb Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00074.txt.bz2 Hello, this patch fixes a pointer-truncation in display on Windows LLP64 target. ChangeLog 2013-02-19 Kai Tietz * windows-nat.c (windows_xfer_memory): Fix debug-output for LLP64. Ok for apply? Regards, Kai Index: windows-nat.c =================================================================== RCS file: /cvs/src/src/gdb/windows-nat.c,v retrieving revision 1.238 diff -p -u -r1.238 windows-nat.c --- windows-nat.c 1 Jan 2013 06:41:29 -0000 1.238 +++ windows-nat.c 19 Feb 2013 14:05:20 -0000 @@ -2312,8 +2312,8 @@ windows_xfer_memory (CORE_ADDR memaddr, 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 0x%p\n", + len, (LPVOID) (uintptr_t) memaddr)); if (!WriteProcessMemory (current_process_handle, (LPVOID) (uintptr_t) memaddr, our, len, &done)) @@ -2323,8 +2323,8 @@ windows_xfer_memory (CORE_ADDR memaddr, } 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 0x%p\n", + len, (LPVOID) (uintptr_t) memaddr)); if (!ReadProcessMemory (current_process_handle, (LPCVOID) (uintptr_t) memaddr, our, len, &done))