From 6774d6ffac4a677162c7a2392e407b31fcbcbbd8 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 10 May 2009 10:44:53 -0400 Subject: [PATCH] When getting the source, we need to escape the '%20' space character so the source displays properly * Source/GDBpConnection.m: (createStackFrame) --- CHANGES | 1 + Source/GDBpConnection.m | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 5d47729..8e81857 100644 --- 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 diff --git a/Source/GDBpConnection.m b/Source/GDBpConnection.m index 0957310..f4c4af3 100644 --- a/Source/GDBpConnection.m +++ b/Source/GDBpConnection.m @@ -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 -- 2.43.5