diff options
author | andreast <andreast> | 2012-12-19 20:57:54 +0000 |
---|---|---|
committer | andreast <andreast> | 2012-12-19 20:57:54 +0000 |
commit | bf699244973ce73ede6c389894f3c320e2c79eb1 (patch) | |
tree | 5cbf46f7fe1caccfff9dc7fccecc155d7ce6aba0 | |
parent | 08d99bfb5aec0edcfe3ed8b84cdfc36bf3c6f74b (diff) | |
download | gdb-bf699244973ce73ede6c389894f3c320e2c79eb1.tar.gz |
2012-12-19 Andreas Tobler <andreast@neon.andreas.nets>
* mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize
branch_bp to keep gcc happy.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 20518f7ea0c..ff43287105a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-12-19 Andreas Tobler <andreast@neon.andreas.nets> + + * mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize + branch_bp to keep gcc happy. + 2012-12-19 Joel Brobecker <brobecker@adacore.com> * gdbarch.sh (copyright): Update copyright years. diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 8140f237320..792ae6ef7f9 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; |