Remove linux_proc_pid_get_ns
authorGary Benson <gbenson@redhat.com>
Wed, 10 Jun 2015 13:28:43 +0000 (14:28 +0100)
committerGary Benson <gbenson@redhat.com>
Wed, 10 Jun 2015 13:28:43 +0000 (14:28 +0100)
commit9bc3a9760b22a6187fdce6abc3df8f0c1d483a21
tree0d3c633fdf088c2e5f4af7c10a3d2da02bbc21ed
parent4b8b5e72451d5b9da4000b8346b20035833aa087
Remove linux_proc_pid_get_ns

This commit removes linux_proc_pid_get_ns, and updates its only
caller to use linux_ns_same instead.

gdb/ChangeLog:

* linux-thread-db.c (nat/linux-namespaces.h): New include.
(check_pid_namespace_match): Use linux_ns_same rather than
linux_proc_pid_get_ns to spot PID namespace mismatches.
* nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
* nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
gdb/ChangeLog
gdb/linux-thread-db.c
gdb/nat/linux-procfs.c
gdb/nat/linux-procfs.h