This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]