Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Display names of remote threads
Display names of remote threads [message #1839818] Mon, 29 March 2021 12:39
Dor Rosh is currently offline Dor RoshFriend
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






Previous Topic:How to use Json-c parser or any other parser in Eclipse for C programming in Windows
Next Topic:Debugging Error
Goto Forum:
  


Current Time: Fri Apr 26 00:38:18 GMT 2024

Powered by FUDForum. Page generated in 0.03271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top