When getting the source, we need to escape the '%20' space character so the source...
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 10 May 2009 14:44:53 +0000 (10:44 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 10 May 2009 14:44:53 +0000 (10:44 -0400)
* Source/GDBpConnection.m:
(createStackFrame)

CHANGES
Source/GDBpConnection.m

diff --git a/CHANGES b/CHANGES
index 5d477296e7b64adc68deb3e5a16ba6116197dd78..8e81857b2d0457f416bc5425227e48e82d569dca 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -11,6 +11,7 @@ retained
 - Fix: #160  The code pane could be unpopulated after the debugging the same
 script a subsequent time
 - Fix: #163  Breakpoints with a space in the pathname would not be set
+- Fix: Code would not display if the pathname to the file contained a space
 
 
 1.2.1
index 095731071c636390e93b5e8340d74eccbc381fff..f4c4af32c7cd4a122b62740fdcec054c7d4339e1 100644 (file)
@@ -345,6 +345,7 @@ NSString *kErrorOccurredNotif = @"GDBpConnection_ErrorOccured_Notification";
        
        // get the source
        NSString *filename = [[xmlframe attributeForName:@"filename"] stringValue];
+       filename = [filename stringByReplacingOccurrencesOfString:@"%" withString:@"%%"]; // escape % in URL chars
        [socket send:[self createCommand:[NSString stringWithFormat:@"source -f %@", filename]]];
        NSString *source = [[[self processData:[socket receive]] rootElement] value]; // decode base64