File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export class GDBTargetDebugTracker {
9191 private handleOnWillStartSession ( session : vscode . DebugSession ) : void {
9292 const gdbTargetSession = new GDBTargetDebugSession ( session ) ;
9393 this . sessions . set ( session . id , gdbTargetSession ) ;
94- this . bringConsoleToFront . apply ( this ) ;
94+ this . bringConsoleToFront ( ) ;
9595 this . _onWillStartSession . fire ( gdbTargetSession ) ;
9696 }
9797
@@ -153,14 +153,14 @@ export class GDBTargetDebugTracker {
153153 const stackTraceRequest = this . stackTraceRequests . get ( gdbTargetSession . session . id ) ;
154154 const threadId = stackTraceRequest ?. get ( response . request_seq ) ;
155155 stackTraceRequest ?. delete ( response . request_seq ) ;
156- if ( ! response . success ) {
156+ if ( ! response . success || threadId === undefined ) {
157157 return ;
158158 }
159159 const stackTrace = {
160160 session : gdbTargetSession ,
161161 threadId,
162- stackFrames : ( response as DebugProtocol . StackTraceResponse ) . body . stackFrames ,
163- totalFrames : ( response as DebugProtocol . StackTraceResponse ) . body . totalFrames
162+ stackFrames : response . body . stackFrames ,
163+ totalFrames : response . body . totalFrames
164164 } as SessionStackTrace ;
165165 this . _onStackTrace . fire ( stackTrace ) ;
166166 }
You can’t perform that action at this time.
0 commit comments