[gnome-builder/wip/chergert/bug1] gdb: fix breakpoint creation by source file



commit 7a5880ea3656a128eafd80b0bdecce4f6788f6c4
Author: Christian Hergert <chergert redhat com>
Date:   Wed Aug 30 21:19:03 2017 -0700

    gdb: fix breakpoint creation by source file

 plugins/gdb/gbp-gdb-debugger.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/gdb/gbp-gdb-debugger.c b/plugins/gdb/gbp-gdb-debugger.c
index 60ec085..3b99488 100644
--- a/plugins/gdb/gbp-gdb-debugger.c
+++ b/plugins/gdb/gbp-gdb-debugger.c
@@ -1110,7 +1110,7 @@ gbp_gdb_debugger_insert_breakpoint_async (IdeDebugger           *debugger,
     g_string_append_printf (command, " --function %s", func);
 
   if (NULL != (file = ide_debugger_breakpoint_get_file (breakpoint)))
-    g_string_append_printf (command, " --file %s", file);
+    g_string_append_printf (command, " --source %s", file);
 
   if (0 != (line = ide_debugger_breakpoint_get_line (breakpoint)))
     g_string_append_printf (command, " --line %u", line);


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