Fix a crash when gdb produces malformed output.

Authored by qi437103 on Feb 22 2017, 12:31 AM.

Description

Fix a crash when gdb produces malformed output.

Summary:
Fix a crash when gdb produces malformed output. The crash was reported in https://bugs.kde.org/show_bug.cgi?id=376595.

It is actually a bug in gdb which can't handle invalid/out-of-scope watchpoints gracefully.

Instead of assert and crash the whole IDE, debugger errors are now reported to the user in a dialog.
And debug session will automatically end in this case.

Test Plan: A minimal test case from the reporter: https://bugs.kde.org/show_bug.cgi?id=376595#c20

Reviewers: apol, KDevelop, kfunk

Reviewed By: KDevelop, kfunk

Subscribers: kfunk, kdevelop-devel

Differential Revision: https://phabricator.kde.org/D4714

Details

Committed
qi437103Feb 22 2017, 8:31 PM
Reviewer
KDevelop
Differential Revision
D4714: Fix a crash when gdb produces malformed output.
Parents
R32:a733fc6b2881: Change the Analyzers mnemonic to Z
Branches
Unknown
Tags
Unknown