gdb: LoongArch: prepend tramp frame unwinder for signal
authorTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 31 Mar 2022 11:56:51 +0000 (19:56 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 6 Apr 2022 14:32:26 +0000 (22:32 +0800)
commit7fb56b98937a2feef5a3e12d8b00506ff4d132be
tree802da2e5d8368dd2ee042a5922af923fa2560ffb
parent9716aa0a271cf59fb40194440ea6e2a0cf8ab192
gdb: LoongArch: prepend tramp frame unwinder for signal

Implement the "init" method of struct tramp_frame to prepend tramp
frame unwinder for signal on LoongArch.

With this patch, the following failed testcases can be fixed:

  FAIL: gdb.base/annota1.exp: backtrace @ signal handler (timeout)
  FAIL: gdb.base/annota3.exp: backtrace @ signal handler (pattern 2)

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/loongarch-linux-tdep.c