This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH RFC] Protoize os9kread.c, osfsolib.c
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH RFC] Protoize os9kread.c, osfsolib.c
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Mon, 25 Sep 2000 21:44:57 -0700
More protoization...
Note to proofreaders: In all three cases in the patch below, the
comments were elided. For os9k_symfile_read(), I didn't see any FIXME
comments which pertained to the ``mainline'' parameter. In the case
of os9k_end_psymtab, it appears that the comment represented
additional, now deleted parameters, or perhaps parameters which the
author might have wanted to add, but didn't. And in the case of
find_solib(), the description of ``so_list_ptr'' was adequately
covered by the prefatory comment.
* os9kread.c (os9k_symfile_read, os9k_end_psymtab): Protoize.
* osfsolib.c (find_solib): Protoize.
Index: os9kread.c
===================================================================
RCS file: /cvs/src/src/gdb/os9kread.c,v
retrieving revision 1.5
diff -u -r1.5 os9kread.c
--- os9kread.c 2000/07/30 01:48:26 1.5
+++ os9kread.c 2000/09/26 04:34:12
@@ -312,9 +312,7 @@
table (as opposed to a shared lib or dynamically loaded file). */
static void
-os9k_symfile_read (objfile, mainline)
- struct objfile *objfile;
- int mainline; /* FIXME comments above */
+os9k_symfile_read (struct objfile *objfile, int mainline)
{
bfd *sym_bfd;
struct cleanup *back_to;
@@ -987,16 +985,11 @@
FIXME: List variables and peculiarities of same. */
static struct partial_symtab *
-os9k_end_psymtab (pst, include_list, num_includes, capping_symbol_cnt,
- capping_text, dependency_list, number_dependencies)
- struct partial_symtab *pst;
- char **include_list;
- int num_includes;
- int capping_symbol_cnt;
- CORE_ADDR capping_text;
- struct partial_symtab **dependency_list;
- int number_dependencies;
- /* struct partial_symbol *capping_global, *capping_static; */
+os9k_end_psymtab (struct partial_symtab *pst, char **include_list,
+ int num_includes, int capping_symbol_cnt,
+ CORE_ADDR capping_text,
+ struct partial_symtab **dependency_list,
+ int number_dependencies)
{
int i;
struct partial_symtab *p1;
Index: osfsolib.c
===================================================================
RCS file: /cvs/src/src/gdb/osfsolib.c,v
retrieving revision 1.5
diff -u -r1.5 osfsolib.c
--- osfsolib.c 2000/07/30 01:48:26 1.5
+++ osfsolib.c 2000/09/26 04:34:13
@@ -507,8 +507,7 @@
*/
static struct so_list *
-find_solib (so_list_ptr)
- struct so_list *so_list_ptr; /* Last lm or NULL for first one */
+find_solib (struct so_list *so_list_ptr)
{
struct so_list *so_list_next = NULL;
struct link_map *lm = NULL;