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

Function print_thread_command

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

Source from the content-addressed store, hash-verified

332
333@exceptions_handler(Exception)
334def print_thread_command(binary):
335
336 format_str = "{:<13} {:<30}"
337 format_hex = "{:<13} 0x{:<28x}"
338 format_dec = "{:<13} {:<30d}"
339
340 print("== Thread Command ==")
341 cmd = binary.thread_command
342
343 print(format_hex.format("Flavor:", cmd.flavor))
344 print(format_hex.format("Count:", cmd.count))
345 print(format_hex.format("PC:", cmd.pc))
346
347 print("")
348
349@exceptions_handler(Exception)
350def print_rpath_command(binary):

Callers 1

mainFunction · 0.85

Calls 2

printFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected