-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Driver] SR-3175: Include the terminating signal number in the driver output #6787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Driver] SR-3175: Include the terminating signal number in the driver output #6787
Conversation
* Add the signal number of the terminated task to the output of the driver on platforms for which the signal number is available. The new key in the parseable driver output is "signal". * Add a test to verify that the signal number is emitted. * Add documentation for the new "signal" key emitted in the parseable driver output. https://bugs.swift.org/browse/SR-3175
Diags.diagnose(SourceLoc(), diag::error_command_signalled, | ||
SignalledCmd->getSource().getClassName(), Signal.getValue()); | ||
} | ||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: else
in line with }
please
public: | ||
SignalledMessage(const Job &Cmd, ProcessId Pid, StringRef Output, | ||
StringRef ErrorMsg) : TaskOutputMessage("signalled", Cmd, | ||
StringRef ErrorMsg, Optional<int> Signal) : TaskOutputMessage("signalled", Cmd, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: with the additional parameter, the alignment of the two lines that follow are totally out of whack.
@swift-ci please smoke test. |
Whoa, an NPE took down the build! // @shahmishal |
@swift-ci please smoke test OS X platform. |
Can you knock off the merge commit either by folding it into the previous one or by cherry-picking @hughbe's branch please? |
(cherry picked from commit ff17c26) swiftlang#6812
81bf314
to
09abbfe
Compare
@swift-ci please smoke test. |
1 similar comment
@swift-ci please smoke test. |
Is this PR ready to go? Merging will unblock the Windows (clang and MSVC) build |
⛵️ |
https://bugs.swift.org/browse/SR-3175
In this commit, example output of swiftc -Xfrontend -debug-crash-immediately is: