Hi, I found that gdbserver fails on a 32-bit ppc rfs running in a 64-bit 2.6 linux kernel. The thread id's fetched from thread-db library are above 0x7fffffff. gdbserver has implicit assumptions that thread id's are "signed integers". This is true when running under a 32-bit kernel, but not true here. Attached patch fixes this problem by changing the "strtol" that scans the thread-id to "strtoul" and by changing the "cont_thread > 0" comparison to "cont_thread != -1". Is there any likelyhood of this assumption being made in some other places in gdbserver or gdb? Thanks. -Amit