aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2017-04-06 17:17:23 +0100
committerThomas Preud'homme <thomas.preudhomme@arm.com>2017-04-06 17:18:31 +0100
commit0dedf3777db42712f460123ac0c63c49de5456f5 (patch)
tree8b34bd85e243292234c85b57c66b7de850eac7ab /gdb/ChangeLog
parent3944e22b463a62bfc4f6f0a892c6b0ac705e3c43 (diff)
downloadbinutils-0dedf3777db42712f460123ac0c63c49de5456f5.zip
binutils-0dedf3777db42712f460123ac0c63c49de5456f5.tar.gz
binutils-0dedf3777db42712f460123ac0c63c49de5456f5.tar.bz2
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 880af5b..e906b87 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
+
+ * python/python.c (python_run_simple_file): Cast mode literal to
+ non-const char pointer as expected by PyFile_FromString.
+
2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
* common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with