context stack with more lines #786
Replies: 2 comments 7 replies
-
|
That's a pretty good idea. |
Beta Was this translation helpful? Give feedback.
-
|
GEF tries to offer a maximum of flexibility, because we simply can't handle each individual preference, it allows to do it yourself in a (hopefully) seamless manner. For what you mention, you can easily create a new pane to the def mystack_content():
gdb.execute("dereference -l 35 $sp") # or whatever length you prefer
def mystack_title():
return "mystack"
register_external_context_pane("mystack", mystack_context, mystack_title)Then configure how you want the context layout to be shown (search docs for Hope that answers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to have something like
context stack --size=35which means GEF will temporarily change thenb_lines_stackto35when executing the command? The default 8 lines output fits my screen when the context is printed while hitting a breakpoint. However, sometimes I might want to inspect the whole stack frame which requires more lines to print. Currently, I'm using a user-defined command to changenb_lines_stackto35, run the context stack, and then change thenb_lines_stackback to8. This is ugly as both35and8are hardcoded. Also, I noticed thatcontext stackis not autocompleted by GEF whilecontextitself is, which means I could useconte[tab]to completecontext. However,context st[tab]has no response from GEF.Beta Was this translation helpful? Give feedback.
All reactions