Skip to content

Commit 5316aa4

Browse files
committed
add custom engine and uefi to skip file path check in gdb
1 parent e3dcbec commit 5316aa4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

qiling/debugger/gdb/gdb.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,10 @@ def handle_v(subcmd):
673673
self.send("")
674674

675675
elif subcmd.startswith('File:open'):
676+
if self.ql.ostype == QL_OS.UEFI and self.ql.custom_engine == True:
677+
self.send("F-1")
678+
return
679+
676680
(file_path, flags, mode) = subcmd.split(':')[-1].split(',')
677681
file_path = unhexlify(file_path).decode(encoding='UTF-8')
678682
flags = int(flags, base=16)
@@ -688,6 +692,7 @@ def handle_v(subcmd):
688692
self.send("F%x" % fd)
689693
else:
690694
self.send("F-1")
695+
return
691696

692697
elif subcmd.startswith('File:pread:'):
693698
(fd, count, offset) = subcmd.split(':')[-1].split(',')

0 commit comments

Comments
 (0)