Improve stack tracing

This commit is contained in:
Justin C. Miller
2018-05-11 01:25:40 -07:00
parent 0a231f2e0e
commit 045bede481
3 changed files with 45 additions and 15 deletions

View File

@@ -29,7 +29,7 @@ def build(bld):
return node.path_from(node.ctx.launch_node())
def run(self):
from subprocess import check_output
args = self.env.objdump + ["-D", self.inputs[0].abspath()]
args = self.env.objdump + ["--source", "-D", self.inputs[0].abspath()]
with file(self.outputs[0].abspath(), 'w') as output:
output.write(check_output(args))