[gnome-builder] gdb: implement basic countpoint support
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] gdb: implement basic countpoint support
- Date: Tue, 3 Jul 2018 02:16:58 +0000 (UTC)
commit e729a72a9cb5b1baab1d5b44b1935396f4c043c7
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 2 19:16:32 2018 -0700
gdb: implement basic countpoint support
Not really an ideal implementation, but gets the job done so that we don't
actually stop on the breakpoint.
src/plugins/gdb/gbp-gdb-debugger.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/plugins/gdb/gbp-gdb-debugger.c b/src/plugins/gdb/gbp-gdb-debugger.c
index 677e6cf3a..3bbe44c4a 100644
--- a/src/plugins/gdb/gbp-gdb-debugger.c
+++ b/src/plugins/gdb/gbp-gdb-debugger.c
@@ -1224,6 +1224,12 @@ gbp_gdb_debugger_insert_breakpoint_async (IdeDebugger *debugger,
if (!ide_debugger_breakpoint_get_enabled (breakpoint))
g_string_append (command, " -d");
+ /*
+ * We don't have a strict "countpoint", so we just set a really high
+ * number for the ignore count in gdb.
+ */
+ if (ide_debugger_breakpoint_get_mode (breakpoint) == IDE_DEBUGGER_BREAK_COUNTPOINT)
+ g_string_append_printf (command, " -i %d", G_MAXINT);
file = ide_debugger_breakpoint_get_file (breakpoint);
func = ide_debugger_breakpoint_get_function (breakpoint);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]