]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: LoongArch: Remove loongarch_lookup_debug_reg_state()
authorHui Li <lihui@loongson.cn>
Mon, 6 Jan 2025 10:21:20 +0000 (18:21 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 15 Jan 2025 13:29:36 +0000 (21:29 +0800)
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>
gdb/nat/loongarch-linux-hw-point.c
gdb/nat/loongarch-linux-hw-point.h

index 002553a5b51a7195b88226a38c6488c737709635..9c39cceb3363aef408c39bbb677d80f61796fe12 100644 (file)
@@ -220,19 +220,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.  */
 
index fb722aab50cfd558d99d9187ab8668f1310947ff..161db9270ff03a6550abfc18d35fc49e822d6f27 100644 (file)
@@ -108,11 +108,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.  */