Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: GitHub noreply@github.com Date: Sun, 31 Mar 2019 14:40:38 UTC Commit: be61b507e6d9a90e8ef084279b4c27cafa691a67 https://github.com/geany/geany-plugins/commit/be61b507e6d9a90e8ef084279b4c27...
Log Message: ----------- Merge pull request #831 from LarsGit223/scope-no-exec-set
scope: show error message if no executable is set
Modified Paths: -------------- scope/src/debug.c
Modified: scope/src/debug.c 10 lines changed, 7 insertions(+), 3 deletions(-) =================================================================== @@ -487,9 +487,13 @@ void on_debug_run_continue(G_GNUC_UNUSED const MenuItem *menu_item) { if (gdb_state == INACTIVE) { - if (check_load_path(program_executable, TRUE, R_OK | X_OK) && - check_load_path(program_working_dir, FALSE, X_OK) && - check_load_path(program_load_script, TRUE, R_OK)) + if (program_executable == NULL || strlen(program_executable) == 0) + { + show_error(_("No executable set. Please set an executable under "Debug/Setup Program".")); + } + else if (check_load_path(program_executable, TRUE, R_OK | X_OK) && + check_load_path(program_working_dir, FALSE, X_OK) && + check_load_path(program_load_script, TRUE, R_OK)) { load_program(); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org