Skip to content

Commit

Permalink
fixed a bug parsing strace log
Browse files Browse the repository at this point in the history
  • Loading branch information
Youngsung Kim committed Jul 9, 2018
1 parent c2972f1 commit ff2bd74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kgen/compflag/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ def _geninclude(self, stracepath, includepath):
if pos_enoent < 0:
pos_last = line.rfind(STR_UF)
if pos_last < 0:
pos_last = line.rfind(')')
pos_last = line.rfind(']')
if pos_last >= 0:
try:
exec('exepath, cmdlist, env = %s'%line[pos_execve+len(STR_EX):pos_last])
exec('exepath, cmdlist, env = %s'%line[pos_execve+len(STR_EX):(pos_last+1)])
compid = cmdlist[0].split('/')[-1]
if exepath and cmdlist and compid==cmdlist[0].split('/')[-1]:
compiler = kgcompiler.CompilerFactory.createCompiler(compid)
Expand Down

0 comments on commit ff2bd74

Please sign in to comment.