From 57d3062f6c0a0700198b45250c53c97b0d3d6f79 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 10 May 2009 10:32:26 -0400 Subject: [PATCH] Breakpoints with a space in the filename would not be set. * Source/GDBpConnection.m: (addBreakpoint:): Quote the breakpoint path before sending the GDBp command --- CHANGES | 1 + Source/GDBpConnection.m | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 300ff90..5d47729 100644 --- 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 diff --git a/Source/GDBpConnection.m b/Source/GDBpConnection.m index 3ef84a5..0957310 100644 --- a/Source/GDBpConnection.m +++ b/Source/GDBpConnection.m @@ -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]]; -- 2.43.5