debugpanel: automatically run gdb according to project type. libtool/generic.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D4852
This commit is contained in:
Al Poole 2017-05-10 06:35:33 +01:00 committed by Andy Williams
parent 19971b006a
commit f274063917
1 changed files with 6 additions and 2 deletions

View File

@ -365,7 +365,7 @@ void edi_debugpanel_start(void)
char cmd[1024];
char *args;
int len;
const char *fmt = "set args %s\n";
const char *mime, *fmt = "set args %s\n";
if (!_edi_project_config->launch.path)
{
@ -375,6 +375,10 @@ void edi_debugpanel_start(void)
if (_debug_exe) return;
mime = efreet_mime_type_get(_edi_project_config->launch.path);
if (!strcmp(mime, "application/x-shellscript"))
snprintf(cmd, sizeof(cmd), "libtool --mode execute gdb %s", _edi_project_config->launch.path);
else
snprintf(cmd, sizeof(cmd), "gdb %s", _edi_project_config->launch.path);
_debug_exe = ecore_exe_pipe_run(cmd, ECORE_EXE_PIPE_WRITE |