diff options
Diffstat (limited to 'meta/lib/oe/qa.py')
-rw-r--r-- | meta/lib/oe/qa.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oe/qa.py b/meta/lib/oe/qa.py index efab7e8564..89acd3ead0 100644 --- a/meta/lib/oe/qa.py +++ b/meta/lib/oe/qa.py | |||
@@ -48,6 +48,9 @@ class ELFFile: | |||
48 | return self | 48 | return self |
49 | 49 | ||
50 | def __exit__(self, exc_type, exc_value, traceback): | 50 | def __exit__(self, exc_type, exc_value, traceback): |
51 | self.close() | ||
52 | |||
53 | def close(self): | ||
51 | if self.data: | 54 | if self.data: |
52 | self.data.close() | 55 | self.data.close() |
53 | 56 | ||
@@ -128,6 +131,9 @@ class ELFFile: | |||
128 | """ | 131 | """ |
129 | return self.getShort(ELFFile.E_MACHINE) | 132 | return self.getShort(ELFFile.E_MACHINE) |
130 | 133 | ||
134 | def set_objdump(self, cmd, output): | ||
135 | self.objdump_output[cmd] = output | ||
136 | |||
131 | def run_objdump(self, cmd, d): | 137 | def run_objdump(self, cmd, d): |
132 | import bb.process | 138 | import bb.process |
133 | import sys | 139 | import sys |