From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4957 invoked by alias); 7 Aug 2008 17:01:31 -0000 Received: (qmail 4945 invoked by uid 22791); 7 Aug 2008 17:01:30 -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 17:00:35 +0000 Received: by fk-out-0910.google.com with SMTP id 19so354837fkr.8 for ; Thu, 07 Aug 2008 10:00:33 -0700 (PDT) Received: by 10.181.5.4 with SMTP id h4mr1655686bki.37.1218128432924; Thu, 07 Aug 2008 10:00:32 -0700 (PDT) Received: by 10.180.243.20 with HTTP; Thu, 7 Aug 2008 10:00:32 -0700 (PDT) Message-ID: <5d649bdb0808071000rbe89429xc8b607f5822a60be@mail.gmail.com> Date: Thu, 07 Aug 2008 17:01:00 -0000 From: "Neo Jia" To: tromey@redhat.com Subject: Re: Source a python script to gdb plugin? Cc: "gdb ml" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5d649bdb0808070039o6503e704gc8deac92ada5d2a6@mail.gmail.com> 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/msg00129.txt.bz2 On Thu, Aug 7, 2008 at 7:02 AM, Tom Tromey wrote: >>>>>> "Neo" == Neo Jia writes: > > Neo> I am going to source the following script through gdb plugin, but it > Neo> doesn't work. > > Neo> Any suggestions? > > That isn't enough information. What platform is this? What version > of Python are you using? How did it fail? Does it work with the > ordinary python interpreter? Linux x86_64. Python is 2.5.1. > /opt/gdb_plugin/bin/gdb GNU gdb (GDB) 6.8.50.20080716-cvs Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: . (gdb) source ./load_libc /home/cjia/workareas/gdb_nvwatch/scripts/load_libc:3: Error in sourced command f ile: Undefined command: "from". Try "help". (gdb) execute the script out of the gdb. > ./load_libc 100 Thanks, Neo > > Tom > -- I would remember that if researchers were not ambitious probably today we haven't the technology we are using!