Provide support for highlighting crashed threads
ClosedPublic

Authored by itatriev on Jan 11 2016, 2:03 PM.

Details

Summary

This diff is related to D785. Also, I've provided "BUG" keyword in that diff, so I'm omitting it here.

Test Plan

same as in D785

Diff Detail

Repository
R32 KDevelop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
itatriev updated this revision to Diff 1870.Jan 11 2016, 2:03 PM
itatriev retitled this revision from to Provide support for highlighting crashed threads.
itatriev updated this object.
itatriev edited the test plan for this revision. (Show Details)
itatriev added a reviewer: kfunk.
itatriev added a subscriber: kdevelop-devel.
kfunk edited edge metadata.Jan 11 2016, 3:41 PM

Feel free to add the BUG line here, too.

Note, please write:

...

BUG: 123

so commit hooks are able to parse the "BUG" marker in the commit msg

debuggers/gdb/debugsession.h
83

constify

debuggers/gdb/gdbframestackmodel.cpp
81–82

Take care: 'current-thread-id' apparently might be unset. Protect against this below. Maybe group those two together

87

Style: No spaces inside (...)

Same below

itatriev updated this revision to Diff 1877.Jan 11 2016, 4:18 PM
itatriev edited edge metadata.

Minor changes.

itatriev marked 3 inline comments as done.Jan 11 2016, 4:18 PM
itatriev updated this revision to Diff 1921.Jan 13 2016, 9:06 AM

Code styling (spaces).

kfunk added inline comments.Jan 13 2016, 9:29 AM
debuggers/gdb/gdbframestackmodel.cpp
81–85

Share r["current-thread-id"].toInt() in a var

itatriev updated this revision to Diff 1922.Jan 13 2016, 9:33 AM
itatriev marked an inline comment as done.
kfunk accepted this revision.Jan 13 2016, 9:46 AM
kfunk edited edge metadata.
This revision is now accepted and ready to land.Jan 13 2016, 9:46 AM
mwolff added a subscriber: mwolff.Jan 13 2016, 11:31 AM
mwolff added inline comments.
debuggers/gdb/debugsession.h
303

could you please do a minor fixup commit that moves this bool up a few lines below the other bool? That way we shrink the padding space there instead of growing this class. Not that it matters for this class really, but doing it always allows us to run tools on our code to ensure we waste as little space as possible. And you learn something new as well :)

Thanks for the contributions!

itatriev reopened this revision.Jan 13 2016, 11:46 AM
This revision is now accepted and ready to land.Jan 13 2016, 11:46 AM
itatriev updated this revision to Diff 1924.Jan 13 2016, 11:47 AM
itatriev edited edge metadata.

You meant smth like this?

yes. please rephrase the comment though:

try if the process crashed.

Also, you should probably rename the variable to m_hasCrashed or m_crashDetected.

itatriev updated this revision to Diff 1930.Jan 13 2016, 2:08 PM
kfunk added a comment.Jan 13 2016, 9:09 PM

LGTM beside that one nitpick

debuggers/gdb/debugsession.cpp
776

Rename the getter accordingly.

itatriev updated this revision to Diff 1956.Jan 14 2016, 11:05 AM
itatriev marked an inline comment as done.
This revision was automatically updated to reflect the committed changes.