gdb/arm-tdep.c: Remove "Infinite loop detected" error message.
Since as far back as the beginning of the sourceware repository the ARM port has printed an error "Infinite loop detected" when the next_pc calculated is the same as the current one, for example when encountering a branch to the current PC address. This causes the test gdb.base/random-signal.exp as the error message is not expected. I have not been able to find a good reason for the message to be here so remove it and let the test pass. gdb/ChangeLog: 2013-11-20 Will Newton <will.newton@linaro.org> * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected" error message.
This commit is contained in:
parent
b26dfc9ab3
commit
2b59118e72
|
@ -1,3 +1,8 @@
|
||||||
|
2013-11-20 Will Newton <will.newton@linaro.org>
|
||||||
|
|
||||||
|
* arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
|
||||||
|
error message.
|
||||||
|
|
||||||
2013-11-20 Yao Qi <yao@codesourcery.com>
|
2013-11-20 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* progspace.h (struct address_space_data): Declare.
|
* progspace.h (struct address_space_data): Declare.
|
||||||
|
|
|
@ -4970,17 +4970,9 @@ arm_get_next_pc (struct frame_info *frame, CORE_ADDR pc)
|
||||||
CORE_ADDR nextpc;
|
CORE_ADDR nextpc;
|
||||||
|
|
||||||
if (arm_frame_is_thumb (frame))
|
if (arm_frame_is_thumb (frame))
|
||||||
{
|
nextpc = thumb_get_next_pc_raw (frame, pc);
|
||||||
nextpc = thumb_get_next_pc_raw (frame, pc);
|
|
||||||
if (nextpc == MAKE_THUMB_ADDR (pc))
|
|
||||||
error (_("Infinite loop detected"));
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
nextpc = arm_get_next_pc_raw (frame, pc);
|
||||||
nextpc = arm_get_next_pc_raw (frame, pc);
|
|
||||||
if (nextpc == pc)
|
|
||||||
error (_("Infinite loop detected"));
|
|
||||||
}
|
|
||||||
|
|
||||||
return nextpc;
|
return nextpc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue