]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/target.h
convert to_get_unwinder and to_get_tailcall_unwinder to methods
authorTom Tromey <tromey@redhat.com>
Thu, 16 Jan 2014 20:00:07 +0000 (13:00 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:48:49 +0000 (07:48 -0700)
commitac01945bf17f3699de5493da23f14ea92549617a
tree3571a0ad55eb48e0d07f9fd2b5e04f55a3162716
parent8476dc92e4d8f8e8ebcdbaf0080b70876dfcfb27
convert to_get_unwinder and to_get_tailcall_unwinder to methods

This converts to_get_unwinder and to_get_tailcall_unwinder to methods
and arranges for them to use the new delegation scheme.

This just lets us avoid having a differing style (neither new-style
nor INHERIT) of delegation in the tree.

2014-02-19  Tom Tromey  <tromey@redhat.com>

* target.c (target_get_unwinder): Rewrite.
(target_get_tailcall_unwinder): Rewrite.
* record-btrace.c (record_btrace_to_get_unwinder): New function.
(record_btrace_to_get_tailcall_unwinder): New function.
(init_record_btrace_ops): Update.
* target.h (struct target_ops) <to_get_unwinder,
to_get_tailcall_unwinder>: Now function pointers.  Use
TARGET_DEFAULT_RETURN.
gdb/ChangeLog
gdb/record-btrace.c
gdb/target-delegates.c
gdb/target.c
gdb/target.h