forked from enlightenment/edi
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:
parent
19971b006a
commit
f274063917
|
@ -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 |
|
||||
|
|
Loading…
Reference in New Issue