Bug 382268

Summary: heaptrack thinks gdb attachment was successfull
Product: [Applications] Heaptrack Reporter: Sergio Martins <smartins>
Component: generalAssignee: Milian Wolff <mail>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sergio Martins 2017-07-12 09:57:20 UTC
If gdb isn't installed, and using heaptrack -p <pid>:

gdb: command not found
Heaptrack finished! Now run the following to investigate the data:
Comment 1 Milian Wolff 2018-03-21 17:12:31 UTC
Git commit 705afc7f9c30ffcc48118a173b73a7f04ec46d05 by Milian Wolff.
Committed on 21/03/2018 at 17:11.
Pushed by mwolff into branch 'master'.

Error out early when GDB is not available

We cannot runtime-attach without GDB. Tell this to the user
and error out early.

M  +8    -0    src/track/heaptrack.sh.cmake

https://commits.kde.org/heaptrack/705afc7f9c30ffcc48118a173b73a7f04ec46d05