From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32436 invoked by alias); 5 Dec 2013 17:06:10 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32422 invoked by uid 89); 5 Dec 2013 17:06:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pd0-f177.google.com Received: from Unknown (HELO mail-pd0-f177.google.com) (209.85.192.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 05 Dec 2013 17:06:08 +0000 Received: by mail-pd0-f177.google.com with SMTP id q10so24669613pdj.8 for ; Thu, 05 Dec 2013 09:06:00 -0800 (PST) X-Received: by 10.68.244.168 with SMTP id xh8mr53575671pbc.3.1386263160774; Thu, 05 Dec 2013 09:06:00 -0800 (PST) Received: from sspiff.sspiff.org.gmail.com (173-13-178-50-sfba.hfc.comcastbusiness.net. [173.13.178.50]) by mx.google.com with ESMTPSA id m2sm51983069pbn.19.2013.12.05.09.05.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Dec 2013 09:05:59 -0800 (PST) From: Doug Evans To: gdb-patches@sourceware.org, guile-user@gnu.org Subject: [PATCH 00/13] script language API for GDB Date: Thu, 05 Dec 2013 17:06:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00190.txt.bz2 Hi. My patch set to add a scripting API to GDB is ready for submission. It sets things up so that adding Guile scripting is straightforward. I've cc'd guile-users to apprise them of my progress. I'll spare them the actual set of patches here, though I plan to cc them when submitting the Guile port, their input will be helpful. The actual Guile port is ready ... just have some more docs to write. :-) This patch set also has a nice effect of formalizing the interface from GDB to Python (one aspect of which is that it removes the need for a lot if #ifdef HAVE_PYTHON's, and it removes all the little stubs that had to be provided when GDB was compiled --without-python). The main patches are 02 and 03. 02 adds scripting.c, scripting.h, and scripting-priv.h. 03 updates python.c, python.h, and python-internal.h. The rest are pretty-straightforward. A lot of the change is mechanical: - I want to have each ops "method" named ${lang}_${method_name}. - Plus I want to have each API entry point have something in its name that says "I am a scripting API entry point". My first attempt used slang_ but that was thought to have to much potential confusion with the slang scripting language. Instead I've taken a minimalist approach and added "script" to the function name. E.g., apply_val_pretty_printer -> apply_val_script_pretty_printer - Then I needed to move the interface enums defined in python.h out and make the values have non-python-specific names. I'm going to wait until after 7.7 has been branched before checking anything in of course.