aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorAndrey Smirnov <ndreys@sourceware.org>2011-12-10 00:22:56 +0000
committerAndrey Smirnov <ndreys@sourceware.org>2011-12-10 00:22:56 +0000
commit1afeeb75f24b0a10117f65c7cdc87ef870a031be (patch)
tree6f44157453305f1a9f2aea737843a886618a4784 /gdb/breakpoint.c
parent80e1d41794eebaa2e094a05a654f3a98367cf0f4 (diff)
downloadgdb-1afeeb75f24b0a10117f65c7cdc87ef870a031be.zip
gdb-1afeeb75f24b0a10117f65c7cdc87ef870a031be.tar.gz
gdb-1afeeb75f24b0a10117f65c7cdc87ef870a031be.tar.bz2
* breakpoint.c (bp_loc_is_permanent): Rename `brk' to
`bpoint'(-Wshadow).
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 0f25ce1..47559ba 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -7204,7 +7204,7 @@ bp_loc_is_permanent (struct bp_location *loc)
{
int len;
CORE_ADDR addr;
- const gdb_byte *brk;
+ const gdb_byte *bpoint;
gdb_byte *target_mem;
struct cleanup *cleanup;
int retval = 0;
@@ -7212,10 +7212,10 @@ bp_loc_is_permanent (struct bp_location *loc)
gdb_assert (loc != NULL);
addr = loc->address;
- brk = gdbarch_breakpoint_from_pc (loc->gdbarch, &addr, &len);
+ bpoint = gdbarch_breakpoint_from_pc (loc->gdbarch, &addr, &len);
/* Software breakpoints unsupported? */
- if (brk == NULL)
+ if (bpoint == NULL)
return 0;
target_mem = alloca (len);
@@ -7229,7 +7229,7 @@ bp_loc_is_permanent (struct bp_location *loc)
make_show_memory_breakpoints_cleanup (0);
if (target_read_memory (loc->address, target_mem, len) == 0
- && memcmp (target_mem, brk, len) == 0)
+ && memcmp (target_mem, bpoint, len) == 0)
retval = 1;
do_cleanups (cleanup);