[gnome-builder/wip/chergert/bug1: 15/18] debugger: allow backends to start themselves
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/bug1: 15/18] debugger: allow backends to start themselves
- Date: Sun, 27 Aug 2017 20:31:40 +0000 (UTC)
commit c71f7427b25a2c97d2e6752e0156da3da46badd1
Author: Christian Hergert <chergert redhat com>
Date: Sat Aug 26 23:22:21 2017 -0700
debugger: allow backends to start themselves
This may have complex state based on the spawn of the program, so we just
let the debugger start itself after the spawn signal has occurred.
libide/debugger/ide-debug-manager.c | 4 ----
plugins/gdb/gbp-gdb-debugger.c | 4 ++++
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libide/debugger/ide-debug-manager.c b/libide/debugger/ide-debug-manager.c
index 39965de..0c7eae9 100644
--- a/libide/debugger/ide-debug-manager.c
+++ b/libide/debugger/ide-debug-manager.c
@@ -435,10 +435,6 @@ ide_debug_manager_start (IdeDebugManager *self,
/* TODO: Synchronize breakpoints */
- ide_debugger_move_async (self->debugger,
- IDE_DEBUGGER_MOVEMENT_START,
- NULL, NULL, NULL);
-
ret = TRUE;
failure:
diff --git a/plugins/gdb/gbp-gdb-debugger.c b/plugins/gdb/gbp-gdb-debugger.c
index 08838fc..ab43a57 100644
--- a/plugins/gdb/gbp-gdb-debugger.c
+++ b/plugins/gdb/gbp-gdb-debugger.c
@@ -2249,6 +2249,10 @@ gbp_gdb_debugger_on_runner_spawned (GbpGdbDebugger *self,
tty_command = g_strdup_printf ("-gdb-set inferior-tty /proc/self/fd/%d", self->mapped_fd);
gbp_gdb_debugger_exec_async (self, NULL, tty_command, NULL, NULL, NULL);
+ ide_debugger_move_async (IDE_DEBUGGER (self),
+ IDE_DEBUGGER_MOVEMENT_START,
+ NULL, NULL, NULL);
+
IDE_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]