Fix build issue with Python 3.7
authorPaul Koning <paul_koning@dell.com>
Fri, 8 Jun 2018 17:26:36 +0000 (13:26 -0400)
committerPaul Koning <paul_koning@dell.com>
Fri, 8 Jun 2018 17:32:03 +0000 (13:32 -0400)
commitaeab512851bf6ed623d1c6c4305b6ce05e51a10c
treec2504328dac363a27cfe91514c4d961a4cf127ee
parent5045b3d78903d1f6faa4cb511fa801e50dfacf48
Fix build issue with Python 3.7

Originally reported in
https://bugzilla.redhat.com/show_bug.cgi?id=1577396 -- gdb build fails
with Python 3.7 due to references to a Python internal function whose
declaration changed in 3.7.

gdb/ChangeLog
2018-06-08  Paul Koning  <paul_koning@dell.com>

    PR gdb/23252

    * python/python.c (do_start_initialization):
    Avoid call to internal Python API.
    (init__gdb_module): New function.
gdb/ChangeLog
gdb/python/python.c