Hi,
I have .cc code with singleton instances. Now I want to write a python script which runs on .cc code and does string match. The string to be matched is given outside the .py code by calling the function with the string. The script should then print the address of the string for me. I want to how do we do this in GDB. Also how to call functions of the .py script from outside the code. because I do something like below and it gives me error.
set x = methodname(foo::FooManager)
print $x
It gives me error saying x is not defined in the current context.
I have a function named methodname in my .py script.