Skip to content
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

Question: best practices for custom Context implementation #724

Closed
mahaloz opened this issue Sep 24, 2021 · 2 comments
Closed

Question: best practices for custom Context implementation #724

mahaloz opened this issue Sep 24, 2021 · 2 comments

Comments

@mahaloz
Copy link
Contributor

mahaloz commented Sep 24, 2021

Hi, apologies for veering from the normal issue guidelines in hopes that a question would not constitute a normal issue. I'm currently developing a GEF command that I would like used like a ContextCommand. I have data that I would like to output at every "break-like" event. I know I could use gef_on_stop_hook, but I want this data to be displayed like a normal context output. I know pwndbg supports adding new Contexts, I wanted to know if there is a method in GEF I am just not aware of.

Any suggestions from devs?

Thanks.

@Grazfather
Copy link
Collaborator

We don't support this currently, but it's a good idea.

We could add support to 'register' a function as a 'user context' which would be called along with the rest of context. Your intent would be to write something in python, or rather to write gef/gdb commands that should be output?

@mahaloz
Copy link
Contributor Author

mahaloz commented Sep 25, 2021

@Grazfather, thanks for getting back to me. I also DMed @hugsy about this. I'll close this issue and reopen as a feature request to better document this. Thanks!

@mahaloz mahaloz closed this as completed Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants