This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Source a python script to gdb plugin?
- From: "Neo Jia" <neojia at gmail dot com>
- To: "gdb ml" <gdb at sourceware dot org>
- Date: Thu, 7 Aug 2008 00:39:39 -0700
- Subject: Source a python script to gdb plugin?
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,
Neo
--
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!