Skip to content

Commit

Permalink
Make gdb script compatible with python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Oct 16, 2017
1 parent 8edf4eb commit c15ac91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ish-gdb.gdb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set print thread-events off
define hook-run
python
import subprocess
if subprocess.run('ninja').returncode != 0:
if subprocess.call('ninja') != 0:
raise gdb.CommandError('compilation failed')
end
end

0 comments on commit c15ac91

Please sign in to comment.