Remove some code duplication in py-objfile.c, py-progspace.c.
authorDoug Evans <dje@google.com>
Mon, 13 Oct 2014 19:24:54 +0000 (12:24 -0700)
committerDoug Evans <dje@google.com>
Mon, 13 Oct 2014 19:24:54 +0000 (12:24 -0700)
commit4e1bbde013bae26b550a047baa8c6b999d811f23
tree70c101860d545587972bda7864b9e7ff0c53c1f1
parent5b69e3572d1ee8e8e6e1991fd07f87a96c48746d
Remove some code duplication in py-objfile.c, py-progspace.c.

gdb/ChangeLog:

* py-objfile.c (objfpy_initialize): New function.
(objfpy_new, objfile_to_objfile_object): Call it.
* py-progspace.c (pspy_initialize): New function.
(pspy_new, pspace_to_pspace_object): Call it.
gdb/ChangeLog
gdb/python/py-objfile.c
gdb/python/py-progspace.c