From 60396ddeffeb73557def8dbbaaedfd8e215eab10 Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Mon, 20 Jul 2015 18:12:21 -0400 Subject: [PATCH] Fix missing exe (start==vma) and update requirements --- pwndbg/symbol.py | 4 ++++ requirements.txt | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pwndbg/symbol.py b/pwndbg/symbol.py index d0620db04..95f9b9664 100644 --- a/pwndbg/symbol.py +++ b/pwndbg/symbol.py @@ -82,6 +82,10 @@ def add_main_exe_to_symbols(): return exe = pwndbg.elf.exe() + + if not exe: + return + addr = exe.address if not addr: diff --git a/requirements.txt b/requirements.txt index c84ef9bd9..abb5733a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ capstone>=4.0 -pycparser \ No newline at end of file +pycparser +psutil>=3.1.0