breakpoint: -Wshadow warning fix
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
parent
9161b5fc5c
commit
83ebddd519
|
@ -105,7 +105,7 @@ fail:
|
||||||
}
|
}
|
||||||
|
|
||||||
/* free up a breakpoint */
|
/* free up a breakpoint */
|
||||||
static void breakpoint_free(struct target *target, struct breakpoint *breakpoint_remove)
|
static void breakpoint_free(struct target *target, struct breakpoint *breakpoint_to_remove)
|
||||||
{
|
{
|
||||||
struct breakpoint *breakpoint = target->breakpoints;
|
struct breakpoint *breakpoint = target->breakpoints;
|
||||||
struct breakpoint **breakpoint_p = &target->breakpoints;
|
struct breakpoint **breakpoint_p = &target->breakpoints;
|
||||||
|
@ -113,7 +113,7 @@ static void breakpoint_free(struct target *target, struct breakpoint *breakpoint
|
||||||
|
|
||||||
while (breakpoint)
|
while (breakpoint)
|
||||||
{
|
{
|
||||||
if (breakpoint == breakpoint_remove)
|
if (breakpoint == breakpoint_to_remove)
|
||||||
break;
|
break;
|
||||||
breakpoint_p = &breakpoint->next;
|
breakpoint_p = &breakpoint->next;
|
||||||
breakpoint = breakpoint->next;
|
breakpoint = breakpoint->next;
|
||||||
|
@ -246,7 +246,7 @@ bye:
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void watchpoint_free(struct target *target, struct watchpoint *watchpoint_remove)
|
static void watchpoint_free(struct target *target, struct watchpoint *watchpoint_to_remove)
|
||||||
{
|
{
|
||||||
struct watchpoint *watchpoint = target->watchpoints;
|
struct watchpoint *watchpoint = target->watchpoints;
|
||||||
struct watchpoint **watchpoint_p = &target->watchpoints;
|
struct watchpoint **watchpoint_p = &target->watchpoints;
|
||||||
|
@ -254,7 +254,7 @@ static void watchpoint_free(struct target *target, struct watchpoint *watchpoint
|
||||||
|
|
||||||
while (watchpoint)
|
while (watchpoint)
|
||||||
{
|
{
|
||||||
if (watchpoint == watchpoint_remove)
|
if (watchpoint == watchpoint_to_remove)
|
||||||
break;
|
break;
|
||||||
watchpoint_p = &watchpoint->next;
|
watchpoint_p = &watchpoint->next;
|
||||||
watchpoint = watchpoint->next;
|
watchpoint = watchpoint->next;
|
||||||
|
|
Loading…
Reference in New Issue