add a script to print function with gdb