Less aggressive faulty source line detection (fixes #78) (#80)

pull/49/head
Levente Polyak 10 years ago committed by Zach Riggle
parent 24c4847eeb
commit 8d5982bce4

@ -160,7 +160,7 @@ def context_source():
# If it starts on line 1, it's not really using the
# correct source code.
if not source or source.startswith('1\t'):
if not source or closest_line <= 1:
return []
banner = [pwndbg.color.blue(pwndbg.ui.banner("code"))]

Loading…
Cancel
Save