gdb, gdbserver: make stopped_pids global variables static
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 21 Jul 2020 20:49:35 +0000 (16:49 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 21 Jul 2020 20:49:36 +0000 (16:49 -0400)
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/ChangeLog
gdb/linux-nat.c
gdbserver/ChangeLog
gdbserver/linux-low.cc

index e6202de248a6d61af210a202d9043d2d6265840c..b15a3a4e25f46729a38de200c7f2501c894a61cb 100644 (file)
@@ -1,3 +1,7 @@
+2020-07-21  Simon Marchi  <simon.marchi@efficios.com>
+
+       * linux-nat.c (stopped_pids): Make static.
+
 2020-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
 
        PR ada/26235
index 6a78735018c1b58b9a4bfd564d1877e2f9d8b714..20b03bc2ba95fd0a83ef8835276000185591b01c 100644 (file)
@@ -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;
index 9d615870d17741326ddd9afdc25352e66343e818..d924e7231f45cb61dc6e7e0d8fbefbeeb0d550fb 100644 (file)
@@ -1,3 +1,7 @@
+2020-07-21  Simon Marchi  <simon.marchi@efficios.com>
+
+       * linux-low.cc (stopped_pids): Make static.
+
 2020-07-17  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * tdesc.cc (allocate_target_description): Add header comment.
index 9684922d1a1026a09cde6d43a55007a3947928ea..e45493339d2539e4e60df9a0422c120478d0e18f 100644 (file)
@@ -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.  */
This page took 0.041818 seconds and 4 git commands to generate.