diff options
author | Tom Tromey <tromey@redhat.com> | 2014-01-16 11:39:32 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:47 -0700 |
commit | c0eca49f4e3382163153a1cdbb090a25b4a32e31 (patch) | |
tree | 925e767f99b1ffb1cff3c7d3bdaff7272efb14cc /gdb/target.h | |
parent | 596b6b39ab5f26a86980bc9aa6cf348d32d244b4 (diff) | |
download | gdb-c0eca49f4e3382163153a1cdbb090a25b4a32e31.zip gdb-c0eca49f4e3382163153a1cdbb090a25b4a32e31.tar.gz gdb-c0eca49f4e3382163153a1cdbb090a25b4a32e31.tar.bz2 |
convert to_decr_pc_after_break
This converts to_decr_pc_after_break to the new style of delegation,
removing forward_target_decr_pc_after_break.
2014-02-19 Tom Tromey <tromey@redhat.com>
* record-btrace.c (record_btrace_decr_pc_after_break): Delegate
directly.
* target-delegates.c: Rebuild.
* target.h (struct target_ops) <to_decr_pc_after_break>: Use
TARGET_DEFAULT_FUNC.
* target.c (default_target_decr_pc_after_break): Rename from
forward_target_decr_pc_after_break. Simplify.
(target_decr_pc_after_break): Rely on delegation.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h index 79805d1..4a46a16 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1117,7 +1117,8 @@ struct target_ops after executing a breakpoint instruction. Defaults to gdbarch_decr_pc_after_break (GDBARCH). */ CORE_ADDR (*to_decr_pc_after_break) (struct target_ops *ops, - struct gdbarch *gdbarch); + struct gdbarch *gdbarch) + TARGET_DEFAULT_FUNC (default_target_decr_pc_after_break); int to_magic; /* Need sub-structure for target machine related rather than comm related? |