This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/2] prevent gdb.Frame/Objfile and other types to be instanciated
- From: Tom Tromey <tromey at redhat dot com>
- To: Sanimir Agovic <sanimir dot agovic at intel dot com>
- Cc: gdb-patches at sourceware dot org, pmuldoon at redhat dot com
- Date: Thu, 10 Oct 2013 13:04:58 -0600
- Subject: Re: [PATCH 0/2] prevent gdb.Frame/Objfile and other types to be instanciated
- Authentication-results: sourceware.org; auth=none
- References: <1377873604-15519-1-git-send-email-sanimir dot agovic at intel dot com>
>>>>> "Sanimir" == Sanimir Agovic <sanimir.agovic@intel.com> writes:
Sanimir> as discussed in
Sanimir> http://sourceware.org/ml/gdb-patches/2013-08/msg00848.html the
Sanimir> gdb/python interface exposes types which should not be
Sanimir> instanciated directly by python code. This patch now raising a
Sanimir> TypeError if one instanciate such type.
It seems like a reasonable plan to me.
We never intended to allow instantiation of these objects; and most of
them are actually useless if instantiated.
Tom