This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix Windows gdb build failure with Python 2 support
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 06 Apr 2017 12:37:00 -0400
- Subject: [binutils-gdb] Fix Windows gdb build failure with Python 2 support
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 0dedf3777db42712f460123ac0c63c49de5456f5 ***
Author: Thomas Preud'homme <thomas.preudhomme@arm.com>
Branch: master
Commit: 0dedf3777db42712f460123ac0c63c49de5456f5
Fix Windows gdb build failure with Python 2 support
GDB fails to build for Windows host with Python 2 support enabled due
to PyFile_FromString's second argument being of type char * and being
passed a (const) string literal. This parameter is input only so this
commit fixes the issue by casting to char *.
2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
gdb/
* python/python.c (python_run_simple_file): Cast mode literal to
non-const char pointer as expected by PyFile_FromString.