(binary)
| 241 | |
| 242 | @exceptions_handler(Exception) |
| 243 | def print_export(binary): |
| 244 | print("== Exports ==") |
| 245 | exports = binary.get_export() |
| 246 | entries = exports.entries |
| 247 | f_value = "{:<20} 0x{:<10x} 0x{:<10x} 0x{:<6x} 0x{:<6x} 0x{:<10x}" |
| 248 | print(f_value.format(exports.name, exports.export_flags, exports.timestamp, exports.major_version, exports.minor_version, exports.ordinal_base)) |
| 249 | entries = sorted(entries, key=lambda e : e.ordinal) |
| 250 | for entry in entries: |
| 251 | extern = "[EXTERN]" if entry.is_extern else "" |
| 252 | print(" {:<20} {:d} 0x{:<10x} {:<13}".format(entry.name[:20], entry.ordinal, entry.address, extern)) |
| 253 | print("") |
| 254 | |
| 255 | |
| 256 | @exceptions_handler(Exception) |
no test coverage detected