public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] archer-tromey-ambiguous-linespec: remove unused argument to symbol_to_sal
@ 2011-08-16 15:47 tromey
0 siblings, 0 replies; only message in thread
From: tromey @ 2011-08-16 15:47 UTC (permalink / raw)
To: archer-commits
The branch, archer-tromey-ambiguous-linespec has been updated
via 3642ec356b33ddded54158116849cee367f9252f (commit)
from 417683484c90a786dab8c4bd6ef3aef2e91980e6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 3642ec356b33ddded54158116849cee367f9252f
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Aug 16 09:46:16 2011 -0600
remove unused argument to symbol_to_sal
-----------------------------------------------------------------------
Summary of changes:
gdb/linespec.c | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
First 500 lines of diff:
diff --git a/gdb/linespec.c b/gdb/linespec.c
index 938075f..fd99ed7 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -162,8 +162,7 @@ static struct symtabs_and_lines decode_variable (struct linespec_state *self,
char *copy);
static int symbol_to_sal (struct symtab_and_line *result,
- int funfirstline, char *copy,
- struct symbol *sym);
+ int funfirstline, struct symbol *sym);
static struct
symtabs_and_lines symbol_found (int funfirstline,
@@ -2452,7 +2451,7 @@ decode_label (struct linespec_state *self,
{
struct symtab_and_line sal;
- symbol_to_sal (&sal, self->funfirstline, copy, sym);
+ symbol_to_sal (&sal, self->funfirstline, sym);
add_sal_to_sals (result, &sal);
}
}
@@ -2484,7 +2483,6 @@ decode_label (struct linespec_state *self,
struct collect_info
{
- char *initial_name;
struct symtabs_and_lines result;
int funfirstline;
};
@@ -2495,7 +2493,7 @@ collect_symbols (struct symbol *sym, void *data)
struct collect_info *info = data;
struct symtab_and_line sal;
- if (symbol_to_sal (&sal, info->funfirstline, info->initial_name, sym))
+ if (symbol_to_sal (&sal, info->funfirstline, sym))
add_sal_to_sals (&info->result, &sal);
return 1;
@@ -2516,7 +2514,6 @@ decode_variable (struct linespec_state *self, char *copy)
info.result.sals = NULL;
info.result.nelts = 0;
- info.initial_name = copy;
info.funfirstline = self->funfirstline;
cleanup = demangle_for_lookup (copy, current_language->la_language,
@@ -2582,8 +2579,7 @@ decode_variable (struct linespec_state *self, char *copy)
static int
symbol_to_sal (struct symtab_and_line *result,
- int funfirstline, char *copy,
- struct symbol *sym)
+ int funfirstline, struct symbol *sym)
{
if (SYMBOL_CLASS (sym) == LOC_BLOCK)
{
@@ -2636,7 +2632,7 @@ symbol_found (int funfirstline, struct linespec_result *canonical, char *copy,
xmalloc (sizeof (struct symtab_and_line));
values.nelts = 1;
- symbol_to_sal (&values.sals[0], funfirstline, copy, sym);
+ symbol_to_sal (&values.sals[0], funfirstline, sym);
/* Don't use the SYMBOL_LINE; if used at all it points to
the line containing the parameters or thereabouts, not
@@ -2663,7 +2659,7 @@ symbol_found (int funfirstline, struct linespec_result *canonical, char *copy,
xmalloc (sizeof (struct symtab_and_line));
values.nelts = 1;
- symbol_to_sal (&values.sals[0], funfirstline, copy, sym);
+ symbol_to_sal (&values.sals[0], funfirstline, sym);
if (canonical)
{
@@ -2691,7 +2687,7 @@ symbol_found (int funfirstline, struct linespec_result *canonical, char *copy,
xmalloc (sizeof (struct symtab_and_line));
values.nelts = 1;
- symbol_to_sal (&values.sals[0], funfirstline, copy, sym);
+ symbol_to_sal (&values.sals[0], funfirstline, sym);
return values;
}
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-16 15:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-16 15:47 [SCM] archer-tromey-ambiguous-linespec: remove unused argument to symbol_to_sal tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).