MCPcopy Create free account
hub / github.com/HexHive/NASS / do_invoke

Method do_invoke

tools/gef.py:8452–8474  ·  view source on GitHub ↗
(self, argv: List[str])

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

gef_printFunction · 0.85
get_info_filesFunction · 0.85
format_addressFunction · 0.85
colorifyMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected