aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@sourceware.org>2012-12-19 20:57:55 +0000
committerAndreas Tobler <andreast@sourceware.org>2012-12-19 20:57:55 +0000
commit4b844a3875b557d65a87e28f78ab0983f58839c5 (patch)
tree9e823a28049ab9d9528d367771a1024edf84f78b /gdb/mips-tdep.c
parentc3b0209786d490ee41d3f18e34c649a48e46a5c1 (diff)
downloadfsf-binutils-gdb-4b844a3875b557d65a87e28f78ab0983f58839c5.zip
fsf-binutils-gdb-4b844a3875b557d65a87e28f78ab0983f58839c5.tar.gz
fsf-binutils-gdb-4b844a3875b557d65a87e28f78ab0983f58839c5.tar.bz2
2012-12-19 Andreas Tobler <andreast@neon.andreas.nets>
* mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize branch_bp to keep gcc happy.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 8140f23..792ae6e 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -3796,7 +3796,8 @@ micromips_deal_with_atomic_sequence (struct gdbarch *gdbarch,
const int atomic_sequence_length = 16; /* Instruction sequence length. */
int last_breakpoint = 0; /* Defaults to 0 (no breakpoints placed). */
CORE_ADDR breaks[2] = {-1, -1};
- CORE_ADDR branch_bp; /* Breakpoint at branch instruction's destination. */
+ CORE_ADDR branch_bp = 0; /* Breakpoint at branch instruction's
+ destination. */
CORE_ADDR loc = pc;
int sc_found = 0;
ULONGEST insn;