[gnome-shell] [ShellGlobal] Add shell_global_breakpoint



commit c4e0e4197d0c8b771cec0ea8a749f2b845d6c208
Author: Colin Walters <walters verbum org>
Date:   Tue Feb 23 18:49:02 2010 -0500

    [ShellGlobal] Add shell_global_breakpoint
    
    This is useful for debugging with gdb.

 src/shell-global.c |   13 +++++++++++++
 src/shell-global.h |    2 ++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index e3e1777..2cee51e 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -784,6 +784,19 @@ shell_global_reexec_self (ShellGlobal *global)
 }
 
 /**
+ * shell_global_breakpoint:
+ * @global: A #ShellGlobal
+ *
+ * Using G_BREAKPOINT(), interrupt the current process.  This is useful
+ * in conjunction with a debugger such as gdb.
+ */
+void
+shell_global_breakpoint (ShellGlobal *global)
+{
+  G_BREAKPOINT ();
+}
+
+/**
  * shell_global_gc:
  * @global: A #ShellGlobal
  *
diff --git a/src/shell-global.h b/src/shell-global.h
index 702c184..a3cd89c 100644
--- a/src/shell-global.h
+++ b/src/shell-global.h
@@ -70,6 +70,8 @@ gboolean shell_global_display_is_grabbed (ShellGlobal *global);
 
 void shell_global_reexec_self (ShellGlobal *global);
 
+void shell_global_breakpoint (ShellGlobal *global);
+
 void shell_global_gc (ShellGlobal *global);
 
 void shell_global_format_time_relative_pretty (ShellGlobal *global, guint delta, char **text, guint *update_time);



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