Improve gdb plugin unit tests for 5.0 branch
Summary: Exactly the same patch as D1985, but targeting 5.0 branch
Test Plan: gdb unit tests
Reviewers: kfunk, KDevelop
Subscribers: kdevelop-devel
Differential Revision: https://phabricator.kde.org/D2178