Hopefully fix recursion error

This commit is contained in:
Disconnect3d 2021-10-05 02:29:13 +02:00 committed by GitHub
parent c8c9e3f003
commit e239e9c1f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ def get():
if pages: if pages:
pages.extend(info_sharedlibrary()) pages.extend(info_sharedlibrary())
else: else:
if pwndbg.qemu.is_usermode(): if pwndbg.qemu.is_qemu():
return ( return (
pwndbg.memory.Page(0, pwndbg.arch.ptrmask, 7, 0, '[qemu-user]'), pwndbg.memory.Page(0, pwndbg.arch.ptrmask, 7, 0, '[qemu]'),
) )
pages.extend(info_files()) pages.extend(info_files())