Display names of remote threads [message #1839818] |
Mon, 29 March 2021 12:39 |
Dor Rosh Messages: 1 Registered: March 2021 |
Junior Member |
|
|
Hi,
I use Eclipse on Ubuntu Linux and I want to see thread names in Eclipse debugger view.
I name the threads after creation with prctl system call, for example:
prctl(PR_SET_NAME, "TEST", 0, 0, 0);
When I debug the program locally, the debugger view shows the thread's name I set (see attached screenshot).
However, I must debug the program remotely and when I debug it remotely on target I can't see these names and I only see Eclipse/GDB internal naming. (Thread #1 etc...)
Target's OS is also Linux Ubuntu.
I checked and the threads are given the name on target machine using ps command, but for some reason these names are not transferred in the GDB remote protocol.
I think it is a very fundamental ability but I could not find a documentation or way to accomplish this.
Does this have to do with Eclipse or GDB\GDB Server?
Do they support this at all?
If they do, could you please guide me how to display the names?
Best Regards,
Dor
|
|
|
Powered by
FUDForum. Page generated in 0.03271 seconds