2011-03-01 Michael Snyder <msnyder@vmware.com>
* ada-lang.c (aggregate_assign_others): Rename inner scope variable which shadows function parameter.
This commit is contained in:
parent
a0aa28782e
commit
5ce6495039
2 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
||||||
2011-03-01 Michael Snyder <msnyder@vmware.com>
|
2011-03-01 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
|
* ada-lang.c (aggregate_assign_others): Rename inner scope variable
|
||||||
|
which shadows function parameter.
|
||||||
|
|
||||||
* tracepoint.c (create_tsv_from_upload): Superfluous call
|
* tracepoint.c (create_tsv_from_upload): Superfluous call
|
||||||
to xstrdup. Callee already calls xstrdup.
|
to xstrdup. Callee already calls xstrdup.
|
||||||
|
|
||||||
|
|
|
@ -8717,7 +8717,7 @@ aggregate_assign_others (struct value *container,
|
||||||
LONGEST low, LONGEST high)
|
LONGEST low, LONGEST high)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int expr_pc = *pos+1;
|
int expr_pc = *pos + 1;
|
||||||
|
|
||||||
for (i = 0; i < num_indices - 2; i += 2)
|
for (i = 0; i < num_indices - 2; i += 2)
|
||||||
{
|
{
|
||||||
|
@ -8725,10 +8725,10 @@ aggregate_assign_others (struct value *container,
|
||||||
|
|
||||||
for (ind = indices[i + 1] + 1; ind < indices[i + 2]; ind += 1)
|
for (ind = indices[i + 1] + 1; ind < indices[i + 2]; ind += 1)
|
||||||
{
|
{
|
||||||
int pos;
|
int localpos;
|
||||||
|
|
||||||
pos = expr_pc;
|
localpos = expr_pc;
|
||||||
assign_component (container, lhs, ind, exp, &pos);
|
assign_component (container, lhs, ind, exp, &localpos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ada_evaluate_subexp (NULL, exp, pos, EVAL_SKIP);
|
ada_evaluate_subexp (NULL, exp, pos, EVAL_SKIP);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue