From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19659 invoked by alias); 1 Dec 2009 21:33:11 -0000 Received: (qmail 19647 invoked by uid 22791); 1 Dec 2009 21:33:09 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from az33egw02.freescale.net (HELO az33egw02.freescale.net) (192.88.158.103) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Dec 2009 21:33:05 +0000 Received: from de01smr01.freescale.net (de01smr01.freescale.net [10.208.0.31]) by az33egw02.freescale.net (8.14.3/az33egw02) with ESMTP id nB1LWlGY026989; Tue, 1 Dec 2009 14:32:47 -0700 (MST) Received: from lds03-tx32 (lds03-tx32.am.freescale.net [10.83.20.63]) by de01smr01.freescale.net (8.13.1/8.13.0) with ESMTP id nB1LbHnT027639; Tue, 1 Dec 2009 15:37:17 -0600 (CST) Date: Tue, 01 Dec 2009 21:33:00 -0000 From: "Anmol P. Paralkar" To: Tom Tromey cc: "Anmol P. Paralkar" , ranjith kumar , gdb@sourceware.org Subject: Re: size of non local variables In-Reply-To: Message-ID: References: <31cff80d0911301216j36328837k673a2e1936f00eb1@mail.gmail.com> <31cff80d0911301246p6471c1a5ua95608d22b81a22a@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: 2009-12/txt/msg00014.txt.bz2 On Tue, 1 Dec 2009, Tom Tromey wrote: > Anmol> Is there a mini-tutorial somewhere that has an example of > Anmol> getting started with using GDB's Python support? I tried trying > Anmol> out the Greet snippet here: > Anmol> http://sourceware.org/gdb/current/onlinedocs/gdb/Functions-In-Python.html#Functions-In-Python > Anmol> but I'm not sure what I'm doing wrong. > > If that didn't work, could you be more specific? How did it fail, etc? > > I wrote a series of blog entries about the python work a while back. > This may be the closest thing to a tutorial; however, some details of > the API have changed since then, so you would have to read it in > conjunction with the gdb manual: > > http://tromey.com/blog/?p=494 I tried the example at http://tromey.com/blog/?p=501 and it worked just fine; I realize that I must have been making some kind of a usage error (and not making sense of the error message (should have saved it)). But, that's a nice tutorial - pretty much what I was looking for - thank you. Best Regards, Anmol.