From 46f44f475d11d37c216bf5c9d82319b952cab9bb Mon Sep 17 00:00:00 2001 From: ValekoZ Date: Sun, 2 Jun 2024 22:48:25 +0200 Subject: [PATCH] Make order of arch list output persistant --- gef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gef.py b/gef.py index 184cd1d58..7a0072d55 100644 --- a/gef.py +++ b/gef.py @@ -4822,7 +4822,7 @@ class ArchListCommand(GenericCommand): def do_invoke(self, args: List[str]) -> None: gef_print(Color.greenify("Available architectures:")) - for arch in set(__registered_architectures__.values()): + for arch in sorted(set(__registered_architectures__.values()), key=lambda x: x.arch): if arch != GenericArchitecture: gef_print(' ' + Color.yellowify(arch())) for alias in filter(lambda x: isinstance(x, str), arch.aliases):