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