[gnome-builder/wip/chergert/debugger: 132/134] gdb: translate various	debugger stop reasons
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-builder/wip/chergert/debugger: 132/134] gdb: translate various	debugger stop reasons
- Date: Fri, 31 Mar 2017 18:05:03 +0000 (UTC)
commit 2b2b0d6744c3327b48aaa8c3d9830ca3a404d178
Author: Christian Hergert <chergert redhat com>
Date:   Sun Mar 26 21:35:18 2017 -0700
    gdb: translate various debugger stop reasons
 plugins/gdb/gbp-gdb-debugger.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/gdb/gbp-gdb-debugger.c b/plugins/gdb/gbp-gdb-debugger.c
index 4ff3b01..a9cb01c 100644
--- a/plugins/gdb/gbp-gdb-debugger.c
+++ b/plugins/gdb/gbp-gdb-debugger.c
@@ -327,6 +327,8 @@ gbp_gdb_debugger_on_client_stopped (GbpGdbDebugger  *self,
                                     Mi2EventMessage *message,
                                     Mi2Client       *client)
 {
+  IdeDebuggerStopReason translated;
+
   IDE_ENTRY;
 
   g_assert (GBP_IS_GDB_DEBUGGER (self));
@@ -339,19 +341,26 @@ gbp_gdb_debugger_on_client_stopped (GbpGdbDebugger  *self,
       self->can_continue = TRUE;
       self->can_step_in = TRUE;
       self->can_step_over = TRUE;
+      translated = IDE_DEBUGGER_STOP_BREAKPOINT;
       break;
 
     case MI2_STOP_EXITED_NORMALLY:
+      translated = IDE_DEBUGGER_STOP_EXITED_NORMALLY;
+      break;
+
     case MI2_STOP_UNKNOWN:
     default:
       self->can_continue = FALSE;
       self->can_step_in = FALSE;
       self->can_step_over = FALSE;
+      translated = IDE_DEBUGGER_STOP_UNDEFINED;
       break;
     }
 
   gbp_gdb_debugger_notify_properties (self);
 
+  ide_debugger_emit_stopped (IDE_DEBUGGER (self), translated, NULL);
+
   IDE_EXIT;
 }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]