summaryrefslogtreecommitdiff
path: root/debian/patches/gdb-PATH_MAX.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/gdb-PATH_MAX.patch')
-rw-r--r--debian/patches/gdb-PATH_MAX.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/gdb-PATH_MAX.patch b/debian/patches/gdb-PATH_MAX.patch
new file mode 100644
index 0000000..a547472
--- /dev/null
+++ b/debian/patches/gdb-PATH_MAX.patch
@@ -0,0 +1,21 @@
+From: =?utf-8?b?SMOpY3RvciBPcsOzbiBNYXJ0w61uZXo=?= <zumbi@debian.org>
+Date: Wed, 20 Feb 2019 13:25:36 +0100
+Subject: gdb-PATH_MAX
+
+===================================================================
+---
+ gdb/remote.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+Index: gdb/gdb/remote.c
+===================================================================
+--- gdb.orig/gdb/remote.c 2019-02-22 11:26:21.254851487 +0100
++++ gdb/gdb/remote.c 2019-02-22 11:27:05.303425518 +0100
+@@ -7355,6 +7355,7 @@
+ /* This is freed during event handling. */
+ event->ws.value.execd_pathname = pathname;
+ event->ws.kind = TARGET_WAITKIND_EXECD;
++ xfree (pathname);
+
+ /* Skip the registers included in this packet, since
+ they may be for an architecture different from the