[gnome-builder/wip/chergert/bug1: 25/29] gdb: cleanup logging of send commands
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/bug1: 25/29] gdb: cleanup logging of send commands
- Date: Mon, 28 Aug 2017 02:01:30 +0000 (UTC)
commit caf763ff6c9a55939bb8ceff2344d14f86874271
Author: Christian Hergert <chergert redhat com>
Date: Sat Aug 26 23:21:44 2017 -0700
gdb: cleanup logging of send commands
plugins/gdb/gbp-gdb-debugger.c | 19 ++++---------------
1 files changed, 4 insertions(+), 15 deletions(-)
---
diff --git a/plugins/gdb/gbp-gdb-debugger.c b/plugins/gdb/gbp-gdb-debugger.c
index bffd68e..08838fc 100644
--- a/plugins/gdb/gbp-gdb-debugger.c
+++ b/plugins/gdb/gbp-gdb-debugger.c
@@ -2628,21 +2628,6 @@ gbp_gdb_debugger_exec_async (GbpGdbDebugger *self,
g_return_if_fail (!thread || IDE_IS_DEBUGGER_THREAD (thread));
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
-#if 0
- {
- guint i = 0;
-
- g_print ("Submitting command with depth of %d\n",
- g_queue_get_length (&self->cmdqueue));
-
- for (const GList *iter = self->cmdqueue.head; iter; iter = iter->next, i++)
- {
- GBytes *b = g_object_get_data (iter->data, "REQUEST_BYTES");
- g_print ("Queued[%u]: %s", i, (gchar *)g_bytes_get_data (b, NULL));
- }
- }
-#endif
-
/* Wrap at 10,000, but steal 9999 to use for thread switching */
id = ++self->cmdseq;
if (id == 9999)
@@ -2711,6 +2696,10 @@ gbp_gdb_debugger_exec_async (GbpGdbDebugger *self,
g_task_return_pointer (task, NULL, NULL);
}
+#if 0
+ g_print (">>> %s", str->str);
+#endif
+
bytes = g_string_free_to_bytes (str);
g_object_set_data_full (G_OBJECT (task), "REQUEST_BYTES",
g_bytes_ref (bytes), (GDestroyNotify)g_bytes_unref);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]