Skip to content

Commit 134909f

Browse files
committed
remove redundant operation
1 parent 2c002d0 commit 134909f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiling/debugger/qdb/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def regdst_eq_pc(op_str):
322322
extra = 8 if 'pc' in (r0, r1, r2) else 0
323323

324324
if imm:
325-
expr = imm[0].split(", ")[0].partition(" ")
325+
expr = imm[0].split()
326326
# TODO: should support more bit shifting and rotating operation
327327
if expr[0] == "lsl": # logical shift left
328328
n = _parse_int(expr[-1].strip("#")) * 2
@@ -339,7 +339,7 @@ def regdst_eq_pc(op_str):
339339
r0, r1, *imm = line.op_str.strip("[]").split(", ")
340340

341341
if imm:
342-
expr = imm[0].split(", ")[0].partition(" ")
342+
expr = imm[0].split()
343343
if expr[0] == "lsl": # logical shift left
344344
n = _parse_int(expr[-1].strip("#")) * 2
345345

0 commit comments

Comments
 (0)