[gnome-builder/wip/albfan/debug-untranslate-paths] gdb: ignore flatpak build messages
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/albfan/debug-untranslate-paths] gdb: ignore flatpak build messages
- Date: Fri, 10 Aug 2018 11:13:30 +0000 (UTC)
commit 9982e06e10cc5c833e7ab844cb34b1be8ad0793e
Author: Alberto Fanjul <albertofanjul gmail com>
Date: Fri Aug 10 13:11:15 2018 +0200
gdb: ignore flatpak build messages
src/plugins/gdb/gbp-gdb-debugger.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/gdb/gbp-gdb-debugger.c b/src/plugins/gdb/gbp-gdb-debugger.c
index ad75b575e..81e6063da 100644
--- a/src/plugins/gdb/gbp-gdb-debugger.c
+++ b/src/plugins/gdb/gbp-gdb-debugger.c
@@ -912,6 +912,7 @@ gbp_gdb_debugger_output_callback (void *context,
struct gdbwire_mi_output *output)
{
GbpGdbDebugger *self = context;
+ gboolean flatpak_output;
g_assert (GBP_IS_GDB_DEBUGGER (self));
g_assert (output != NULL);
@@ -921,8 +922,10 @@ gbp_gdb_debugger_output_callback (void *context,
{
case GDBWIRE_MI_OUTPUT_PARSE_ERROR:
ide_object_warning (self, "Failed to parse gdb communication: %s", output->line);
+ flatpak_output = strstr(output->line, "(flatpak build") != 0;
gdbwire_mi_output_free (output);
- gbp_gdb_debugger_panic (self);
+ if (flatpak_output == FALSE)
+ gbp_gdb_debugger_panic (self);
break;
case GDBWIRE_MI_OUTPUT_OOB:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]