[0/7] New options to control how Python is initialized

Message ID cover.1619125261.git.andrew.burgess@embecosm.com
Headers show
Series
  • New options to control how Python is initialized
Related show

Message

Andrew Burgess April 22, 2021, 9:02 p.m.
This series works towards allowing the user to have more control over
how the Python interpreter is initialised within GDB without having to
set environment variables.

---

Andrew Burgess (7):
  gdb: remove unused argument from gdb_init
  gdb: ensure SIGINT is set to SIG_DFL during initialisation
  gdb: delay python initialisation until gdbpy_finish_initialization
  gdb delay guile initialization until gdbscm_finish_initialization
  gdb: initialise extension languages after processing early startup
    files
  gdb: extension languages finish_initialization to initialize
  gdb: startup commands to control Python extension language

 gdb/ChangeLog                               | 111 +++++++++++++++++
 gdb/NEWS                                    |  16 +++
 gdb/doc/ChangeLog                           |   4 +
 gdb/doc/python.texi                         |  38 ++++++
 gdb/extension-priv.h                        |   9 +-
 gdb/extension.c                             |  36 +++++-
 gdb/extension.h                             |   2 +-
 gdb/guile/guile.c                           |  86 ++++++-------
 gdb/guile/scm-arch.c                        |   5 +
 gdb/guile/scm-block.c                       |   5 +
 gdb/guile/scm-frame.c                       |   5 +
 gdb/guile/scm-objfile.c                     |   5 +
 gdb/guile/scm-progspace.c                   |   5 +
 gdb/guile/scm-symbol.c                      |   5 +
 gdb/guile/scm-symtab.c                      |   5 +
 gdb/guile/scm-type.c                        |  11 +-
 gdb/main.c                                  |   5 +-
 gdb/python/py-arch.c                        |   8 +-
 gdb/python/py-block.c                       |  17 ++-
 gdb/python/py-inferior.c                    |  11 +-
 gdb/python/py-objfile.c                     |   9 +-
 gdb/python/py-progspace.c                   |   9 +-
 gdb/python/py-registers.c                   |  11 +-
 gdb/python/py-symbol.c                      |  15 ++-
 gdb/python/py-symtab.c                      |  23 ++--
 gdb/python/py-type.c                        |  11 +-
 gdb/python/py-unwind.c                      |  23 ++--
 gdb/python/python.c                         | 129 +++++++++++++++++---
 gdb/testsuite/ChangeLog                     |   4 +
 gdb/testsuite/gdb.python/py-startup-opt.exp | 118 ++++++++++++++++++
 gdb/top.c                                   |  10 +-
 gdb/top.h                                   |   2 +-
 32 files changed, 624 insertions(+), 129 deletions(-)
 create mode 100644 gdb/testsuite/gdb.python/py-startup-opt.exp

-- 
2.25.4