diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
commit | fba45db2faf619e71856ee38ec63949c0ef6903e (patch) | |
tree | 107efc21d2b12f54d84b59e75251449e3d5fd096 /gdb/irix5-nat.c | |
parent | Fix formatting (diff) | |
download | binutils-gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.gz binutils-gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.bz2 binutils-gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.zip |
Protoization.
Diffstat (limited to 'gdb/irix5-nat.c')
-rw-r--r-- | gdb/irix5-nat.c | 56 |
1 files changed, 19 insertions, 37 deletions
diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index ea37b8c23b4..dcef6ad6395 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -50,8 +50,7 @@ static void fetch_core_registers (char *, unsigned int, int, CORE_ADDR); */ void -supply_gregset (gregsetp) - gregset_t *gregsetp; +supply_gregset (gregset_t *gregsetp) { register int regi; register greg_t *regp = &(*gregsetp)[0]; @@ -72,9 +71,7 @@ supply_gregset (gregsetp) } void -fill_gregset (gregsetp, regno) - gregset_t *gregsetp; - int regno; +fill_gregset (gregset_t *gregsetp, int regno) { int regi; register greg_t *regp = &(*gregsetp)[0]; @@ -119,8 +116,7 @@ fill_gregset (gregsetp, regno) */ void -supply_fpregset (fpregsetp) - fpregset_t *fpregsetp; +supply_fpregset (fpregset_t *fpregsetp) { register int regi; static char zerobuf[MAX_REGISTER_RAW_SIZE] = @@ -139,9 +135,7 @@ supply_fpregset (fpregsetp) } void -fill_fpregset (fpregsetp, regno) - fpregset_t *fpregsetp; - int regno; +fill_fpregset (fpregset_t *fpregsetp, int regno) { int regi; char *from, *to; @@ -169,8 +163,7 @@ fill_fpregset (fpregsetp, regno) This routine returns true on success. */ int -get_longjmp_target (pc) - CORE_ADDR *pc; +get_longjmp_target (CORE_ADDR *pc) { char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT]; CORE_ADDR jb_addr; @@ -511,7 +504,7 @@ solib_map_sections (void *arg) */ static CORE_ADDR -locate_base () +locate_base (void) { struct minimal_symbol *msymbol; CORE_ADDR address = 0; @@ -542,7 +535,7 @@ locate_base () */ static struct link_map * -first_link_map_member () +first_link_map_member (void) { struct obj_list *listp; struct obj_list list_old; @@ -610,8 +603,7 @@ first_link_map_member () */ static struct link_map * -next_link_map_member (so_list_ptr) - struct so_list *so_list_ptr; +next_link_map_member (struct so_list *so_list_ptr) { struct link_map *lm = &so_list_ptr->lm; CORE_ADDR next_lladdr = lm->l_next; @@ -670,9 +662,7 @@ next_link_map_member (so_list_ptr) */ static void -xfer_link_map_member (so_list_ptr, lm) - struct so_list *so_list_ptr; - struct link_map *lm; +xfer_link_map_member (struct so_list *so_list_ptr, struct link_map *lm) { struct obj_list list_old; CORE_ADDR lladdr = lm->l_lladdr; @@ -868,10 +858,7 @@ symbol_add_stub (void *arg) */ void -solib_add (arg_string, from_tty, target) - char *arg_string; - int from_tty; - struct target_ops *target; +solib_add (char *arg_string, int from_tty, struct target_ops *target) { register struct so_list *so = NULL; /* link map state variable */ @@ -968,9 +955,7 @@ solib_add (arg_string, from_tty, target) */ static void -info_sharedlibrary_command (ignore, from_tty) - char *ignore; - int from_tty; +info_sharedlibrary_command (char *ignore, int from_tty) { register struct so_list *so = NULL; /* link map state variable */ int header_done = 0; @@ -1031,8 +1016,7 @@ info_sharedlibrary_command (ignore, from_tty) */ char * -solib_address (address) - CORE_ADDR address; +solib_address (CORE_ADDR address) { register struct so_list *so = 0; /* link map state variable */ @@ -1051,7 +1035,7 @@ solib_address (address) /* Called by free_all_symtabs */ void -clear_solib () +clear_solib (void) { struct so_list *next; char *bfd_filename; @@ -1103,7 +1087,7 @@ clear_solib () */ static int -disable_break () +disable_break (void) { int status = 1; @@ -1145,7 +1129,7 @@ disable_break () */ static int -enable_break () +enable_break (void) { if (symfile_objfile != NULL && target_insert_breakpoint (symfile_objfile->ei.entry_point, @@ -1211,7 +1195,7 @@ enable_break () */ void -solib_create_inferior_hook () +solib_create_inferior_hook (void) { if (!enable_break ()) { @@ -1276,16 +1260,14 @@ solib_create_inferior_hook () */ static void -sharedlibrary_command (args, from_tty) - char *args; - int from_tty; +sharedlibrary_command (char *args, int from_tty) { dont_repeat (); solib_add (args, from_tty, (struct target_ops *) 0); } void -_initialize_solib () +_initialize_solib (void) { add_com ("sharedlibrary", class_files, sharedlibrary_command, "Load shared object library symbols for files matching REGEXP."); @@ -1318,7 +1300,7 @@ static struct core_fns irix5_core_fns = }; void -_initialize_core_irix5 () +_initialize_core_irix5 (void) { add_core_fns (&irix5_core_fns); } |