[Bug tools/23173] eu-addr2line does not flush its output, causing problems when used from a script
luke at diamand dot org
sourceware-bugzilla@sourceware.org
Sat May 12 21:18:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23173
Luke Diamand <luke at diamand dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Luke Diamand <luke at diamand dot org> ---
That works like a charm with my Python test code:
#!/usr/bin/python3
import subprocess
import os
addr = b'0xa6308\n'
elf = 'myfile.elf'
a2l='eu-addr2line'
p = subprocess.Popen([a2l, '-f', '--demangle', '-e', elf],
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
p.stdin.write(addr)
p.stdin.flush()
print(p.stdout.readline())
print(p.stdout.readline())
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Elfutils-devel
mailing list