* symtab.c: Remove trailing whitespace throughout the file.
(expand_line_sal): Fix some typos and whitespace.
This commit is contained in:
parent
15d5fa1607
commit
9af17804e9
2 changed files with 74 additions and 74 deletions
|
@ -1,5 +1,8 @@
|
||||||
2009-03-01 Doug Evans <dje@google.com>
|
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 (clean): rm -f $(DEPDIR)/*.
|
||||||
|
|
||||||
* Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
|
* Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
|
||||||
|
|
|
@ -4486,7 +4486,7 @@ expand_line_sal (struct symtab_and_line sal)
|
||||||
|
|
||||||
lineno = sal.line;
|
lineno = sal.line;
|
||||||
|
|
||||||
/* We meed to find all symtabs for a file which name
|
/* We need to find all symtabs for a file which name
|
||||||
is described by sal. We cannot just directly
|
is described by sal. We cannot just directly
|
||||||
iterate over symtabs, since a symtab might not be
|
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,
|
||||||
|
@ -4504,11 +4504,10 @@ expand_line_sal (struct symtab_and_line sal)
|
||||||
PSYMTAB_TO_SYMTAB (psymtab);
|
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,
|
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)
|
ALL_SYMTABS (objfile, symtab)
|
||||||
{
|
{
|
||||||
if (strcmp (sal.symtab->filename,
|
if (strcmp (sal.symtab->filename,
|
||||||
|
@ -4532,7 +4531,6 @@ expand_line_sal (struct symtab_and_line sal)
|
||||||
}
|
}
|
||||||
else if (!exact && item->line > lineno
|
else if (!exact && item->line > lineno
|
||||||
&& (best_item == NULL || item->line < best_item->line))
|
&& (best_item == NULL || item->line < best_item->line))
|
||||||
|
|
||||||
{
|
{
|
||||||
best_item = item;
|
best_item = item;
|
||||||
best_symtab = symtab;
|
best_symtab = symtab;
|
||||||
|
@ -4600,7 +4598,6 @@ All global and static variable names, or those matching REGEXP."));
|
||||||
add_info ("functions", functions_info,
|
add_info ("functions", functions_info,
|
||||||
_("All function names, or those matching REGEXP."));
|
_("All function names, or those matching REGEXP."));
|
||||||
|
|
||||||
|
|
||||||
/* FIXME: This command has at least the following problems:
|
/* FIXME: This command has at least the following problems:
|
||||||
1. It prints builtin types (in a very strange and confusing fashion).
|
1. It prints builtin types (in a very strange and confusing fashion).
|
||||||
2. It doesn't print right, e.g. with
|
2. It doesn't print right, e.g. with
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue