aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/nat/linux-namespaces.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0393652..0cb0c7b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-21 Gary Benson <gbenson@redhat.com>
+
+ * nat/linux-namespaces.c (linux_mntns_access_fs):
+ Do not overwrite old_chain.
+
2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
* arch/xtensa.h: New file.
diff --git a/gdb/nat/linux-namespaces.c b/gdb/nat/linux-namespaces.c
index fd0d4b0..4341429 100644
--- a/gdb/nat/linux-namespaces.c
+++ b/gdb/nat/linux-namespaces.c
@@ -894,7 +894,7 @@ linux_mntns_access_fs (pid_t pid)
if (fd < 0)
goto error;
- old_chain = make_cleanup_close (fd);
+ make_cleanup_close (fd);
if (fstat (fd, &sb) != 0)
goto error;