This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA/commit] not-procfs.c: Make procfs_find_new_threads and procfs_pid_to_str static.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: aristovski at qnx dot com, Joel Brobecker <brobecker at adacore dot com>
- Date: Wed, 2 May 2012 16:17:10 -0700
- Subject: [RFA/commit] not-procfs.c: Make procfs_find_new_threads and procfs_pid_to_str static.
Hello,
Another set of procfs_* functions that appear to be used only locally,
and thus made static.
gdb/ChangeLog:
* nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
Make static.
The problem is that I cannot rebuild these files. It seems relatively
obvious, so I will commit in a few days unless there are some objections.
But if someone can at least rebuild GDB with that patch, that'd be great!
Thank you,
--
Joel
---
gdb/nto-procfs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index bb36311..82d2b58 100644
--- a/gdb/nto-procfs.c
+++ b/gdb/nto-procfs.c
@@ -312,7 +312,7 @@ update_thread_private_data (struct thread_info *new_thread,
#endif /* _NTO_VERSION */
}
-void
+static void
procfs_find_new_threads (struct target_ops *ops)
{
procfs_status status;
@@ -1353,7 +1353,7 @@ procfs_thread_info (pid_t pid, short tid)
return NULL;
}
-char *
+static char *
procfs_pid_to_str (struct target_ops *ops, ptid_t ptid)
{
static char buf[1024];
--
1.7.1