From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6452 invoked by alias); 7 Aug 2008 19:06:09 -0000 Received: (qmail 6444 invoked by uid 22791); 7 Aug 2008 19:06:08 -0000 X-Spam-Check-By: sourceware.org Received: from igw2.br.ibm.com (HELO igw2.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 07 Aug 2008 19:05:18 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw2.br.ibm.com (Postfix) with ESMTP id 454F917F51C for ; Thu, 7 Aug 2008 15:51:18 -0300 (BRT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m77J3tQd1601880 for ; Thu, 7 Aug 2008 16:04:55 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m77J3leY008338 for ; Thu, 7 Aug 2008 16:03:47 -0300 Received: from [9.8.5.115] ([9.8.5.115]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m77J3kbs008271; Thu, 7 Aug 2008 16:03:46 -0300 Subject: Re: gdb plugin status? From: Thiago Jung Bauermann To: Tom Tromey Cc: Neo Jia , gdb ml In-Reply-To: References: <5d649bdb0808031010g6330a442xec0415a387d23163@mail.gmail.com> <1217860034.7578.8.camel@localhost.localdomain> <5d649bdb0808050033k212fb93arc4e8b7ff8f9b1a7f@mail.gmail.com> <1217943660.4534.1.camel@localhost.localdomain> <5d649bdb0808051553g6ee22cbfr80cfa43cd56e870c@mail.gmail.com> <1217993159.4534.47.camel@localhost.localdomain> <1218001435.4534.60.camel@localhost.localdomain> <1218055425.6617.5.camel@localhost.localdomain> <5d649bdb0808070010k659f9fdbj57a31865fa47ea77@mail.gmail.com> Content-Type: text/plain Date: Thu, 07 Aug 2008 19:06:00 -0000 Message-Id: <1218135824.11103.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit 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/msg00135.txt.bz2 On Thu, 2008-08-07 at 12:36 -0600, Tom Tromey wrote: > >>>>> "Neo" == Neo Jia writes: > > Neo> I just build it. Is there any example to use this plugin? Can I source > Neo> in a python script? > > There are a couple examples in the gdb or gdb-patches list archives. > Here's one I happen to have right away: > > http://sourceware.org/ml/gdb/2008-03/msg00201.html > > We do need more examples, and a standard library of scripts. > > Neo> BTW, would it be better to change the python prompt to ">>>"? > > You mean when entering a multi-line 'python' script? > Either way is fine by me. That script is a little bit outdated in two ways: 1. Some of the gdb.Frame methods had slight name changes since then; 2. The kludge it uses to create a gdb command tied to a python script is not necessary anymore, there's a proper command interface now. But it's a good starting point nevertheless. -- []'s Thiago Jung Bauermann IBM Linux Technology Center