diff options
author | Hui Li <lihui@loongson.cn> | 2025-01-06 18:21:20 +0800 |
---|---|---|
committer | Tiezhu Yang <yangtiezhu@loongson.cn> | 2025-01-15 21:29:36 +0800 |
commit | 072fa8ed047b5bffd8fca509b50cecfc9b090d34 (patch) | |
tree | ca289f70a2216f640d15560691e54e25c7071481 /gdb | |
parent | 28c733ea0260026c4658c78c1616f639137cc638 (diff) | |
download | binutils-072fa8ed047b5bffd8fca509b50cecfc9b090d34.zip binutils-072fa8ed047b5bffd8fca509b50cecfc9b090d34.tar.gz binutils-072fa8ed047b5bffd8fca509b50cecfc9b090d34.tar.bz2 |
gdb: LoongArch: Remove loongarch_lookup_debug_reg_state()
loongarch_lookup_debug_reg_state() is a unused function, so we
can remove it.
Signed-off-by: Hui Li <lihui@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/nat/loongarch-linux-hw-point.c | 13 | ||||
-rw-r--r-- | gdb/nat/loongarch-linux-hw-point.h | 5 |
2 files changed, 0 insertions, 18 deletions
diff --git a/gdb/nat/loongarch-linux-hw-point.c b/gdb/nat/loongarch-linux-hw-point.c index 002553a..9c39cce 100644 --- a/gdb/nat/loongarch-linux-hw-point.c +++ b/gdb/nat/loongarch-linux-hw-point.c @@ -221,19 +221,6 @@ loongarch_linux_get_debug_reg_capacity (int tid) } /* Return the debug register state for process PID. If no existing - state is found for this process, return nullptr. */ - -struct loongarch_debug_reg_state * -loongarch_lookup_debug_reg_state (pid_t pid) -{ - auto it = loongarch_debug_process_state.find (pid); - if (it != loongarch_debug_process_state.end ()) - return &it->second; - - return nullptr; -} - -/* Return the debug register state for process PID. If no existing state is found for this process, create new state. */ struct loongarch_debug_reg_state * diff --git a/gdb/nat/loongarch-linux-hw-point.h b/gdb/nat/loongarch-linux-hw-point.h index fb722aa..161db92 100644 --- a/gdb/nat/loongarch-linux-hw-point.h +++ b/gdb/nat/loongarch-linux-hw-point.h @@ -109,11 +109,6 @@ void loongarch_linux_set_debug_regs (struct loongarch_debug_reg_state *state, void loongarch_linux_get_debug_reg_capacity (int tid); /* Return the debug register state for process PID. If no existing - state is found for this process, return nullptr. */ - -struct loongarch_debug_reg_state *loongarch_lookup_debug_reg_state (pid_t pid); - -/* Return the debug register state for process PID. If no existing state is found for this process, create new state. */ struct loongarch_debug_reg_state *loongarch_get_debug_reg_state (pid_t pid); |