[ShellGlobal] Add shell_global_breakpoint

This is useful for debugging with gdb.
This commit is contained in:
Colin Walters 2010-02-23 18:49:02 -05:00
parent 71f63962a8
commit c4e0e4197d
2 changed files with 15 additions and 0 deletions

View File

@ -783,6 +783,19 @@ shell_global_reexec_self (ShellGlobal *global)
g_ptr_array_free (arr, TRUE);
}
/**
* 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

View File

@ -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);