add make-target-delegates
authorTom Tromey <tromey@redhat.com>
Thu, 19 Dec 2013 16:38:11 +0000 (09:38 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:45:24 +0000 (07:45 -0700)
commit1101cb7b3b05d857c8bccc848bc5664155c82730
treef54054788d6d3a1b0faf099ea9c109feb775e9e7
parent8b06beed0f0eb221067a1013add2efd159a36ade
add make-target-delegates

This patch adds a new script, call make-target-delegates, which
auto-generates some target delegation code based on annotations in
target.h.  This adds the new delegation macros, the new generated
file, and adds the necessary calls to the new generated functions to
target.c.  It doesn't, however, add any actual annotations to the
target methods, leaving these for separate patches.

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

PR build/7701:
* target-delegates.c: New file.
* target.c: Include target-delegates.c.
(init_dummy_target): Call install_dummy_methods.
(complete_target_initialization): Call install_delegators.
* target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
(TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
* make-target-delegates: New file.
gdb/ChangeLog
gdb/make-target-delegates [new file with mode: 0755]
gdb/target-delegates.c [new file with mode: 0644]
gdb/target.c
gdb/target.h