From 332bcf2cb67195ddf13929828b7b06862e6d7311 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 24 Aug 2007 22:36:12 -0700 Subject: [PATCH] Improving the way we handle updating the stack and registers. Instead of updating them after we send step/run commands, only update the stacks and registers if the status (in updateStatus:) is on "break" * Source/DebuggerConnection.m --- Source/DebuggerConnection.m | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Source/DebuggerConnection.m b/Source/DebuggerConnection.m index d84b7cf..7b1aef7 100644 --- a/Source/DebuggerConnection.m +++ b/Source/DebuggerConnection.m @@ -170,7 +170,13 @@ */ - (void)updateStatus: (NSXMLDocument *)doc { - [_windowController setStatus: [[[[doc rootElement] attributeForName: @"status"] stringValue] capitalizedString]]; + NSString *status = [[[doc rootElement] attributeForName: @"status"] stringValue]; + [_windowController setStatus: [status capitalizedString]]; + + if ([status isEqualToString: @"break"]) + { + [self updateStackTraceAndRegisters]; + } } /** @@ -200,7 +206,6 @@ [_socket send: [self createCommand: @"step_into"]]; [_socket receive: nil]; [self refreshStatus]; - [self updateStackTraceAndRegisters]; } /** @@ -211,7 +216,6 @@ [_socket send: [self createCommand: @"step_out"]]; [_socket receive: nil]; [self refreshStatus]; - [self updateStackTraceAndRegisters]; } /** @@ -222,7 +226,6 @@ [_socket send: [self createCommand: @"step_over"]]; [_socket receive: nil]; [self refreshStatus]; - [self updateStackTraceAndRegisters]; } /** -- 2.43.5