mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
* breakpoint.c (init_breakpoint_sal): Remove nested definitions of
`i'(-Wshadow).
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
|
||||||
|
|
||||||
|
* breakpoint.c (init_breakpoint_sal): Remove nested definitions of
|
||||||
|
`i'(-Wshadow).
|
||||||
|
|
||||||
2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
|
2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
|
||||||
|
|
||||||
* bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
|
* bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
|
||||||
|
@ -7265,8 +7265,10 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch,
|
|||||||
|
|
||||||
if (type == bp_hardware_breakpoint)
|
if (type == bp_hardware_breakpoint)
|
||||||
{
|
{
|
||||||
int i = hw_breakpoint_used_count ();
|
int target_resources_ok;
|
||||||
int target_resources_ok =
|
|
||||||
|
i = hw_breakpoint_used_count ();
|
||||||
|
target_resources_ok =
|
||||||
target_can_use_hardware_watchpoint (bp_hardware_breakpoint,
|
target_can_use_hardware_watchpoint (bp_hardware_breakpoint,
|
||||||
i + 1, 0);
|
i + 1, 0);
|
||||||
if (target_resources_ok == 0)
|
if (target_resources_ok == 0)
|
||||||
@ -7316,7 +7318,6 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch,
|
|||||||
char *p = &addr_string[3];
|
char *p = &addr_string[3];
|
||||||
char *endp;
|
char *endp;
|
||||||
char *marker_str;
|
char *marker_str;
|
||||||
int i;
|
|
||||||
|
|
||||||
p = skip_spaces (p);
|
p = skip_spaces (p);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user