From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29934 invoked by alias); 7 Aug 2008 19:17:29 -0000 Received: (qmail 29924 invoked by uid 22791); 7 Aug 2008 19:17:29 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 07 Aug 2008 19:16:54 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m77JGnEV012923; Thu, 7 Aug 2008 15:16:49 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m77JGmIj003407; Thu, 7 Aug 2008 15:16:48 -0400 Received: from opsy.redhat.com (vpn-10-89.bos.redhat.com [10.16.10.89]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m77JGlCx019238; Thu, 7 Aug 2008 15:16:48 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 0A522378159; Thu, 7 Aug 2008 13:16:49 -0600 (MDT) To: "Neo Jia" Cc: "Paul Pluzhnikov" , "gdb ml" Subject: Re: Source a python script to gdb plugin? References: <5d649bdb0808070039o6503e704gc8deac92ada5d2a6@mail.gmail.com> <5d649bdb0808071000rbe89429xc8b607f5822a60be@mail.gmail.com> <8ac60eac0808071008p6a05e668h66300269b3bf3fd5@mail.gmail.com> <5d649bdb0808071208h41ae9bf2s60f988118a735758@mail.gmail.com> From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Thu, 07 Aug 2008 19:17:00 -0000 In-Reply-To: <5d649bdb0808071208h41ae9bf2s60f988118a735758@mail.gmail.com> (Neo Jia's message of "Thu\, 7 Aug 2008 12\:08\:34 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00138.txt.bz2 >>>>> "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') Anything after "python" is passed directly to the python interpreter. Tom