This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/3] Add -P command line switch for executing Python scripts


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]