[RFA] Thread exit messages on MS-Windows

Corinna Vinschen vinschen@redhat.com
Mon Apr 29 08:21:00 GMT 2013


On Apr 27 12:00, Eli Zaretskii wrote:
> One minor correction:
> 
> > +  else if (print_thread_events && id != main_thread_id)
> > +    printf_unfiltered (_("[%s exited with code %d]\n"),
>                                                   ^^
> This should be %lu, not %d.

If this code is generic and runs under Cygwin as well, then please make
that %u, not %lu.  DWORD is a 4 byte value and under 64 bit Cygwin
(LP64), it's not the same as long, but as int.  Alternatively, add an
explicit cast to unsigned long to the argument.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat



More information about the Gdb-patches mailing list