[geany/geany-plugins] 017b6b: debugger: Fix crash with GDB 7.7
Colomban Wendling
git-noreply at xxxxx
Thu Feb 19 10:10:04 UTC 2015
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Wed, 22 Oct 2014 14:40:02 UTC
Commit: 017b6bb91cef1f344cbe8f94828e19468cb2e074
https://github.com/geany/geany-plugins/commit/017b6bb91cef1f344cbe8f94828e19468cb2e074
Log Message:
-----------
debugger: Fix crash with GDB 7.7
GDB 7.7 doesn't understand `&` as an argument to `-exec-run`.
Moreover, the code handling errors from GDB has an issue with this
error and leads to a crash.
Closes https://sourceforge.net/p/geany-plugins/bugs/112/
Modified Paths:
--------------
debugger/src/dbm_gdb.c
Modified: debugger/src/dbm_gdb.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -369,7 +369,7 @@ static gboolean on_read_async_output(GIOChannel * src, GIOCondition cond, gpoint
update_files();
/* -exec-run */
- exec_async_command("-exec-run &");
+ exec_async_command("-exec-run");
}
}
else
@@ -895,7 +895,7 @@ static gboolean run(const gchar* file, const gchar* commandline, GList* env, GLi
static void restart(void)
{
dbg_cbs->clear_messages();
- exec_async_command("-exec-run &");
+ exec_async_command("-exec-run");
}
/*
--------------
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