diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2022-06-25 09:21:16 +0800 |
---|---|---|
committer | Tiezhu Yang <yangtiezhu@loongson.cn> | 2022-06-25 10:12:55 +0800 |
commit | af6e3f77e939ecf85e18720925a4d8f355f90ee1 (patch) | |
tree | d773780616d692f0fe28dbd40839354f544531b4 /gdb/loongarch-tdep.h | |
parent | 0757a50396e3638434f806aec2ee8c8f79a7026c (diff) | |
download | gdb-af6e3f77e939ecf85e18720925a4d8f355f90ee1.zip gdb-af6e3f77e939ecf85e18720925a4d8f355f90ee1.tar.gz gdb-af6e3f77e939ecf85e18720925a4d8f355f90ee1.tar.bz2 |
gdb: LoongArch: Implement loongarch_linux_syscall_next_pc()
When FRAME is at a syscall instruction, return the PC of the next
instruction to be executed.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Diffstat (limited to 'gdb/loongarch-tdep.h')
-rw-r--r-- | gdb/loongarch-tdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/loongarch-tdep.h b/gdb/loongarch-tdep.h index f3efa46..54b34af 100644 --- a/gdb/loongarch-tdep.h +++ b/gdb/loongarch-tdep.h @@ -48,6 +48,9 @@ struct loongarch_gdbarch_tdep : gdbarch_tdep { /* Features about the abi that impact how the gdbarch is configured. */ struct loongarch_gdbarch_features abi_features; + + /* Return the expected next PC if FRAME is stopped at a syscall instruction. */ + CORE_ADDR (*syscall_next_pc) (struct frame_info *frame) = nullptr; }; #endif /* LOONGARCH_TDEP_H */ |