Here we are trying to modify our own version of GDB to support multi-threaded environment.
Till now I could able to read the data associated with registers with respect to every thread but need to find out the way with which we can read thread local variable.
For reading the thread local variable i need to know how to calculate the offset using ptrace command. If anyone here know it would be really helpful to me.
=Thanks.