diff options
Diffstat (limited to 'meta-boot2qt-distro/recipes-devtools/gdb/gdb/0001-Do-not-use-win32-specific-filehandling.patch')
-rw-r--r-- | meta-boot2qt-distro/recipes-devtools/gdb/gdb/0001-Do-not-use-win32-specific-filehandling.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-boot2qt-distro/recipes-devtools/gdb/gdb/0001-Do-not-use-win32-specific-filehandling.patch b/meta-boot2qt-distro/recipes-devtools/gdb/gdb/0001-Do-not-use-win32-specific-filehandling.patch new file mode 100644 index 0000000..c9a20ed --- /dev/null +++ b/meta-boot2qt-distro/recipes-devtools/gdb/gdb/0001-Do-not-use-win32-specific-filehandling.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From 3c928a3bf8d873f6173a076da6e4c1bc85e9a3a0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@qt.io> | ||
3 | Date: Wed, 28 Jun 2017 20:41:49 +0300 | ||
4 | Subject: [PATCH] Do not use win32 specific filehandling | ||
5 | |||
6 | PyFile_FromString and PyFile_AsFile are no longer available in python3 | ||
7 | see https://sourceware.org/bugzilla/show_bug.cgi?id=15600 | ||
8 | --- | ||
9 | gdb/python/python.c | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/gdb/python/python.c b/gdb/python/python.c | ||
13 | index 9bccaa9..1d58dff 100644 | ||
14 | --- a/gdb/python/python.c | ||
15 | +++ b/gdb/python/python.c | ||
16 | @@ -374,7 +374,7 @@ python_interactive_command (char *arg, int from_tty) | ||
17 | static void | ||
18 | python_run_simple_file (FILE *file, const char *filename) | ||
19 | { | ||
20 | -#ifndef _WIN32 | ||
21 | +#ifdef _WIN32 | ||
22 | |||
23 | PyRun_SimpleFile (file, filename); | ||
24 | |||