This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] fix tkill_failed gcc warning in gdbserver
On Mon, Dec 21, 2009 at 12:36:13PM -0800, Doug Evans wrote:
> The next question is, does gdbserver need to check for
> syscall.h/syscall() like gdb does?
> Or can I just replace #ifdef SYS_tkill with #ifdef __NR_tkill.
> gdbserver includes sys/syscall.h unconditionally, gdb/linux-nat.c does not.
> gdb also checks for __NR_tkill in a way that works if it were an enum.
> Does one need to worry about that case?
I don't know the answers to any of these. But if you have Linux
kernel headers, you are going to have __NR_* constants, and I don't
know any Linux C library that doesn't have syscall().
If it breaks, we'll fix it :-)
--
Daniel Jacobowitz
CodeSourcery