From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9490 invoked by alias); 18 Jan 2010 07:04:53 -0000 Received: (qmail 9480 invoked by uid 22791); 18 Jan 2010 07:04:51 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Jan 2010 07:04:43 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 870DC2BAB23; Mon, 18 Jan 2010 02:04:41 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xyFpkA2OOZxe; Mon, 18 Jan 2010 02:04:41 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id C14FC2BAB1A; Mon, 18 Jan 2010 02:04:40 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 81351F5970; Mon, 18 Jan 2010 11:04:27 +0400 (RET) From: Joel Brobecker To: gdb-patches@sourceware.org Cc: Joel Brobecker Subject: [RFA/NEWS] source is able to load Python scripts. Date: Mon, 18 Jan 2010 07:04:00 -0000 Message-Id: <1263798265-2952-1-git-send-email-brobecker@adacore.com> 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: 2010-01/txt/msg00448.txt.bz2 This patch documents the fact that the "source" comment is now able to load Python scripts. It also documents a new setting that was introduced to configure the behavior of the "source" command. gdb/ChangeLog: * NEWS: Document the source command enhancement allowing it to load Python scripts. Document the "set/show script-extension" commands. Ok to commit? Thanks, -- Joel --- gdb/NEWS | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/gdb/NEWS b/gdb/NEWS index 4b88ee7..98183c4 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -81,6 +81,14 @@ info variables The info variables command now displays variable definitions. Files which only declare a variable are not shown. +source + The source command is now capable of sourcing Python scripts. + This feature is dependent on the debugger being build with Python + support. + + Related to this enhancement is also the introduction a new command + "set script-extension" (see below). + * New commands (for set/show, see "New options" below) record save [] @@ -163,6 +171,15 @@ show disconnected-tracing loses its connection to GDB. If 0, the target is to stop tracing upon disconnection. +set script-extension off|soft|strict +show script-extension + If set to off, the debugger does not perform any script language + recognition, and all sourced files are assumed to be GDB scripts. + If set to "soft" (the default), files are sourced according to + filename extension, falling back to GDB scripts if the first + evaluation failed. + If set to "strict", files are sourced according to filename extension. + * New remote packets QTDV -- 1.6.3.3