[geany/geany-plugins] c6e21b: scope - ask user for terminate on build actions
Dimitar Zhekov
git-noreply at geany.org
Thu Jan 3 18:33:21 UTC 2013
Branch: refs/heads/master
Author: Dimitar Zhekov <dimitar.zhekov at gmail.com>
Committer: Dimitar Zhekov <dimitar.zhekov at gmail.com>
Date: Thu, 03 Jan 2013 18:33:21 UTC
Commit: c6e21b1adc431b39b08e3a0ff40426b391f4d219
https://github.com/geany/geany-plugins/commit/c6e21b1adc431b39b08e3a0ff40426b391f4d219
Log Message:
-----------
scope - ask user for terminate on build actions
Modified Paths:
--------------
scope/ChangeLog
scope/TODO
scope/src/debug.c
scope/src/scope.c
Modified: scope/ChangeLog
10 files changed, 10 insertions(+), 0 deletions(-)
===================================================================
@@ -1,3 +1,13 @@
+2013-01-03 Dimitar Zhekov <dimitar.zhekov at gmail.com>
+
+ * src/debug.c, src/scope.c
+ Ask user whether to terminate debugging on build actions.
+
+ * src/debug.c:
+ Ignore "Auto run/exit" on Terminate if neither an executable nor a
+ load script is specified.
+
+
2013-01-02 Dimitar Zhekov <dimitar.zhekov at gmail.com>
* docs/codes.html, src/inspect.c, src/inspect.h, src/local.c,
Modified: scope/TODO
8 files changed, 1 insertions(+), 7 deletions(-)
===================================================================
@@ -1,17 +1,11 @@
various tests, source code checks etc.
-ask user for terminate debugging on build actions
-
-sync gdb thread/frame with the selected ones?
-
-forbid deselect for threads and stack?
-
add clear icon to entries? not very useful
test inspect new_numchild and in_scope changes
(but with C, these do not seem to change)
-don't remove [index] along if member names?
+don't remove [index] along with member names?
Format (natural, decimal...) for Watches?
Modified: scope/src/debug.c
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -651,14 +651,14 @@ void on_debug_step_out(G_GNUC_UNUSED const MenuItem *menu_item)
debug_send_thread("-exec-finish");
}
-void on_debug_terminate(G_GNUC_UNUSED const MenuItem *menu_item)
+void on_debug_terminate(const MenuItem *menu_item)
{
switch (debug_state())
{
case DS_DEBUG :
case DS_READY :
{
- if (!program_auto_run_exit)
+ if (menu_item && !debug_auto_exit)
{
debug_send_command(N, "kill");
break;
Modified: scope/src/scope.c
10 files changed, 10 insertions(+), 0 deletions(-)
===================================================================
@@ -389,6 +389,15 @@ static void on_geany_startup_complete(G_GNUC_UNUSED GObject *obj, G_GNUC_UNUSED
program_context_changed();
}
+static void on_build_start(G_GNUC_UNUSED GObject *obj, G_GNUC_UNUSED gpointer gdata)
+{
+ if (debug_state() != DS_INACTIVE && dialogs_show_question(_("Build action activated. "
+ "Terminate debugging?")))
+ {
+ on_debug_terminate(NULL);
+ }
+}
+
typedef struct _ScopeCallback /* we don't want callbacks on builder init failure */
{
const char *name;
@@ -407,6 +416,7 @@ static void on_geany_startup_complete(G_GNUC_UNUSED GObject *obj, G_GNUC_UNUSED
{ "project-open", G_CALLBACK(on_project_open) },
{ "project-close", G_CALLBACK(on_project_close) },
{ "geany-startup-complete", G_CALLBACK(on_geany_startup_complete) },
+ { "build-start", G_CALLBACK(on_build_start) },
{ NULL, NULL }
};
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list