gdb: LoongArch: Deal with atomic sequence
authorTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 13 Jun 2022 01:55:11 +0000 (09:55 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 13 Jun 2022 14:27:02 +0000 (22:27 +0800)
commit208b57e53ed98106d20c7314e88d0a7225a8aa1d
tree6dc071cd428b9d3bc7b9b5cf794089106097b03a
parentc714aff10b1a5542dac657d86eb56140945bbd65
gdb: LoongArch: Deal with atomic sequence

We can't put a breakpoint in the middle of a ll/sc atomic sequence,
so look for the end of the sequence and put the breakpoint there.

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