diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2025-09-01 09:29:55 +0800 |
---|---|---|
committer | Tiezhu Yang <yangtiezhu@loongson.cn> | 2025-09-03 20:56:30 +0800 |
commit | 40f41b242f85df71ef4cad64db7d6142992a2bd0 (patch) | |
tree | 9c08cabdbfd0f453b9472a467d8286302357deb0 /libctf/testsuite/libctf-writable | |
parent | 37e91976250feff58468e893715f8698d87a4143 (diff) | |
download | binutils-40f41b242f85df71ef4cad64db7d6142992a2bd0.zip binutils-40f41b242f85df71ef4cad64db7d6142992a2bd0.tar.gz binutils-40f41b242f85df71ef4cad64db7d6142992a2bd0.tar.bz2 |
gdb: LoongArch: Add and use cond_branch_destination_address()
In the current loongarch_deal_with_atomic_sequence(), it is just a loop
through a ll/sc atomic instruction sequence, the instructions before the
condition branch are not actually executed, thus the condition register
value is not proper to determine the destination address.
Add a new function cond_branch_destination_address() to calculate the
destination address of a condition branch instruction under an assumed
true condition, then only put a breakpoint at this address when it is
outside of the ll/sc atomic instruction sequence.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Diffstat (limited to 'libctf/testsuite/libctf-writable')
0 files changed, 0 insertions, 0 deletions