@@ -1180,41 +1180,25 @@ private async Task HandleBreakModeEvent(ResultEventArgs results, BreakRequest br
11801180 if ( String . IsNullOrWhiteSpace ( reason ) && ! this . EntrypointHit )
11811181 {
11821182 breakRequest = BreakRequest . None ; // don't let stopping interfere with launch processing
1183- bool shouldContinue = true ;
11841183
1185- if ( _launchOptions . StopAtConnect )
1186- {
1187- this . EntrypointHit = true ;
1188- await this . ClearEntrypointBreakpoint ( ) ;
1189-
1190- // Send a breakpoint event to force the client to stop (entry point may not stop depending on how the user started debugging)
1191- _callback . OnBreakpoint ( thread , new ReadOnlyCollection < object > ( new AD7BoundBreakpoint [ ] { } ) ) ;
1192- shouldContinue = false ;
1193- }
11941184 // MinGW sends a stopped event on attach. gdb<->gdbserver also sends a stopped event when first attached.
11951185 // If this is a gdb<->gdbserver connection, ignore this as the entryPoint
1196- else if ( IsLocalLaunchUsingServer ( ) )
1186+ if ( IsLocalLaunchUsingServer ( ) )
11971187 {
11981188 // If the stopped event occurs on gdbserver, ignore it unless it contains a filename.
11991189 TupleValue frame = results . Results . TryFind < TupleValue > ( "frame" ) ;
12001190 if ( frame . Contains ( "file" ) )
12011191 {
1202- this . EntrypointHit = true ;
1203- await this . ClearEntrypointBreakpoint ( ) ;
1204- _callback . OnEntryPoint ( thread ) ;
1205- shouldContinue = false ;
1192+ //this.EntrypointHit = true;
12061193 }
12071194 }
12081195 else
12091196 {
1210- this . EntrypointHit = true ;
1211- await this . ClearEntrypointBreakpoint ( ) ;
1197+ //this.EntrypointHit = true;
12121198 }
12131199
1214- if ( shouldContinue )
1215- {
1216- CmdContinueAsync ( ) ;
1217- }
1200+ CmdContinueAsync ( ) ;
1201+
12181202 FireDeviceAppLauncherResume ( ) ;
12191203 }
12201204 else if ( reason == "entry-point-hit" )
@@ -1462,14 +1446,6 @@ private async Task OnEntrypointHit()
14621446 await ConsoleCmdAsync ( "process handle --pass true --stop false --notify false SIGHUP" , allowWhileRunning : false , ignoreFailures : true ) ;
14631447 }
14641448
1465- await this . ClearEntrypointBreakpoint ( ) ;
1466- }
1467-
1468- /// <summary>
1469- /// Attempts to remove the breakpoint automatically set at the entrypoint of the application.
1470- /// </summary>
1471- private async Task ClearEntrypointBreakpoint ( )
1472- {
14731449 if ( this . _deleteEntryPointBreakpoint && ! String . IsNullOrWhiteSpace ( this . _entryPointBreakpoint ) )
14741450 {
14751451 // Try and delete the entrypoint breakpoint. We only try this once but in some cases this won't succeed
0 commit comments