[PATCH] 644823 Cannot set BP in files with space in path
- From: Dodji Seketeli <dodji seketeli org>
- To: Nemiver Development <nemiver-list gnome org>
- Subject: [PATCH] 644823 Cannot set BP in files with space in path
- Date: Sat, 03 Sep 2011 20:27:25 +0200
Hello,
In this bug Nemiver was failing to set a breakpoint in a file which had
spaces in its path. This was because gdb-engine was not properly
enclosing the path argument of the -break-insert MI command into quotes.
Fixed thus by the patch below, applied to master, gtk2-branch and
el6-branch.
* 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 821af63..be56da1 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));
--
Dodji
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]