(self, argv: List[str])
| 8450 | |
| 8451 | @only_if_gdb_running |
| 8452 | def do_invoke(self, argv: List[str]) -> None: |
| 8453 | color = gef.config["theme.table_heading"] |
| 8454 | headers = ["Start", "End", "Name", "File"] |
| 8455 | gef_print(Color.colorify("{:<{w}s}{:<{w}s}{:<21s} {:s}".format(*headers, w=gef.arch.ptrsize*2+3), color)) |
| 8456 | |
| 8457 | filter_by_file = argv[0] if argv and argv[0] else None |
| 8458 | filter_by_name = argv[1] if len(argv) > 1 and argv[1] else None |
| 8459 | |
| 8460 | for xfile in get_info_files(): |
| 8461 | if filter_by_file: |
| 8462 | if filter_by_file not in xfile.filename: |
| 8463 | continue |
| 8464 | if filter_by_name and filter_by_name not in xfile.name: |
| 8465 | continue |
| 8466 | |
| 8467 | l = [ |
| 8468 | format_address(xfile.zone_start), |
| 8469 | format_address(xfile.zone_end), |
| 8470 | f"{xfile.name:<21s}", |
| 8471 | xfile.filename, |
| 8472 | ] |
| 8473 | gef_print(" ".join(l)) |
| 8474 | return |
| 8475 | |
| 8476 | |
| 8477 | @register |
nothing calls this directly
no test coverage detected