]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: pass inferior to check_pid_namespace_match
authorSimon Marchi <simon.marchi@efficios.com>
Sun, 25 Oct 2020 02:59:29 +0000 (22:59 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 25 Oct 2020 13:06:09 +0000 (09:06 -0400)
commit3f66685e9e92717af0cafa20480de5548aea7298
tree03f96d39222f97ac4bb7086ba24c5754c54c3c0d
parenta0ff652f4cacc3557795204ae5e73fa9f5d2ea30
gdb: pass inferior to check_pid_namespace_match

Pass the inferior argument available in thread_db_inferior_created, and
use it to do most things requiring the inferior.
check_pid_namespace_match is not completely decoupled from the current
inferior yet, there are hidden references behind target_can_run, for
example.  But I think this is still a good step forward.

gdb/ChangeLog:

* linux-thread-db.c (check_pid_namespace_match): Add inferior
parameter and use it.
(thread_db_inferior_created): Pass inferior argument.

Change-Id: Ib768b14fc61dcf115fe13f776691f2c2f36e0679
gdb/ChangeLog
gdb/linux-thread-db.c