Skip to content
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

Fix Remote AsyncBreak #1399

Merged
merged 5 commits into from
May 9, 2023
Merged

Fix Remote AsyncBreak #1399

merged 5 commits into from
May 9, 2023

Conversation

WardenGnaw
Copy link
Member

@WardenGnaw WardenGnaw commented May 5, 2023

5f6213c accidently broke async-break for gdb remote scenarios as we send "-exec-interrupt" for async-break instead of sending a 'kill SIGTRAP'.

This PR modifies the IsAsyncBreakSignal to return a newly created enum AsyncBreakSignal, and renames it to GetAsyncBreakSignal. GetAsyncBreakSignal will now return if it saw a SIGINT, SIGTRAP, or None if its an unknown signal related to async break or no signal was retrieved at all.

This will be used along with a new flag called IsUsingExecInterrupt, which will be set before -exec-interrupt is sent to the debugger.

IsUsingExecInterrupt will be reset when the engine resolves the async-break from the user (see DebuggedProcess.cs changes) or when we are resolving an internal async break (See Debugger.cs DoInternalBreakActions).

Resolves: #1382

WardenGnaw added 2 commits May 4, 2023 11:30
5f6213c
accidently broke async-break for gdb remote scenarios as we send
"-exec-interrupt" for async-break instead of sending a 'kill SIGTRAP'.

This PR detects that if we are in the remote scenario, we should also
handle SIGINT as an async break.
@WardenGnaw WardenGnaw self-assigned this May 5, 2023
Copy link
Member

@gregg-miskelly gregg-miskelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

@WardenGnaw WardenGnaw merged commit f530168 into main May 9, 2023
@WardenGnaw WardenGnaw deleted the dev/waan/fixRemoteAsyncBreak branch May 9, 2023 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vscode debugger pauses on SIGINT after adding breakpoint (remote gdb)
4 participants