[nemiver/gtk2-branch] 644823 Cannot set BP in files with space in path



commit 43fb24963c48113857e6bf6335ad5f412599c728
Author: Dodji Seketeli <dodji seketeli org>
Date:   Sat Sep 3 19:23:21 2011 +0200

    644823 Cannot set BP in files with space in path
    
    	* src/dbgengine/nmv-gdb-engine.cc (GDBEngine::set_breakpoint):
    	Enclose the path argument to -break-insert into quotes.

 src/dbgengine/nmv-gdb-engine.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/dbgengine/nmv-gdb-engine.cc b/src/dbgengine/nmv-gdb-engine.cc
index 402dd5f..17e535f 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -4367,9 +4367,10 @@ GDBEngine::set_breakpoint (const UString &a_path,
       break_cmd += " -i " + UString::from_int (a_ignore_count);
 
     if (!a_path.empty ()) {
-        break_cmd += " " + a_path + ":";
+        break_cmd += " \"" + a_path + ":";
     }
     break_cmd += UString::from_int (a_line_num);
+    break_cmd += "\"";
     string cmd_name = count_point ? "set-countpoint" : "set-breakpoint";
     queue_command (Command (cmd_name,
 			    break_cmd, a_cookie));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]