From 55cb36cd19dc7e004a2f84246a98c2394af433c9 Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Tue, 2 Jan 2018 18:26:35 +0100 Subject: [PATCH] Fix Endianess issue and Memory error on GDB (#386) --- pwndbg/arch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwndbg/arch.py b/pwndbg/arch.py index c901858aa..15c6bc168 100644 --- a/pwndbg/arch.py +++ b/pwndbg/arch.py @@ -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'