[gnome-builder/wip/chergert/bug1: 50/101] gdb: use async ops during startup



commit e3e6bb6164fc1b83fef26332389720001292f041
Author: Christian Hergert <chergert redhat com>
Date:   Sat Aug 26 23:20:55 2017 -0700

    gdb: use async ops during startup
    
    We don't need to block on these, we can just pipeline them.

 plugins/gdb/gbp-gdb-debugger.c |   17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/plugins/gdb/gbp-gdb-debugger.c b/plugins/gdb/gbp-gdb-debugger.c
index d018db1..25ad609 100644
--- a/plugins/gdb/gbp-gdb-debugger.c
+++ b/plugins/gdb/gbp-gdb-debugger.c
@@ -2439,7 +2439,6 @@ gbp_gdb_debugger_connect (GbpGdbDebugger *self,
                           GIOStream      *io_stream,
                           GCancellable   *cancellable)
 {
-  struct gdbwire_mi_output *output;
   g_autoptr(GError) error = NULL;
   GInputStream *stream;
 
@@ -2466,20 +2465,8 @@ gbp_gdb_debugger_connect (GbpGdbDebugger *self,
                              gbp_gdb_debugger_read_cb,
                              g_object_ref (self));
 
-  /* Setup Async Execution in GDB */
-
-  output = gbp_gdb_debugger_exec (self,
-                                  NULL,
-                                  "-gdb-set mi-async on",
-                                  cancellable,
-                                  &error);
-
-  if (output == NULL || gbp_gdb_debugger_unwrap (output, &error))
-    g_warning ("%s", error->message);
-  else
-    gbp_gdb_debugger_reload_breakpoints (self);
-
-  g_clear_pointer (&output, gdbwire_mi_output_free);
+  gbp_gdb_debugger_exec_async (self, NULL, "-gdb-set mi-async on", NULL, NULL, NULL);
+  gbp_gdb_debugger_reload_breakpoints (self);
 }
 
 static gboolean


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