* dbxread.c (read_dbx_symtab): Reformat comments to 80 columns.

Move local var def closer to only use.
This commit is contained in:
Doug Evans 2008-01-28 23:43:57 +00:00
parent 9ce5d3bb2e
commit 131fe1bb9d
2 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,8 @@
2008-01-28 Doug Evans <dje@google.com> 2008-01-28 Doug Evans <dje@google.com>
* dbxread.c (read_dbx_symtab): Fix indentation. * dbxread.c (read_dbx_symtab): Fix indentation.
Reformat comments to 80 columns.
Move local var def closer to only use.
2008-01-28 Daniel Jacobowitz <dan@codesourcery.com> 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>

View File

@ -1,6 +1,6 @@
/* Read dbx symbol tables and convert to internal format, for GDB. /* Read dbx symbol tables and convert to internal format, for GDB.
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004. 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2008.
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GDB. This file is part of GDB.
@ -1312,7 +1312,6 @@ read_dbx_symtab (struct objfile *objfile)
switch (nlist.n_type) switch (nlist.n_type)
{ {
char *p;
/* /*
* Standard, external, non-debugger, symbols * Standard, external, non-debugger, symbols
*/ */
@ -1532,8 +1531,8 @@ read_dbx_symtab (struct objfile *objfile)
} }
/* Some other compilers (C++ ones in particular) emit useless /* Some other compilers (C++ ones in particular) emit useless
SOs for non-existant .c files. We ignore all subsequent SOs that SOs for non-existant .c files. We ignore all subsequent SOs
immediately follow the first. */ that immediately follow the first. */
if (!pst) if (!pst)
{ {
@ -1657,6 +1656,8 @@ pos %d"),
suspect not. */ suspect not. */
case N_M2C: /* I suspect that I can ignore this here. */ case N_M2C: /* I suspect that I can ignore this here. */
case N_SCOPE: /* Same. */ case N_SCOPE: /* Same. */
{
char *p;
namestring = set_namestring (objfile, nlist); namestring = set_namestring (objfile, nlist);
@ -1678,8 +1679,6 @@ pos %d"),
if (!p) if (!p)
continue; /* Not a debugging symbol. */ continue; /* Not a debugging symbol. */
/* Main processing section for debugging symbols which /* Main processing section for debugging symbols which
the initial read through the symbol tables needs to worry the initial read through the symbol tables needs to worry
about. If we reach this point, the symbol which we are about. If we reach this point, the symbol which we are
@ -1703,6 +1702,7 @@ pos %d"),
0, nlist.n_value, 0, nlist.n_value,
psymtab_language, objfile); psymtab_language, objfile);
continue; continue;
case 'G': case 'G':
nlist.n_value += ANOFFSET (objfile->section_offsets, nlist.n_value += ANOFFSET (objfile->section_offsets,
data_sect_index); data_sect_index);
@ -1743,6 +1743,7 @@ pos %d"),
} }
} }
goto check_enum; goto check_enum;
case 't': case 't':
if (p != namestring) /* a name is there, not just :T... */ if (p != namestring) /* a name is there, not just :T... */
{ {
@ -1823,6 +1824,7 @@ pos %d"),
} }
} }
continue; continue;
case 'c': case 'c':
/* Constant, e.g. from "const" in Pascal. */ /* Constant, e.g. from "const" in Pascal. */
add_psymbol_to_list (namestring, p - namestring, add_psymbol_to_list (namestring, p - namestring,
@ -2008,6 +2010,7 @@ pos %d"),
know about. */ know about. */
continue; continue;
} }
}
case N_EXCL: case N_EXCL:
@ -2149,7 +2152,6 @@ pos %d"),
is the address relative to which its symbols are (incremental) or 0 is the address relative to which its symbols are (incremental) or 0
(normal). */ (normal). */
static struct partial_symtab * static struct partial_symtab *
start_psymtab (struct objfile *objfile, char *filename, CORE_ADDR textlow, start_psymtab (struct objfile *objfile, char *filename, CORE_ADDR textlow,
int ldsymoff, struct partial_symbol **global_syms, int ldsymoff, struct partial_symbol **global_syms,