[PATCH 1/1] gdb: LoongArch: Remove use of gdbarch_remove_non_address_bits hook
Schimpe, Christina
christina.schimpe@intel.com
Tue Nov 5 15:34:39 GMT 2024
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.
---
gdb/loongarch-linux-nat.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/gdb/loongarch-linux-nat.c b/gdb/loongarch-linux-nat.c
index bc9927dd751..fd3581bbd30 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. */
--
2.34.1
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
More information about the Gdb-patches
mailing list