Fix Endianess issue and Memory error on GDB (#386)

pull/389/head
Bjoern Kerler 8 years ago committed by Zach Riggle
parent 81a1a0e1c2
commit 55cb36cd19

@ -48,7 +48,7 @@ def update():
m.ptrsize = pwndbg.typeinfo.ptrsize
m.ptrmask = (1 << 8*pwndbg.typeinfo.ptrsize)-1
if 'little' in gdb.execute('show endian', to_string=True):
if 'little' in gdb.execute('show endian', to_string=True).lower():
m.endian = 'little'
else:
m.endian = 'big'

Loading…
Cancel
Save