[pushed] Remove "linux_multi_process" global

Tom Tromey tom@tromey.com
Sat Jul 18 16:44:23 GMT 2020


The "linux_multi_process" is initialized but never modified.  I
discussed this with Pedro on irc, and he said that, while it was
useful when developing this feature, it is now no longer needed.  So,
this removes it.

gdb/ChangeLog
2020-07-18  Tom Tromey  <tom@tromey.com>

	* linux-nat.c (linux_multi_process): Remove.
	(linux_nat_target::supports_multi_process): Return true.
---
 gdb/ChangeLog   | 5 +++++
 gdb/linux-nat.c | 7 +------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 03d52ba4f09..6a78735018c 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -4185,15 +4185,10 @@ linux_nat_target::always_non_stop_p ()
   return true;
 }
 
-/* True if we want to support multi-process.  To be removed when GDB
-   supports multi-exec.  */
-
-int linux_multi_process = 1;
-
 bool
 linux_nat_target::supports_multi_process ()
 {
-  return linux_multi_process;
+  return true;
 }
 
 bool
-- 
2.17.2



More information about the Gdb-patches mailing list