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 --- gdbserver/ChangeLog | 4 ++++ gdbserver/linux-low.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gdbserver') diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 9d61587..d924e72 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2020-07-21 Simon Marchi + + * linux-low.cc (stopped_pids): Make static. + 2020-07-17 Andrew Burgess * tdesc.cc (allocate_target_description): Add header comment. diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index 9684922..e454933 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc @@ -206,7 +206,7 @@ struct simple_pid_list /* Next in chain. */ struct simple_pid_list *next; }; -struct simple_pid_list *stopped_pids; +static struct simple_pid_list *stopped_pids; /* Trivial list manipulation functions to keep track of a list of new stopped processes. */ -- cgit v1.1