This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Define python hooks
- From: nojhan <nojhan at nojhan dot net>
- To: gdb <gdb at sourceware dot org>
- Date: Sat, 25 Oct 2014 11:08:16 +0200
- Subject: Define python hooks
- Authentication-results: sourceware.org; auth=none
Hello,
I'm currently using several of hook-* and hookpost-* functions with
shell commands.
I was wondering if there was a way to define such hooks in pure python.
For instance, I would like to import a module at startup and use it
across all the hooks to manipulate the output of the hooked commands.
--
nojhan