* symfile.c (add_symbol_file_command): Properly reformat "else if"

code.
	* coffread.c (coff_symtab_read): Ditto.
This commit is contained in:
Elena Zannoni 2000-06-12 14:05:44 +00:00
parent 80b756a06c
commit 34e924c066
3 changed files with 59 additions and 58 deletions

View file

@ -1,3 +1,9 @@
2000-06-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* symfile.c (add_symbol_file_command): Properly reformat "else if"
code.
* coffread.c (coff_symtab_read): Ditto.
Mon Jun 12 15:24:04 2000 Andrew Cagney <cagney@b1.cygnus.com> Mon Jun 12 15:24:04 2000 Andrew Cagney <cagney@b1.cygnus.com>
* Makefile.in (SER_HARDWIRE): Set using autoconf. * Makefile.in (SER_HARDWIRE): Set using autoconf.

View file

@ -982,15 +982,13 @@ coff_symtab_read (symtab_offset, nsyms, objfile)
SMASH_TEXT_ADDRESS (tmpaddr); SMASH_TEXT_ADDRESS (tmpaddr);
#endif #endif
} }
else else if (sec == SECT_OFF_DATA (objfile))
if (sec == SECT_OFF_DATA (objfile))
{ {
ms_type = ms_type =
cs->c_sclass == C_EXT || cs->c_sclass == C_THUMBEXT ? cs->c_sclass == C_EXT || cs->c_sclass == C_THUMBEXT ?
mst_data : mst_file_data; mst_data : mst_file_data;
} }
else else if (sec == SECT_OFF_BSS (objfile))
if (sec == SECT_OFF_BSS (objfile))
{ {
ms_type = ms_type =
cs->c_sclass == C_EXT || cs->c_sclass == C_THUMBEXT ? cs->c_sclass == C_EXT || cs->c_sclass == C_THUMBEXT ?

View file

@ -1492,8 +1492,7 @@ add_symbol_file_command (args, from_tty)
filename = tilde_expand (arg); filename = tilde_expand (arg);
my_cleanups = make_cleanup (free, filename); my_cleanups = make_cleanup (free, filename);
} }
else else if (argcnt == 1)
if (argcnt == 1)
{ {
/* The second argument is always the text address at which /* The second argument is always the text address at which
to load the program. */ to load the program. */
@ -1510,11 +1509,9 @@ add_symbol_file_command (args, from_tty)
{ {
if (strcmp (arg, "-mapped") == 0) if (strcmp (arg, "-mapped") == 0)
flags |= OBJF_MAPPED; flags |= OBJF_MAPPED;
else else if (strcmp (arg, "-readnow") == 0)
if (strcmp (arg, "-readnow") == 0)
flags |= OBJF_READNOW; flags |= OBJF_READNOW;
else else if (strcmp (arg, "-s") == 0)
if (strcmp (arg, "-s") == 0)
{ {
if (section_index >= SECT_OFF_MAX) if (section_index >= SECT_OFF_MAX)
error ("Too many sections specified."); error ("Too many sections specified.");