arm: ptrace: Fix order of probing unwind tables
arm: ptrace: Fix order of probing unwind tables

Commit 92327a3 "ARM: prefer to unwind using DWARF info"
changes order of unwind info searching to prefer DWARF (.debug_frame)
section in prior to ARM specific (.ARM.exidx). This patch only affects
local process unwinding. Now the same is done for remote unwinding.

Sometimes probing .ARM.exidx first causes backtrace truncation
after __aeabi_ldiv0 (division by 0 handler that generates SIGFPE),
because it hits [cantunwind] generated by cross-gcc for __divsi3
function copied with __aeabi_ldiv0 from libgcc.a. Perhaps, lack of
debug info for __divsi3 causes [cantunwind], or there is a problem
converting DWARF to ARM unwind tables, but when unwinding using
DWARF, it hits proper entry, and backtrace is shown correctly.

Reported-by: Frederic Berat <a1c18ecb1b19b7f87f4edb7e3eebafba8bc65fa9@de.adit-jv.com>
Signed-off-by: Vitaly Kuzmichev <8f804e17318dd7c2261a3e9a39de4cd92d842dee@mentor.com>

libunwind/libunwind,libunwind/libunwind,unkadoug/libunwind,frida/libunwind,yuyichao/libunwind,frida/libunwind,rantala/libunwind,yuyichao/libunwind,djwatson/libunwind,vtjnash/libunwind,yuyichao/libunwind,rantala/libunwind,vtjnash/libunwind,libunwind/libunwind,djwatson/libunwind,rantala/libunwind,djwatson/libunwind,frida/libunwind,unkadoug/libunwind,unkadoug/libunwind,vtjnash/libunwind