]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: RISC-V: Refine lr/sc sequence support
authorYang Liu <liuyang22@iscas.ac.cn>
Sat, 13 Jan 2024 17:20:59 +0000 (01:20 +0800)
committerYang Liu <liuyang22@iscas.ac.cn>
Sat, 13 Jan 2024 17:20:59 +0000 (01:20 +0800)
commitb273287f4e7f111c1bb667267c6bde4fdd8418c7
treee5dc11566d8bb3fa89a7f94fefda91c7dc321e12
parent7de143103d299ea3063be80f0c184187d665f091
gdb: RISC-V: Refine lr/sc sequence support

Per RISC-V spec, the lr/sc sequence can consist of up to 16 instructions, and we
cannot insert breakpoints in the middle of this sequence. Before this, we only
detected a specific pattern (the most common one). This patch improves this part
and now supports more complex pattern detection.

Signed-off-by: Yang Liu <liuyang22@iscas.ac.cn>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
gdb/riscv-tdep.c