Source a python script to gdb plugin?

Neo Jia
2008-08-07T07:40:18Z

hi,

I am going to source the following script through gdb plugin, but it
doesn't work.

#!/usr/bin/python

from ctypes import *
cdll.LoadLibrary("libc.so.6")
libc = CDLL("libc.so.6")
libc.printf("%d\n", 100)

Any suggestions?

Thanks,