(binary)
| 316 | |
| 317 | @exceptions_handler(Exception) |
| 318 | def 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) |