I have been trying to find out how to call a function in a GDB session. I am under the impression that `call myfunc(var)` should work but it doesn't.
On Oct 2, 2012 2:42 AM, "Ian Lance Taylor" <ia...@google.com> wrote:
>
> On Mon, Oct 1, 2012 at 10:14 AM, yann Malet <yann....@gmail.com> wrote:
> > Is that a "bug" that will eventually be fixed at some point or a "Feature"
> > that will remain as is ?
>
> It's a bug but I'm not aware of anybody working on it. I don't know
> whether it can be fixed in the Python code
> (src/pkg/runtime/runtime-gdb.py) or whether it requires changes in GDB
> proper.
after going through http://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html, i think gdb proper must be changed to accomplish this (unless there are undocumented python hooks for calling interior's functions).