Hi,
I was trying to set names to specific threads in a multi threaded application. This is to make sure that the debugging becomes easy when we debug the app. I tried using the function prctl(2) for the same purpose. Stil thread name doesnt appear when I try
(gdb) thread apply all bt
Currently the o/p of the above command is something like what I have pasted below
Quote:
Thread 2 (process 980):
#0 0x2aabd524 in ?? ()
|
I would like to see it as
Quote:
Name (process 980):
#0 0x2aabd524 in ?? ()
|
or
Quote:
Thread 2 (process Name):
#0 0x2aabd524 in ?? ()
|
is this possible?
this is how I used the function
Quote:
prctl(PR_SET_NAME, (unsigned long) "Name", 0, 0, 0);
|
Thanks