Bug 430948

Summary: Add support for pthread_setname_np to the "Frame stack/Threads" tool-view.
Product: [Applications] kdevelop Reporter: Jason McGuiness <kde-bugs>
Component: UI: generalAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.6.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jason McGuiness 2020-12-29 17:38:38 UTC
SUMMARY
It would be *extremely* useful if support for "pthread_setname_np()" were added to the "Threads" edit-box in the "Frame stack" tool-view. Note that gdb supports this with "info threads".

Asides:
1. "Frame stack": this is oddly named: surely it should be called "Stack frame" in English?
2. The "Threads" edit-box could do with some columns for the thread id, thread name and current function.
3. I'd like to see more than one stack-frame at a time. This design prevents me.

STEPS TO REPRODUCE
1. Start debugging a program.
2. Interrupt the program.
3. Open the "Frame stack" (sic) tool-view. Observe the lack of thread names in the "Threads" edit-box.
4. Go to the "GDB" tool-view and enter the command "info threads". Observe the thread names.

OBSERVED RESULT
No thread names in "Frame stack/Threads".

EXPECTED RESULT
The thread names in the same edit box.

SOFTWARE/OS VERSIONS
Windows: n/a
macOS: n/a
Linux/KDE Plasma: Gentoo GNU/Linux v2.7
(available in About System)
KDE Plasma Version: n/a - using XFCE
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1 (built against 5.15.1)

ADDITIONAL INFORMATION
See also bug https://bugs.kde.org/show_bug.cgi?id=393182