MCPcopy Create free account
hub / github.com/lief-project/LIEF / print_main_command

Function print_main_command

api/python/examples/macho_reader.py:318–330  ·  view source on GitHub ↗
(binary)

Source from the content-addressed store, hash-verified

316
317@exceptions_handler(Exception)
318def print_main_command(binary):
319
320 format_str = "{:<13} {:<30}"
321 format_hex = "{:<13} 0x{:<28x}"
322 format_dec = "{:<13} {:<30d}"
323
324 print("== Main Command ==")
325 cmd = binary.main_command
326
327 print(format_hex.format("Entry point:", cmd.entrypoint))
328 print(format_hex.format("Stack size:", cmd.stack_size))
329
330 print("")
331
332
333@exceptions_handler(Exception)

Callers 1

mainFunction · 0.85

Calls 2

printFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected