* symtab.c: Remove trailing whitespace throughout the file.

(expand_line_sal): Fix some typos and whitespace.
This commit is contained in:
Doug Evans 2009-03-02 06:33:24 +00:00
parent 15d5fa1607
commit 9af17804e9
2 changed files with 74 additions and 74 deletions

View file

@ -1,5 +1,8 @@
2009-03-01 Doug Evans <dje@google.com>
* symtab.c: Remove trailing whitespace throughout the file.
(expand_line_sal): Fix some typos and whitespace.
* Makefile.in (clean): rm -f $(DEPDIR)/*.
* Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.

View file

@ -4486,13 +4486,13 @@ expand_line_sal (struct symtab_and_line sal)
lineno = sal.line;
/* We meed to find all symtabs for a file which name
is described by sal. We cannot just directly
/* We need to find all symtabs for a file which name
is described by sal. We cannot just directly
iterate over symtabs, since a symtab might not be
yet created. We also cannot iterate over psymtabs,
yet created. We also cannot iterate over psymtabs,
calling PSYMTAB_TO_SYMTAB and working on that symtab,
since PSYMTAB_TO_SYMTAB will return NULL for psymtab
corresponding to an included file. Therefore, we do
corresponding to an included file. Therefore, we do
first pass over psymtabs, reading in those with
the right name. Then, we iterate over symtabs, knowing
that all symtabs we're interested in are loaded. */
@ -4504,11 +4504,10 @@ expand_line_sal (struct symtab_and_line sal)
PSYMTAB_TO_SYMTAB (psymtab);
}
/* For each symtab, we add all pcs to ret.sals. I'm actually
/* For each symtab, we add all pcs to ret.sals. I'm actually
not sure what to do if we have exact match in one symtab,
and non-exact match on another symtab.
*/
and non-exact match on another symtab. */
ALL_SYMTABS (objfile, symtab)
{
if (strcmp (sal.symtab->filename,
@ -4532,7 +4531,6 @@ expand_line_sal (struct symtab_and_line sal)
}
else if (!exact && item->line > lineno
&& (best_item == NULL || item->line < best_item->line))
{
best_item = item;
best_symtab = symtab;
@ -4600,7 +4598,6 @@ All global and static variable names, or those matching REGEXP."));
add_info ("functions", functions_info,
_("All function names, or those matching REGEXP."));
/* FIXME: This command has at least the following problems:
1. It prints builtin types (in a very strange and confusing fashion).
2. It doesn't print right, e.g. with