From c55c505b9a7c96ebd610bad95003a6706400f081 Mon Sep 17 00:00:00 2001 From: ValekoZ Date: Fri, 27 Sep 2024 11:20:03 +0200 Subject: [PATCH] Update gef.py Co-authored-by: Grazfather --- gef.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gef.py b/gef.py index 8c9767912..7c951867d 100644 --- a/gef.py +++ b/gef.py @@ -8936,8 +8936,7 @@ def do_invoke(self, _: List[str], **kwargs: Any) -> None: names_filter = [f"name = '{x}'" for x in names if x in entry.path] addrs_filter = [f"addr = {self.format_addr_filter(arg, addr)}" for arg, addr in addrs.items() if entry.page_start <= addr < entry.page_end] - filters = names_filter + addrs_filter - filter_content = f"[{' & '.join(filters)}]" + filter_content = f"[{' & '.join([*names filter, *addrs_filter])}]" if len(names) + len(addrs) == 0: self.print_entry(entry)