Skip to content

Commit b3b5511

Browse files
committed
Fix transmission of large files
1 parent d054465 commit b3b5511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiling/debugger/gdb/gdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def handle_q(subcmd: str) -> Reply:
460460
f.seek(offset, os.SEEK_SET)
461461
content = f.read(length)
462462

463-
return f'l{content}'
463+
return f'{"l" if len(content) < length else "m"}{content}'
464464

465465
elif feature == 'threads' and op == 'read':
466466
if not self.ql.baremetal and hasattr(self.ql.os, 'pid'):

0 commit comments

Comments
 (0)