From 5aaff84448b43171082339e17f15fc566d39a65a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 4 Aug 2007 01:30:11 -0700 Subject: [PATCH] Revert "Instead of directly calling stack_get, get the depth first and then call the maximum depth" This reverts commit 9371ab6efb4d371e9db5f9e72b8f2cdf38a3a8de. --- Source/DebuggerConnection.m | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Source/DebuggerConnection.m b/Source/DebuggerConnection.m index d139b32..12a8903 100644 --- a/Source/DebuggerConnection.m +++ b/Source/DebuggerConnection.m @@ -192,19 +192,7 @@ */ - (void)updateStackTraceAndRegisters { - [_socket send: [self _createCommand: @"stack_depth"]]; - [_socket receive: @selector(_stackDepthReceived:)]; -} - -/** - * Packet delivery method for when we have the stack depth. This just goes back and asks the - * debug server for the stack at that depth - */ -- (void)_stackDepthReceived: (NSString *)packet -{ - NSXMLDocument *doc = [[NSXMLDocument alloc] initWithXMLString: packet options: NSXMLDocumentTidyXML error: nil]; - int depth = [[[[doc rootElement] attributeForName: @"depth"] stringValue] intValue]; - [_socket send: [self _createCommand: [NSString stringWithFormat: @"stack_get -d %d", (depth - 1)]]]; + [_socket send: [self _createCommand: @"stack_get"]]; [_socket receive: @selector(_stackReceived:)]; } -- 2.22.5