Skip to content

Commit 416c33e

Browse files
committed
New toolchain, new doctests
1 parent 3884d60 commit 416c33e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pwnlib/asm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ def disasm(data, vma = 0, byte = True, offset = True, instructions = True):
771771
>>> print(disasm(unhex('4ff00500'), arch = 'thumb', bits=32))
772772
0: f04f 0005 mov.w r0, #5
773773
>>> print(disasm(unhex('656664676665400F18A4000000000051'), byte=0, arch='amd64'))
774-
0: gs data16 fs data16 rex nop/reserved BYTE PTR gs:[eax+eax*1+0x0]
774+
0: gs data16 fs rex nop WORD PTR gs:[eax+eax*1+0x0]
775775
f: push rcx
776776
>>> print(disasm(unhex('01000000'), arch='sparc64'))
777777
0: 01 00 00 00 nop

pwnlib/elf/corefile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ class Corefile(ELF):
445445
will be loaded.
446446
447447
>>> process('bash').corefile.libc # doctest: +ELLIPSIS
448-
Mapping('/.../libc-....so', start=0x..., stop=0x..., size=0x..., flags=..., page_offset=...)
448+
Mapping('.../libc...so...', start=0x..., stop=0x..., size=0x..., flags=..., page_offset=...)
449449
450450
The corefile also contains a :attr:`.stack` property, which gives
451451
us direct access to the stack contents. On Linux, the very top of the stack
@@ -759,7 +759,7 @@ def vsyscall(self):
759759
@property
760760
def libc(self):
761761
""":class:`Mapping`: First mapping for ``libc.so``"""
762-
expr = r'libc\b.*so$'
762+
expr = r'^libc\b.*so(?:\.6)?$'
763763

764764
for m in self.mappings:
765765
if not m.name:

pwnlib/gdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ def version(program='gdb'):
13291329
13301330
Example:
13311331
1332-
>>> (7,0) <= gdb.version() <= (12,0)
1332+
>>> (7,0) <= gdb.version() <= (19,0)
13331333
True
13341334
"""
13351335
program = misc.which(program)

0 commit comments

Comments
 (0)