Strip out /usr/bin/env from the interpreter cmd,

it's apparently confusing gdb.
master
Marco Pesenti Gritti 17 years ago
parent 4193189238
commit 0aa31147db

@ -55,6 +55,10 @@ def _get_interpreter(exec_file):
if line.startswith('#!'):
cmds = line[2:].strip().split(' ')
cmds.append(abs_path)
if '/usr/bin/env' in cmds:
cmds.remove('/usr/bin/env')
return cmds
return exec_file

Loading…
Cancel
Save