Skip to content

Commit 699df5e

Browse files
committed
Change arch name case as needed
1 parent ff4f800 commit 699df5e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

qiling/debugger/gdb/gdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def handle_q(subcmd):
493493
elif subcmd.startswith('Xfer:features:read'):
494494
xfercmd_file = subcmd.split(':')[3]
495495
xfercmd_abspath = os.path.dirname(os.path.abspath(__file__))
496-
xml_folder = arch_convert_str(self.ql.archtype)
496+
xml_folder = arch_convert_str(self.ql.archtype).lower()
497497
xfercmd_file = os.path.join(xfercmd_abspath,"xml",xml_folder, xfercmd_file)
498498

499499
if os.path.exists(xfercmd_file) and self.ql.ostype is not QL_OS.WINDOWS:

qiling/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,7 @@ def arch_setup(archtype, ql):
423423
if archtype == QL_ARCH.ARM_THUMB:
424424
archtype = QL_ARCH.ARM
425425

426-
archmanager = arch_convert_str(archtype).upper()
427-
archmanager = ("QlArch" + archmanager)
426+
archmanager = f'QlArch{arch_convert_str(archtype).upper()}'
428427

429428
if archtype in (QL_ARCH.X8664, QL_ARCH.A8086):
430429
arch_str = "x86"
@@ -466,7 +465,7 @@ def profile_setup(ql):
466465
_profile = ql.profile
467466
debugmsg = "Profile: %s" % _profile
468467

469-
os_profile = os.path.join(os.path.dirname(os.path.abspath(__file__)), "profiles", ostype_convert_str(ql.ostype) + ".ql")
468+
os_profile = os.path.join(os.path.dirname(os.path.abspath(__file__)), "profiles", ostype_convert_str(ql.ostype).lower() + ".ql")
470469

471470
if ql.profile:
472471
profiles = [os_profile, ql.profile]

0 commit comments

Comments
 (0)