File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3849,7 +3849,7 @@ def reset_architecture(arch: str | None = None) -> None:
3849
3849
# check if the architecture is forced by parameter
3850
3850
if arch :
3851
3851
try :
3852
- gef .arch = arches [arch ]()
3852
+ gef .arch = arches [arch . lower () ]()
3853
3853
gef .arch_reason = "The architecture has been set manually"
3854
3854
except KeyError :
3855
3855
raise OSError (f"Specified arch { arch .upper ()} is not supported" )
@@ -4859,8 +4859,8 @@ class ArchSetCommand(GenericCommand):
4859
4859
_syntax_ = f"{ _cmdline_ } <arch>"
4860
4860
_example_ = f"{ _cmdline_ } X86"
4861
4861
4862
- def do_invoke (self , args : list [str ]) -> None :
4863
- reset_architecture (args [0 ]. lower () if args else None )
4862
+ def do_invoke (self , args : List [str ]) -> None :
4863
+ reset_architecture (args [0 ] if args else None )
4864
4864
4865
4865
def complete (self , text : str , word : str ) -> list [str ]:
4866
4866
return sorted (x for x in __registered_architectures__ .keys () if
You can’t perform that action at this time.
0 commit comments