From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14458 invoked by alias); 23 Oct 2012 20:54:56 -0000 Received: (qmail 14447 invoked by uid 22791); 23 Oct 2012 20:54:54 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-oa0-f41.google.com (HELO mail-oa0-f41.google.com) (209.85.219.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 23 Oct 2012 20:54:48 +0000 Received: by mail-oa0-f41.google.com with SMTP id k14so4689104oag.0 for ; Tue, 23 Oct 2012 13:54:48 -0700 (PDT) Received: by 10.60.169.197 with SMTP id ag5mr11930271oec.137.1351025688274; Tue, 23 Oct 2012 13:54:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.69.39 with HTTP; Tue, 23 Oct 2012 13:54:27 -0700 (PDT) In-Reply-To: <876261aq76.fsf@fleche.redhat.com> References: <508486C7.4080505@gmail.com> <87pq4agr0t.fsf@fleche.redhat.com> <87wqyhdmxq.fsf@fleche.redhat.com> <876261aq76.fsf@fleche.redhat.com> From: Bruce Korb Date: Tue, 23 Oct 2012 20:54:00 -0000 Message-ID: Subject: Re: custom runtime GDB extensions To: Tom Tromey Cc: Abhijit Halder , gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2012-10/txt/msg00100.txt.bz2 Hi Tom, On Tue, Oct 23, 2012 at 1:28 PM, Tom Tromey wrote: > Bruce> Something simple. > > Sorry, that doesn't exist. :( > Bruce> A pointer to a cook book would be really helpful. Thank you so much! > > ctypes tutorial: http://python.net/crew/theller/ctypes/tutorial.html > > Somewhat out of date but still generally useful gdb-python walk-through: > http://sourceware.org/gdb/wiki/PythonGdbTutorial THAT'S THE TICKET! Thank you again. Once I've jiggered up a way to readily load a .so and invoke a function from it, I'll post it so the next guy might find the thing with Google. Meanwhile, cajoling the distributions to enable python extensions by default would be a good thing to do. (Or just do it by default and require a --disable-python option instead....)