From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27002 invoked by alias); 1 Jun 2009 15:46:09 -0000 Received: (qmail 26986 invoked by uid 22791); 1 Jun 2009 15:46:04 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 01 Jun 2009 15:45:59 +0000 Received: from eliz by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MB9i0-0000yV-NH; Mon, 01 Jun 2009 11:45:56 -0400 From: Eli Zaretskii To: Thiago Jung Bauermann CC: brobecker@adacore.com, tromey@redhat.com, drow@false.org, pedro@codesourcery.com, gdb-patches@sourceware.org In-reply-to: <1243828612.9045.9.camel@hactar> (message from Thiago Jung Bauermann on Mon, 01 Jun 2009 00:56:51 -0300) Subject: Re: RFC: add ability to "source" Python code Reply-to: Eli Zaretskii References: <20090211220118.GE13021@adacore.com> <20090212062654.GG13021@adacore.com> <20090213022246.GA5401@adacore.com> <20090217000746.GA3812@adacore.com> <20090219200536.GA25486@adacore.com> <1243828612.9045.9.camel@hactar> Message-Id: Date: Mon, 01 Jun 2009 15:46:00 -0000 X-IsSubscribed: yes 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 X-SW-Source: 2009-06/txt/msg00007.txt.bz2 > From: Thiago Jung Bauermann > Cc: Tom Tromey , Eli Zaretskii , > drow@false.org, pedro@codesourcery.com, gdb-patches@sourceware.org > Date: Mon, 01 Jun 2009 00:56:51 -0300 > > This patch implements such tri-state setting: > > (gdb) help set script-extension > Set mode for script filename extension recognition. > off == no filename extension recognition (all sourced files are GDB scripts) > soft == evaluate script according to filename extension, fallback to GDB script > hard == evaluate script according to filename extension, error if not supported > > The default is 'soft'. When Python support is not compiled in, the code > always assumes a GDB script. > > Is this good enough for everybody? Fine with me. However, I would suggest "strict" instead of "hard".