This repository was archived by the owner on Nov 11, 2024. It is now read-only.
Handle debugger stop event with SoftDebuggerSession.TargetEvent#60
Open
akihikodaki wants to merge 1 commit intomono:mainfrom
Open
Handle debugger stop event with SoftDebuggerSession.TargetEvent#60akihikodaki wants to merge 1 commit intomono:mainfrom
akihikodaki wants to merge 1 commit intomono:mainfrom
Conversation
Contributor
|
Just out of curiosity, which exact event(s) were we missing? |
Contributor
Author
|
|
Contributor
|
Hmm. It seems to me that we would want to let the user know if such an event occurred, similar to how we say _session.TargetSignaled += (sender, e) =>
{
// maybe log the signal name/id as well, if available through the API on `e`?
Log.Notice("Inferior process '{0}' ('{1}') signaled",
ActiveProcess.Id, StringizeTarget());
}; |
alexrp
reviewed
Oct 10, 2019
The debugger does not listen to some events fired by SoftDebuggerSession, and may miss a stop event, which resumes command line processing, and lead to hangup. SoftDebuggerSession.TargetEvent handles all events and eliminates possibility to introduce a hangup also in the future.
Contributor
Author
I think that would be nice. I suppose it requires another pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The debugger does not listen to some events fired by
SoftDebuggerSession, and may miss a stop event, which resumes command line processing, and lead to hangup.SoftDebuggerSession.TargetEventhandles all events and eliminates possibility to introduce a hangup also in the future.