gdb/arm: Don't rely on loop detection to stop unwinding
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 14 Oct 2022 13:34:24 +0000 (15:34 +0200)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Sat, 15 Oct 2022 09:39:30 +0000 (11:39 +0200)
commit619cce4cac9b7ad5f4604cd5a63933e71515e16f
tree280432230bf82ee3eafd6f1363f1e423a8291bd3
parent488054071bb4dd5cb087661f92687bc836169170
gdb/arm: Don't rely on loop detection to stop unwinding

Setting SP of the next frame to the same address as the current frame
is an ugly way to stop the unwinding.  A cleaner way is to rely on
the frame_unwind_stop_reason function to return UNWIND_OUTERMOST.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gdb/arm-tdep.c