aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSchimpe, Christina <christina.schimpe@intel.com>2024-11-05 15:22:47 +0000
committerSchimpe, Christina <christina.schimpe@intel.com>2024-11-08 13:14:45 +0000
commit6672ccafd90865b9a8916caa3a2f9a0687c301d2 (patch)
tree921d3431230f4d7de6b72c3a2ffa065c0dddbfb3 /gdb
parent9ebb627ed6400bafa60705a567701b2cc7774d4f (diff)
downloadgdb-6672ccafd90865b9a8916caa3a2f9a0687c301d2.zip
gdb-6672ccafd90865b9a8916caa3a2f9a0687c301d2.tar.gz
gdb-6672ccafd90865b9a8916caa3a2f9a0687c301d2.tar.bz2
gdb: LoongArch: Remove use of gdbarch_remove_non_address_bits hook
LoongArch doesn't implement the hook gdbarch_remove_non_address_bits, so there is no need to use the hook in gdb/loongarch-linux-nat.c. Approved-By: Luis Machado <luis.machado@arm.com>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/loongarch-linux-nat.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gdb/loongarch-linux-nat.c b/gdb/loongarch-linux-nat.c
index bc9927d..fd3581b 100644
--- a/gdb/loongarch-linux-nat.c
+++ b/gdb/loongarch-linux-nat.c
@@ -608,17 +608,11 @@ loongarch_linux_nat_target::stopped_data_address (CORE_ADDR *addr_p)
if (siginfo.si_signo != SIGTRAP || (siginfo.si_code & 0xffff) != TRAP_HWBKPT)
return false;
- /* Make sure to ignore the top byte, otherwise we may not recognize a
- hardware watchpoint hit. The stopped data addresses coming from the
- kernel can potentially be tagged addresses. */
- struct gdbarch *gdbarch = thread_architecture (inferior_ptid);
- const CORE_ADDR addr_trap
- = gdbarch_remove_non_address_bits (gdbarch, (CORE_ADDR) siginfo.si_addr);
-
/* Check if the address matches any watched address. */
state = loongarch_get_debug_reg_state (inferior_ptid.pid ());
- return loongarch_stopped_data_address (state, addr_trap, addr_p);
+ return
+ loongarch_stopped_data_address (state, (CORE_ADDR) siginfo.si_addr, addr_p);
}
/* Implement the "stopped_by_watchpoint" target_ops method. */