garbage collect target_decr_pc_after_break

record-btrace was the only target making use of this, and it no longer
uses it.

gdb/ChangeLog:
2015-03-04  Pedro Alves  <palves@redhat.com>

	* target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
	(target_decr_pc_after_break): Delete declaration.
	* target.c (default_target_decr_pc_after_break)
	(target_decr_pc_after_break): Delete.
	* linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
	gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
	* linux-thread-db.c (check_event): Likewise.
	* infrun.c (adjust_pc_after_break): Likewise.
	* darwin-nat.c (cancel_breakpoint): Likewise.
	* aix-thread.c (aix_thread_wait): Likewise.
	* target-delegates.c: Regenerate.
This commit is contained in:
Pedro Alves
2015-03-04 20:41:17 +00:00
parent 3e572f7104
commit 527a273ac1
9 changed files with 22 additions and 65 deletions

View File

@@ -105,9 +105,6 @@ static char *default_pid_to_str (struct target_ops *ops, ptid_t ptid);
static enum exec_direction_kind default_execution_direction
(struct target_ops *self);
static CORE_ADDR default_target_decr_pc_after_break (struct target_ops *ops,
struct gdbarch *gdbarch);
static struct target_ops debug_target;
#include "target-delegates.c"
@@ -3572,23 +3569,6 @@ target_get_tailcall_unwinder (void)
return current_target.to_get_tailcall_unwinder (&current_target);
}
/* Default implementation of to_decr_pc_after_break. */
static CORE_ADDR
default_target_decr_pc_after_break (struct target_ops *ops,
struct gdbarch *gdbarch)
{
return gdbarch_decr_pc_after_break (gdbarch);
}
/* See target.h. */
CORE_ADDR
target_decr_pc_after_break (struct gdbarch *gdbarch)
{
return current_target.to_decr_pc_after_break (&current_target, gdbarch);
}
/* See target.h. */
void