summaryrefslogtreecommitdiff
path: root/gdb/monitor.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2008-11-13 15:02:12 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2008-11-13 15:02:12 +0000
commit600a41079dc401cd1e4d238791aa3d66b38c8c7b (patch)
tree48cdd4f860c068ed8c542d9cd93e4ec6d7c80b4a /gdb/monitor.c
parentea43dff71db75a21354d8720a58a793dbbf5f5d9 (diff)
downloadgdb-600a41079dc401cd1e4d238791aa3d66b38c8c7b.tar.gz
* monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r--gdb/monitor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c
index 6b5f8207d85..4fff1079b08 100644
--- a/gdb/monitor.c
+++ b/gdb/monitor.c
@@ -2026,7 +2026,6 @@ monitor_insert_breakpoint (struct bp_target_info *bp_tgt)
{
CORE_ADDR addr = bp_tgt->placed_address;
int i;
- const unsigned char *bp;
int bplen;
monitor_debug ("MON inst bkpt %s\n", paddr (addr));
@@ -2037,7 +2036,7 @@ monitor_insert_breakpoint (struct bp_target_info *bp_tgt)
addr = gdbarch_addr_bits_remove (current_gdbarch, addr);
/* Determine appropriate breakpoint size for this address. */
- bp = gdbarch_breakpoint_from_pc (current_gdbarch, &addr, &bplen);
+ gdbarch_breakpoint_from_pc (current_gdbarch, &addr, &bplen);
bp_tgt->placed_address = addr;
bp_tgt->placed_size = bplen;