public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sourceware.org
Cc: Kevin Buettner <kevinb@redhat.com>
Subject: [PATCH 0/3] Add -P command line switch for executing Python scripts
Date: Sun, 21 Jul 2019 23:54:00 -0000	[thread overview]
Message-ID: <20190721235427.21893-1-kevinb@redhat.com> (raw)

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

             reply	other threads:[~2019-07-21 23:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-21 23:54 Kevin Buettner [this message]
2019-07-21 23:54 ` [PATCH 1/3] Documentation for Python -P commandline support Kevin Buettner
2019-07-22 14:42   ` Eli Zaretskii
2019-07-22 16:04   ` Simon Marchi
2019-07-21 23:54 ` [PATCH 3/3] Tests " Kevin Buettner
2019-07-21 23:54 ` [PATCH 2/3] Add -P command line switch for executing Python scripts Kevin Buettner
2019-07-23  2:47   ` Simon Marchi
2019-07-23 20:25   ` Tom Tromey
2019-07-27 20:47     ` Kevin Buettner
2019-08-21 16:39     ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190721235427.21893-1-kevinb@redhat.com \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).