aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-09-13 01:55:17 +0000
committerKevin Buettner <kevinb@redhat.com>2000-09-13 01:55:17 +0000
commit064002de2b47fd7dc86feefc50dd489ca110cff0 (patch)
treeb04d10ac289e9b05026602fed985572f84f2491b
parent78f0949be7cc59219063bf349b1d260807a6a254 (diff)
downloadgdb-064002de2b47fd7dc86feefc50dd489ca110cff0.zip
gdb-064002de2b47fd7dc86feefc50dd489ca110cff0.tar.gz
gdb-064002de2b47fd7dc86feefc50dd489ca110cff0.tar.bz2
Protoization.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/lin-thread.c18
-rw-r--r--gdb/linux-thread.c4
3 files changed, 12 insertions, 16 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4085e75..0524d04 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2000-09-12 Kevin Buettner <kevinb@redhat.com>
+ * lin-thread.c (threadlist_iter, get_lwp_from_thread_id,
+ thread_db_xfer_memory): Protoize.
+ * linux-thread.c (iterate_active_threads): Protoize.
+
+2000-09-12 Kevin Buettner <kevinb@redhat.com>
+
* objfiles.c (objfile_relocate): Don't assume that offsets
associated with one of SECT_OFF_TEXT, SECT_OFF_DATA, or
SECT_OFF_BSS will be adequate for relocating all of the
diff --git a/gdb/lin-thread.c b/gdb/lin-thread.c
index 37d8ef4..3f36bd0 100644
--- a/gdb/lin-thread.c
+++ b/gdb/lin-thread.c
@@ -813,11 +813,8 @@ next_pending_event (void)
}
static void
-threadlist_iter (func, data, state, type)
- int (*func) ();
- void *data;
- td_thr_state_e state;
- td_thr_type_e type;
+threadlist_iter (int (*func) (), void *data, td_thr_state_e state,
+ td_thr_type_e type)
{
int i;
@@ -1149,8 +1146,7 @@ get_lwp_from_thread_handle (td_thrhandle_t *th)
*/
static int /* lwpid_t or pid_t */
-get_lwp_from_thread_id (tid)
- int tid; /* thread_t? */
+get_lwp_from_thread_id (int tid /* thread_t? */)
{
td_thrhandle_t th;
td_err_e ret;
@@ -1218,12 +1214,8 @@ thread_db_files_info (struct target_ops *tgt_vector)
*/
static int
-thread_db_xfer_memory (memaddr, myaddr, len, dowrite, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int dowrite;
- struct target_ops *target; /* ignored */
+thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
+ struct target_ops *target)
{
struct cleanup *old_chain;
int ret;
diff --git a/gdb/linux-thread.c b/gdb/linux-thread.c
index 3cf8433..054188d 100644
--- a/gdb/linux-thread.c
+++ b/gdb/linux-thread.c
@@ -568,9 +568,7 @@ restore_all_signals (void)
If ALL is non-zero, process all threads.
If ALL is zero, skip threads with pending status. */
static void
-iterate_active_threads (func, all)
- void (*func)(int);
- int all;
+iterate_active_threads (void (*func) (int), int all)
{
CORE_ADDR descr;
int pid;