From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32049 invoked by alias); 23 Oct 2012 19:42:42 -0000 Received: (qmail 32040 invoked by uid 22791); 23 Oct 2012 19:42:41 -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 19:42:36 +0000 Received: by mail-oa0-f41.google.com with SMTP id k14so4612544oag.0 for ; Tue, 23 Oct 2012 12:42:35 -0700 (PDT) Received: by 10.182.185.12 with SMTP id ey12mr11070434obc.7.1351021355314; Tue, 23 Oct 2012 12:42:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.69.39 with HTTP; Tue, 23 Oct 2012 12:42:15 -0700 (PDT) In-Reply-To: <87wqyhdmxq.fsf@fleche.redhat.com> References: <508486C7.4080505@gmail.com> <87pq4agr0t.fsf@fleche.redhat.com> <87wqyhdmxq.fsf@fleche.redhat.com> From: Bruce Korb Date: Tue, 23 Oct 2012 19:42: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/msg00096.txt.bz2 Hi Tom, On Tue, Oct 23, 2012 at 12:10 PM, Tom Tromey wrote: > Bruce> (gdb) mask > [...] > > You can write a Python extension that loads your C code using ctypes. > There are other viable choices as well. I'd have to learn Python or one of the other viable choices. I am looking for/hoping for a nice, simple cookbook solution that doesn't involve learning how to set up Python or swig interfaces, rebuilding gdb with python hooks and gluing together all the pieces. Something simple. Applying Abhijit's patch and writing the 10 line hook function was a simple cookbook solution. Except it does involve rebuilding GDB, so still not as simple as I'd like. A pointer to a cook book would be really helpful. Thank you so much! Regards, Bruce