From 05c309a8aeb8060fdcb9a05bbcdca2f5f1be61d7 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 21 Jul 2020 16:49:35 -0400 Subject: gdb, gdbserver: make stopped_pids global variables static I noticed that my IDE was confusing the two stopped_pids variables. There is one in GDB and one in GDBserver. They should be static, make them so. gdb/ChangeLog: * linux-nat.c (stopped_pids): Make static. gdbserver/ChangeLog: * linux-low.cc (stopped_pids): Make static. Change-Id: If4a2bdcd45d32eb3a732d266a0f686a4e4c23672 --- gdb/linux-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/linux-nat.c') diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 6a78735..20b03bc 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -204,7 +204,7 @@ struct simple_pid_list int status; struct simple_pid_list *next; }; -struct simple_pid_list *stopped_pids; +static struct simple_pid_list *stopped_pids; /* Whether target_thread_events is in effect. */ static int report_thread_events; -- cgit v1.1