[patch] fix tkill_failed gcc warning in gdbserver
Mon Dec 21 20:55:00 GMT 2009
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 :-)
More information about the Gdb-patches