From 0b8748b0993f7e2cf63525ab602b037e0edbee39 Mon Sep 17 00:00:00 2001 From: benjamin vanheuverzwijn Date: Mon, 18 Nov 2013 02:24:39 -0500 Subject: [PATCH] Fixed a bug when calling context_code without linecount (default to 8) --- peda.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/peda.py b/peda.py index ee23b77..6889e13 100644 --- a/peda.py +++ b/peda.py @@ -4190,6 +4190,9 @@ def context_code(self, *arg): """ (count,) = normalize_argv(arg, 1) + if count is None: + count = 8 + if not self._is_running(): return