Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Sanimir Agovic <sanimir.agovic@intel.com>
To: gdb-patches@sourceware.org
Cc: pmuldoon@redhat.com
Subject: [PATCH 0/2] prevent gdb.Frame/Objfile and other types to be instanciated
Date: Fri, 30 Aug 2013 14:40:00 -0000	[thread overview]
Message-ID: <1377873604-15519-1-git-send-email-sanimir.agovic@intel.com> (raw)

Hello,

as discussed in http://sourceware.org/ml/gdb-patches/2013-08/msg00848.html
the gdb/python interface exposes types which should not be instanciated
directly by python code. This patch now raising a TypeError if one instanciate
such type.

Test results:

$ make check RUNTESTFLAGS="--directory=gdb.python"

                === gdb tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../../gdb/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
[...]
                === gdb Summary ===

# of expected passes            1705

 -Sanimir


Sanimir Agovic (2):
  python: disallow python code to instanciate certain types
  test: ensure certain types exposed to python are not instancable

 gdb/python/py-arch.c                      |    1 -
 gdb/python/py-block.c                     |    1 -
 gdb/python/py-frame.c                     |    1 -
 gdb/python/py-objfile.c                   |   35 +----------------------------
 gdb/python/py-progspace.c                 |   35 +----------------------------
 gdb/python/py-symtab.c                    |    2 -
 gdb/testsuite/gdb.python/py-arch.exp      |    2 +
 gdb/testsuite/gdb.python/py-block.exp     |    2 +
 gdb/testsuite/gdb.python/py-frame.exp     |    2 +
 gdb/testsuite/gdb.python/py-inferior.exp  |    2 +
 gdb/testsuite/gdb.python/py-infthread.exp |    2 +
 gdb/testsuite/gdb.python/py-progspace.exp |    4 +++
 gdb/testsuite/gdb.python/py-symtab.exp    |    3 ++
 gdb/testsuite/gdb.python/py-type.exp      |    2 +
 gdb/testsuite/lib/gdb-python.exp          |   14 +++++++++++
 15 files changed, 35 insertions(+), 73 deletions(-)


             reply	other threads:[~2013-08-30 14:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-30 14:40 Sanimir Agovic [this message]
2013-08-30 14:40 ` [PATCH 1/2] python: disallow python code to instanciate certain types Sanimir Agovic
2013-08-30 15:08   ` Phil Muldoon
2013-10-10 19:08     ` Tom Tromey
2013-10-10 19:06   ` Tom Tromey
2013-08-30 14:40 ` [PATCH 2/2] test: ensure certain types exposed to python are not instancable Sanimir Agovic
2013-10-10 19:14   ` Tom Tromey
2013-10-10 19:59     ` Paul_Koning
2013-10-10 19:10 ` [PATCH 0/2] prevent gdb.Frame/Objfile and other types to be instanciated Tom Tromey

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=1377873604-15519-1-git-send-email-sanimir.agovic@intel.com \
    --to=sanimir.agovic@intel.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pmuldoon@redhat.com \
    /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