This is an archive of the discontinued LLVM Phabricator instance.

[LLDB] Handle possible resume thread error
ClosedPublic

Authored by Emmmer on Aug 16 2022, 1:05 AM.

Details

Summary

In this switch case we didn't handle possible errors in ResumeThread(), it's hard to get helpful information when it goes wrong.

Diff Detail

Event Timeline

Emmmer created this revision.Aug 16 2022, 1:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2022, 1:05 AM
Emmmer requested review of this revision.Aug 16 2022, 1:05 AM
DavidSpickett accepted this revision.Aug 16 2022, 1:33 AM

LGTM

lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
943

Nit: remove the {} to fit with the lldb style of not using them for single statement if body.

This revision is now accepted and ready to land.Aug 16 2022, 1:33 AM
Emmmer updated this revision to Diff 452921.Aug 16 2022, 1:57 AM
Emmmer marked an inline comment as done.
This revision was automatically updated to reflect the committed changes.