Breakpoints with a space in the filename would not be set.
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 10 May 2009 14:32:26 +0000 (10:32 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 10 May 2009 14:32:26 +0000 (10:32 -0400)
* Source/GDBpConnection.m:
(addBreakpoint:): Quote the breakpoint path before sending the GDBp command

CHANGES
Source/GDBpConnection.m

diff --git a/CHANGES b/CHANGES
index 300ff900518f90a069f35e507c3f8d0d84b41547..5d477296e7b64adc68deb3e5a16ba6116197dd78 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,7 @@ MacGDBp                                                               CHANGE LOG
 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
 
 
 1.2.1
index 3ef84a5950908031f39b4385843288852d3f5904..095731071c636390e93b5e8340d74eccbc381fff 100644 (file)
@@ -245,11 +245,9 @@ NSString *kErrorOccurredNotif = @"GDBpConnection_ErrorOccured_Notification";
 - (void)addBreakpoint:(Breakpoint *)bp
 {
        if (!connected)
-       {
                return;
-       }
        
-       NSString *cmd = [self createCommand:[NSString stringWithFormat:@"breakpoint_set -t line -f %@ -n %i", [bp transformedPath], [bp line]]];
+       NSString *cmd = [self createCommand:[NSString stringWithFormat:@"breakpoint_set -t line -f '%@' -n %i", [bp transformedPath], [bp line]]];
        [socket send:cmd];
        NSXMLDocument *info = [self processData:[socket receive]];
        [bp setDebuggerId:[[[[info rootElement] attributeForName:@"id"] stringValue] intValue]];