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.
-
Is it possible to have something like
context stack --size=35
which means GEF will temporarily change thenb_lines_stack
to35
when 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_stack
to35
, run the context stack, and then change thenb_lines_stack
back to8
. This is ugly as both35
and8
are hardcoded. Also, I noticed thatcontext stack
is not autocompleted by GEF whilecontext
itself 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