aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-04-27 18:32:33 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-04-27 18:32:33 +0000
commita0911fd0206cb727a3fd2f9b1227121bdd616838 (patch)
tree4712a1deed92a21b69a86ab3170b4d4c695a816e /gdb/procfs.c
parent9009e1ae5f13e12f572907c251f503fba53c9966 (diff)
downloadgdb-a0911fd0206cb727a3fd2f9b1227121bdd616838.zip
gdb-a0911fd0206cb727a3fd2f9b1227121bdd616838.tar.gz
gdb-a0911fd0206cb727a3fd2f9b1227121bdd616838.tar.bz2
* proc-utils.h (proc_prettyprint_signalset): New prototype.
(proc_prettyprint_signal): Likewise. (proc_prettyprint_faultset): Likewise. (proc_prettyprint_fault): Likewise. (proc_prettyprint_actionset): Likewise. (proc_prettyprint_flags): Move to new proc-flags.c section. (proc_prettyfprint_flags): New prototype. * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes. (proc_syscall, proc_cursig): Likewise. (proc_set_kill_on_last_close): Likewise. (proc_unset_kill_on_last_close): Likewise. (proc_set_watchpoint): Make static. (proc_delete_dead_threads): Likewise. (procfs_set_watchpoint): Likewise. (_initialize_procfs): Add prototype. * proc-events.c: Include proc-utils.h. (init_syscall_table): Make static. * proc-api.c (_initialize_proc_api): Add prototype. * proc-flags.c: Include proc-utils.h.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index d7c2946..e39e121 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -1023,8 +1023,14 @@ int proc_get_status (procinfo * pi);
long proc_flags (procinfo * pi);
int proc_why (procinfo * pi);
int proc_what (procinfo * pi);
+int proc_nsysarg (procinfo * pi);
+long *proc_sysargs (procinfo * pi);
+int proc_syscall (procinfo * pi);
+long proc_cursig (struct procinfo * pi);
int proc_set_run_on_last_close (procinfo * pi);
int proc_unset_run_on_last_close (procinfo * pi);
+int proc_set_kill_on_last_close (procinfo * pi);
+int proc_unset_kill_on_last_close (procinfo * pi);
int proc_set_inherit_on_fork (procinfo * pi);
int proc_unset_inherit_on_fork (procinfo * pi);
int proc_set_async (procinfo * pi);
@@ -2673,7 +2679,7 @@ procfs_address_to_host_pointer (CORE_ADDR addr)
}
#endif
-int
+static int
proc_set_watchpoint (procinfo *pi, CORE_ADDR addr, int len, int wflags)
{
#if !defined (PCWATCH) && !defined (PIOCSWATCH)
@@ -2943,7 +2949,7 @@ proc_get_current_thread (procinfo *pi)
unfortunately requires a different method on every OS. Returns
non-zero for success, zero for failure. */
-int
+static int
proc_delete_dead_threads (procinfo *parent, procinfo *thread, void *ignore)
{
if (thread && parent) /* sanity */
@@ -5019,7 +5025,7 @@ procfs_pid_to_str (struct target_ops *ops, ptid_t ptid)
/* Insert a watchpoint. */
-int
+static int
procfs_set_watchpoint (ptid_t ptid, CORE_ADDR addr, int len, int rwflag,
int after)
{
@@ -5573,6 +5579,9 @@ proc_untrace_sysexit_cmd (char *args, int from_tty)
}
+/* Provide a prototype to silence -Wmissing-prototypes. */
+extern void _initialize_procfs (void);
+
void
_initialize_procfs (void)
{