-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't catch the error of the heap commands when set exception-* on
#1270
Conversation
@CptGibbon, could you verify whether this fix works or not? Thanks! |
pwndbg/commands/__init__.py
Outdated
@@ -276,6 +277,9 @@ def _OnlyWithResolvedHeapSyms(*a, **kw): | |||
e = lambda s: print(message.error(s)) | |||
w = lambda s: print(message.warn(s)) | |||
if pwndbg.heap.current.can_be_resolved(): | |||
# We don't catch the error for developers, only catch for users. | |||
if gdb.parameter("exception-verbose") or gdb.parameter("exception-debugger"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should:
- fetch those through pwndbg.config.exception_verbose and pwndbg.config.exception_debugger
- move this to the exception case and re-raise the err
except Exception as err: if ...: raise err
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I'll fix it with your suggestions!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment
Codecov Report
@@ Coverage Diff @@
## dev #1270 +/- ##
==========================================
+ Coverage 54.45% 54.79% +0.33%
==========================================
Files 182 182
Lines 20214 20236 +22
Branches 1865 1872 +7
==========================================
+ Hits 11008 11088 +80
+ Misses 8783 8732 -51
+ Partials 423 416 -7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I'll take a look today, thanks for changing this. |
This does indeed print out a backtrace when |
Fix the nightmare when debugging the heap commands (#1242 (comment))