diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2003-12-03 03:39:58 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2003-12-03 03:39:58 +0000 |
commit | 24361518917bcfdb764a5cfe6caa7f4ee8d3f81d (patch) | |
tree | 9072477b054637affb48b1baf4f3ead318b77271 /gas/stabs.c | |
parent | 021d913e2ed9aa3cf3b061152f708d3d40f79dbd (diff) | |
download | gdb-24361518917bcfdb764a5cfe6caa7f4ee8d3f81d.zip gdb-24361518917bcfdb764a5cfe6caa7f4ee8d3f81d.tar.gz gdb-24361518917bcfdb764a5cfe6caa7f4ee8d3f81d.tar.bz2 |
* messages.c: Convert to ISO-C.
* obj.h: Likewise.
* output-file.c: Likewise.
* output-file.h: Likewise.
* sb.c: Likewise.
* sb.h: Likewise.
* stabs.c: Likewise.
* subsegs.c: Likewise.
* subsegs.h: Likewise.
* tc.h: Likewise.
Diffstat (limited to 'gas/stabs.c')
-rw-r--r-- | gas/stabs.c | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/gas/stabs.c b/gas/stabs.c index 33b14c1..3d32729 100644 --- a/gas/stabs.c +++ b/gas/stabs.c @@ -34,8 +34,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA int outputting_stabs_line_debug = 0; -static void s_stab_generic PARAMS ((int, char *, char *)); -static void generate_asm_file PARAMS ((int, char *)); +static void s_stab_generic (int, char *, char *); +static void generate_asm_file (int, char *); /* Allow backends to override the names used for the stab sections. */ #ifndef STAB_SECTION_NAME @@ -80,9 +80,7 @@ static const char *current_function_label; #endif unsigned int -get_stab_string_offset (string, stabstr_secname) - const char *string; - const char *stabstr_secname; +get_stab_string_offset (const char *string, const char *stabstr_secname) { unsigned int length; unsigned int retval; @@ -179,10 +177,7 @@ aout_process_stab (what, string, type, other, desc) kinds of stab sections. */ static void -s_stab_generic (what, stab_secname, stabstr_secname) - int what; - char *stab_secname; - char *stabstr_secname; +s_stab_generic (int what, char *stab_secname, char *stabstr_secname) { long longint; char *string, *saved_string_obstack_end; @@ -405,8 +400,7 @@ s_stab_generic (what, stab_secname, stabstr_secname) /* Regular stab directive. */ void -s_stab (what) - int what; +s_stab (int what) { s_stab_generic (what, STAB_SECTION_NAME, STAB_STRING_SECTION_NAME); } @@ -414,8 +408,7 @@ s_stab (what) /* "Extended stabs", used in Solaris only now. */ void -s_xstab (what) - int what; +s_xstab (int what) { int length; char *stab_secname, *stabstr_secname; @@ -496,7 +489,7 @@ s_desc (ignore) /* Generate stabs debugging information to denote the main source file. */ void -stabs_generate_asm_file () +stabs_generate_asm_file (void) { char *file; unsigned int lineno; @@ -518,9 +511,7 @@ stabs_generate_asm_file () TYPE is one of N_SO, N_SOL. */ static void -generate_asm_file (type, file) - int type; - char *file; +generate_asm_file (int type, char *file) { static char *last_file; static int label_count; @@ -587,7 +578,7 @@ generate_asm_file (type, file) used to produce debugging information for an assembler file. */ void -stabs_generate_asm_lineno () +stabs_generate_asm_lineno (void) { static int label_count; char *hold; @@ -664,9 +655,7 @@ stabs_generate_asm_lineno () All assembler functions are assumed to have return type `void'. */ void -stabs_generate_asm_func (funcname, startlabname) - const char *funcname; - const char *startlabname; +stabs_generate_asm_func (const char *funcname, const char *startlabname) { static int void_emitted_p; char *hold = input_line_pointer; @@ -696,9 +685,8 @@ stabs_generate_asm_func (funcname, startlabname) /* Emit a stab to record the end of a function. */ void -stabs_generate_asm_endfunc (funcname, startlabname) - const char *funcname ATTRIBUTE_UNUSED; - const char *startlabname; +stabs_generate_asm_endfunc (const char *funcname ATTRIBUTE_UNUSED, + const char *startlabname) { static int label_count; char *hold = input_line_pointer; |