From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29190 invoked by alias); 7 Aug 2008 07:40:18 -0000 Received: (qmail 29179 invoked by uid 22791); 7 Aug 2008 07:40:17 -0000 X-Spam-Check-By: sourceware.org Received: from fk-out-0910.google.com (HELO fk-out-0910.google.com) (209.85.128.191) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 07 Aug 2008 07:39:42 +0000 Received: by fk-out-0910.google.com with SMTP id 19so213743fkr.8 for ; Thu, 07 Aug 2008 00:39:39 -0700 (PDT) Received: by 10.181.23.2 with SMTP id a2mr1464397bkj.24.1218094779740; Thu, 07 Aug 2008 00:39:39 -0700 (PDT) Received: by 10.180.243.20 with HTTP; Thu, 7 Aug 2008 00:39:39 -0700 (PDT) Message-ID: <5d649bdb0808070039o6503e704gc8deac92ada5d2a6@mail.gmail.com> Date: Thu, 07 Aug 2008 07:40:00 -0000 From: "Neo Jia" To: "gdb ml" Subject: Source a python script to gdb plugin? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00120.txt.bz2 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!