mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-26 07:19:16 +08:00
Remove too simple breakpoint_reinsert_addr implementations.
This patch removes too simple implementations of the breakpoint_reinsert_addr operation. The only reason to keep them around was to support thread events when PTRACE_EVENT_CLONE was not present but this support has been removed in a previous patch. No regressions, tested on ubuntu 14.04 ARMv7 and x86. With gdbserver-{native,extended} / { -marm -mthumb } Also compilation was tested on aarch64, bfin, cris, crisv32, m32r, mips, nios2, ppc, s390, sparc, tic6x, tile, xtensa. gdb/gdbserver/ChangeLog: * linux-arm-low.c (arm_reinsert_addr): Remove function. (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL. * linux-cris-low.c (cris_reinsert_addr> Remove function. (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. * linux-crisv32-low.c (cris_reinsert_addr): Remove function. (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. * linux-mips-low.c (mips_reinsert_addr): Remove function. (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. * linux-nios2-low.c (nios2_reinsert_addr): Remove function. (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. * linux-sparc-low.c (sparc_reinsert_addr): Remove function. (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
This commit is contained in:
@ -265,19 +265,6 @@ sparc_breakpoint_at (CORE_ADDR where)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* We only place breakpoints in empty marker functions, and thread locking
|
||||
is outside of the function. So rather than importing software single-step,
|
||||
we can just run until exit. */
|
||||
static CORE_ADDR
|
||||
sparc_reinsert_addr (void)
|
||||
{
|
||||
struct regcache *regcache = get_thread_regcache (current_thread, 1);
|
||||
CORE_ADDR lr;
|
||||
/* O7 is the equivalent to the 'lr' of other archs. */
|
||||
collect_register_by_name (regcache, "o7", &lr);
|
||||
return lr;
|
||||
}
|
||||
|
||||
static void
|
||||
sparc_arch_setup (void)
|
||||
{
|
||||
@ -333,7 +320,7 @@ struct linux_target_ops the_low_target = {
|
||||
NULL,
|
||||
NULL, /* breakpoint_kind_from_pc */
|
||||
sparc_sw_breakpoint_from_kind,
|
||||
sparc_reinsert_addr,
|
||||
NULL, /* breakpoint_reinsert_addr */
|
||||
0,
|
||||
sparc_breakpoint_at,
|
||||
NULL, /* supports_z_point_type */
|
||||
|
Reference in New Issue
Block a user