From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32266 invoked by alias); 7 Aug 2008 19:18:24 -0000 Received: (qmail 32255 invoked by uid 22791); 7 Aug 2008 19:18:24 -0000 X-Spam-Check-By: sourceware.org Received: from fk-out-0910.google.com (HELO fk-out-0910.google.com) (209.85.128.190) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 07 Aug 2008 19:17:50 +0000 Received: by fk-out-0910.google.com with SMTP id 19so388672fkr.8 for ; Thu, 07 Aug 2008 12:17:47 -0700 (PDT) Received: by 10.181.23.19 with SMTP id a19mr1696681bkj.90.1218136667021; Thu, 07 Aug 2008 12:17:47 -0700 (PDT) Received: by 10.180.243.20 with HTTP; Thu, 7 Aug 2008 12:17:46 -0700 (PDT) Message-ID: <5d649bdb0808071217u2d353c2jcbc450fe39e0629d@mail.gmail.com> Date: Thu, 07 Aug 2008 19:18:00 -0000 From: "Neo Jia" To: "Tom Tromey" Subject: Re: Source a python script to gdb plugin? Cc: "Paul Pluzhnikov" , "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> <5d649bdb0808071000rbe89429xc8b607f5822a60be@mail.gmail.com> <8ac60eac0808071008p6a05e668h66300269b3bf3fd5@mail.gmail.com> <5d649bdb0808071208h41ae9bf2s60f988118a735758@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/msg00139.txt.bz2 On Thu, Aug 7, 2008 at 12:16 PM, Tom Tromey wrote: >>>>>> "Neo" == Neo Jia writes: > > Neo> (gdb) python ./load_libc > Neo> File "", line 1 > Neo> ./load_libc > Neo> ^ > Neo> SyntaxError: invalid syntax > > Neo> Is this the right way to use it? > > Nope, try: > > python execfile('./load_libc') This works! Thanks a lot! Neo > > Anything after "python" is passed directly to the python interpreter. > > Tom > -- I would remember that if researchers were not ambitious probably today we haven't the technology we are using!