Re: What are the procedures to use self declared convenience functions in GDB?

Simon Marchi
2020-11-17T14:34:50Z

On 2020-11-17 4:03 a.m., Nagmat Nazar via Gdb wrote:
> I have implemented a convenience function on python in order to use it on
> GDB. What shall I do in order to use it on GDB. As I know the convenience
> functions are located in
>
> ~/gdb/python/lib/gdb/function/
>
> I have copied context_checker.py into this folder but it is not working.
> What other procedures shall I do in order to use the convenience function
> on GDB?
>
>
> https://stackoverflow.com/questions/64815891/what-are-the-procedures-to-use-self-declared-convenience-functions-in-gdb
>
>
>
> Kind regards
>
> Nagmat Nazarov
>

IIRC, you can use them with $ followed by the name of the function. So if you declaire a function foo, use $foo(...).

Simon