aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-01-05 19:36:03 +0800
committerYao Qi <yao@codesourcery.com>2014-01-07 11:01:37 +0800
commitf04a82ef62e9f32502772f64d2eac478b96ef566 (patch)
tree110df75d5b7a875398d8f94f45d8f431582bf4b6
parentd57dda0ab3da976aeedce4a5c792a584d3fb9ec0 (diff)
downloadgdb-f04a82ef62e9f32502772f64d2eac478b96ef566.zip
gdb-f04a82ef62e9f32502772f64d2eac478b96ef566.tar.gz
gdb-f04a82ef62e9f32502772f64d2eac478b96ef566.tar.bz2
Make functions static.
gdb: 2014-01-07 Yao Qi <yao@codesourcery.com> * gnu-nat.c (make_inf) Update declaration. (make_inf): Make it static. (inf_set_traced): Likewise. (inf_port_to_thread, inf_task_died_status): Likewise.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/gnu-nat.c10
2 files changed, 12 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6d49fec..1568a9e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2014-01-07 Yao Qi <yao@codesourcery.com>
+ * gnu-nat.c (make_inf) Update declaration.
+ (make_inf): Make it static.
+ (inf_set_traced): Likewise.
+ (inf_port_to_thread, inf_task_died_status): Likewise.
+
+2014-01-07 Yao Qi <yao@codesourcery.com>
+
* gnu-nat.c (inf_tid_to_proc): Remove declaration.
2014-01-07 Yao Qi <yao@codesourcery.com>
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 7e58b4f..68e7459 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -87,7 +87,7 @@ int gnu_debug_flag = 0;
/* Forward decls */
-struct inf *make_inf ();
+static struct inf *make_inf ();
void inf_clear_wait (struct inf *inf);
void inf_cleanup (struct inf *inf);
void inf_startup (struct inf *inf, int pid);
@@ -637,7 +637,7 @@ _proc_free (struct proc *proc)
}
-struct inf *
+static struct inf *
make_inf (void)
{
struct inf *inf = xmalloc (sizeof (struct inf));
@@ -873,7 +873,7 @@ inf_validate_task_sc (struct inf *inf)
is. If INF is running, the resume_sc count of INF's threads will
be modified, and the signal thread will briefly be run to change
the trace state. */
-void
+static void
inf_set_traced (struct inf *inf, int on)
{
if (on == inf->traced)
@@ -974,7 +974,7 @@ inf_tid_to_thread (struct inf *inf, int tid)
}
/* Converts a thread port to a struct proc. */
-struct proc *
+static struct proc *
inf_port_to_thread (struct inf *inf, mach_port_t port)
{
struct proc *thread = inf->threads;
@@ -1742,7 +1742,7 @@ S_exception_raise_request (mach_port_t port, mach_port_t reply_port,
/* Fill in INF's wait field after a task has died without giving us more
detailed information. */
-void
+static void
inf_task_died_status (struct inf *inf)
{
warning (_("Pid %d died with unknown exit status, using SIGKILL."),