you can use the command "inf thr", to see the threads running in the process, along with their LWP ids,
to switch from one thread to another, by using the command
thr <thread id>
but i dont think gdb is really that great for multi thread debugging...
there is a debugger called totalview by etnus (not a free ware.but you can download a demo copy at
www.etnus.com)