Skip to content

Commit cb01341

Browse files
committed
reset_architecture: Force arch to lower case
1 parent ba70548 commit cb01341

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gef.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3844,7 +3844,7 @@ def reset_architecture(arch: Optional[str] = None) -> None:
38443844
# check if the architecture is forced by parameter
38453845
if arch:
38463846
try:
3847-
gef.arch = arches[arch]()
3847+
gef.arch = arches[arch.lower()]()
38483848
gef.arch_reason = "The architecture has been set manually"
38493849
except KeyError:
38503850
raise OSError(f"Specified arch {arch.upper()} is not supported")
@@ -4862,7 +4862,7 @@ class ArchSetCommand(GenericCommand):
48624862
_example_ = f"{_cmdline_} X86"
48634863

48644864
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)
48664866

48674867
def complete(self, text: str, word: str) -> List[str]:
48684868
return sorted(x for x in __registered_architectures__.keys() if

0 commit comments

Comments
 (0)