aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-07-21 16:49:35 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-07-21 16:49:36 -0400
commit05c309a8aeb8060fdcb9a05bbcdca2f5f1be61d7 (patch)
treefb3f21d98ee420d300668664b4ca0ecaabab517e /gdb
parentd1fd641e0b48e75401311528450eb1ddfb3a1fa0 (diff)
downloadgdb-05c309a8aeb8060fdcb9a05bbcdca2f5f1be61d7.zip
gdb-05c309a8aeb8060fdcb9a05bbcdca2f5f1be61d7.tar.gz
gdb-05c309a8aeb8060fdcb9a05bbcdca2f5f1be61d7.tar.bz2
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
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/linux-nat.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e6202de..b15a3a4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
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;