From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106779 invoked by alias); 21 Jul 2019 23:54:47 -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 106771 invoked by uid 89); 21 Jul 2019 23:54:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1138, HContent-Transfer-Encoding:8bit X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 21 Jul 2019 23:54:46 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 360F430842A9 for ; Sun, 21 Jul 2019 23:54:45 +0000 (UTC) Received: from f30-1.lan (ovpn-117-224.phx2.redhat.com [10.3.117.224]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0EA035DD7C; Sun, 21 Jul 2019 23:54:45 +0000 (UTC) From: Kevin Buettner To: gdb-patches@sourceware.org Cc: Kevin Buettner Subject: [PATCH 0/3] Add -P command line switch for executing Python scripts Date: Sun, 21 Jul 2019 23:54:00 -0000 Message-Id: <20190721235427.21893-1-kevinb@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00499.txt.bz2 This three part patch set adds a -P command line switch to GDB. I won't say much about it here as it's described in the documentation patch along with some additional discussion in part 2. I will note, however, that the original work was done by Tom Tromey back in 2008. It's been in the Fedora and RHEL sources for a goood while too. Kevin Buettner (3): Documentation for Python -P commandline support Add -P command line switch for executing Python scripts Tests for Python -P commandline support gdb/doc/gdb.texinfo | 10 +++++ gdb/main.c | 48 +++++++++++++++++++++--- gdb/python/python.c | 49 +++++++++++++++++++++++++ gdb/python/python.h | 2 + gdb/testsuite/gdb.python/py-script.c | 27 ++++++++++++++ gdb/testsuite/gdb.python/py-script.exp | 51 ++++++++++++++++++++++++++ gdb/testsuite/gdb.python/py-script.py | 25 +++++++++++++ 7 files changed, 206 insertions(+), 6 deletions(-) create mode 100644 gdb/testsuite/gdb.python/py-script.c create mode 100644 gdb/testsuite/gdb.python/py-script.exp create mode 100644 gdb/testsuite/gdb.python/py-script.py -- 2.21.0