From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Kevin Buettner Cc: Paul Hilfinger , gdb-patches@sources.redhat.com Subject: Re: RFC: Killing some warnings Date: Tue, 13 Feb 2001 14:28:00 -0000 Message-id: <3A8983CD.8AC11A4B@cygnus.com> References: <20010211075957.3E9F434D80@nile.gnat.com> <1010212225533.ZM10647@ocotillo.lan> X-SW-Source: 2001-02/msg00189.html > Personally, I'd prefer to see these changed to avoid the casts to (void *) > and (int). See the implementation in lin-thread.c (and also elsewhere) > for an example. That is correct - you can't robustly cast (int) <-> (void*) on some architectures. Plenty of examples of how to handle this cleanly. See sol-thread.c:restore_inferior_thread() for instance. > (If we ever get around to merging my pid/tid/lwp megapatch, these are > cleaned up everywhere. I.e, there is one implementation that all files > which need to do this sort of thing use.) Yes. One way or the other I intend making it happen in the next few months :-) Andrew