Bug 382268 - heaptrack thinks gdb attachment was successfull
Summary: heaptrack thinks gdb attachment was successfull
Status: RESOLVED FIXED
Alias: None
Product: Heaptrack
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Milian Wolff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-12 09:57 UTC by Sergio Martins
Modified: 2018-03-21 17:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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