File gdb-11.1-fix-python-compile-eol.patch of Package mingw64-gdb
--- gdb-11.1/gdb/python/lib/gdb/__init__.py.orig 2022-01-11 11:01:54.626307059 +0100
+++ gdb-11.1/gdb/python/lib/gdb/__init__.py 2022-01-11 11:02:18.286218353 +0100
@@ -141,7 +141,7 @@
with open(filepath, "r") as file:
# We pass globals also as locals to match what Python does
# in PyRun_SimpleFile.
- compiled = compile(file.read(), filepath, "exec")
+ compiled = compile(file.read().replace('\r\n','\n'), filepath, 'exec')
exec(compiled, globals, globals)
finally:
if set_file: