This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Define python hooks


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]