Adding MIPS-BE symbol files makes GDB segfault

pull/157/head
Zach Riggle 9 years ago
parent adfa644a15
commit aadd83f7d5

@ -23,6 +23,7 @@ import elftools.elf.segments
import gdb import gdb
import six import six
import pwndbg.arch
import pwndbg.elf import pwndbg.elf
import pwndbg.events import pwndbg.events
import pwndbg.file import pwndbg.file
@ -245,7 +246,7 @@ def add_main_exe_to_symbols():
return return
path = mmap.objfile path = mmap.objfile
if path: if path and (pwndbg.arch.endian == pwndbg.arch.native_endian):
try: try:
gdb.execute('add-symbol-file %s %#x' % (path, addr), from_tty=False, to_string=True) gdb.execute('add-symbol-file %s %#x' % (path, addr), from_tty=False, to_string=True)
except gdb.error: except gdb.error:

Loading…
Cancel
Save