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]

Re: [RFA] Fix cygwin32 failure introduced by [patch] windows-nat.c: Fix offset problem in signal string handling


> Date: Wed, 27 Mar 2013 12:46:45 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: brobecker@adacore.com, gdb-patches@sourceware.org, vinschen@redhat.com
> 
>   unsigned long xul;
>   ...
>   xul = strtoull (p, NULL, 0) & ~((DWORD_PTR)0);
>   x = (LPCVOID) xul;

Sorry, one more gotcha: the first line should say this:

  DWORD_PTR xul;

(You could also use uintptr_t instead of DWORD_PTR in both places, but
I prefer not to mix Windows data types with standard ones.)


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