User level threads debugging with GDB

PILLON Julien
2010-04-09T08:12:50Z

Hi,
I would like to know the right way to do some user-level threads debugging with GDB and I have a few questions :
First, the main work will be within the libthread_db (especially in the td_ta_new function I guess) but what else must be modified and what can be left as is ?
Next, how should I implement the stack printing ?
Is the attach mode altered with this kind of modifications ? And if it is, where are the sources to modify ?

regards

Julien