aboutsummaryrefslogtreecommitdiff
path: root/ld/testplug.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-01-28 10:27:31 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-01-28 10:27:31 -0800
commit15f7a26b0f42be812b0471ec09d91bad696fe26e (patch)
treefe3f56e6de16024a283713d428fd56c794ec952d /ld/testplug.c
parent61b86cb1948c47e5e6c49b25f33d11ac002c27cf (diff)
downloadgdb-15f7a26b0f42be812b0471ec09d91bad696fe26e.zip
gdb-15f7a26b0f42be812b0471ec09d91bad696fe26e.tar.gz
gdb-15f7a26b0f42be812b0471ec09d91bad696fe26e.tar.bz2
The initial support for LDPT_GET_VIEW
This patch adds the initial support for LDPT_GET_VIEW. ld/ PR ld/17878 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW. (get_view): New function. (set_tv_header): Handle LDPT_GET_VIEW. * testplug.c (tag_names): Add LDPT_GET_VIEW. (tv_get_view): New. (dump_tv_tag): Handle LDPT_GET_VIEW. (parse_tv_tag): Likewise. ld/testsuite/ PR ld/17878 * ld-plugin/plugin-1.d: Add LDPT_GET_VIEW. * ld-plugin/plugin-10.d: Likewise. * ld-plugin/plugin-11.d: Likewise. * ld-plugin/plugin-2.d: Likewise. * ld-plugin/plugin-3.d: Likewise. * ld-plugin/plugin-4.d: Likewise. * ld-plugin/plugin-5.d: Likewise. * ld-plugin/plugin-6.d: Likewise. * ld-plugin/plugin-7.d: Likewise. * ld-plugin/plugin-8.d: Likewise. * ld-plugin/plugin-9.d: Likewise.
Diffstat (limited to 'ld/testplug.c')
-rw-r--r--ld/testplug.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testplug.c b/ld/testplug.c
index 3059e15..dce787a 100644
--- a/ld/testplug.c
+++ b/ld/testplug.c
@@ -87,6 +87,7 @@ static const tag_name_t tag_names[] =
ADDENTRY(LDPT_ADD_INPUT_FILE),
ADDENTRY(LDPT_MESSAGE),
ADDENTRY(LDPT_GET_INPUT_FILE),
+ ADDENTRY(LDPT_GET_VIEW),
ADDENTRY(LDPT_RELEASE_INPUT_FILE),
ADDENTRY(LDPT_ADD_INPUT_LIBRARY),
ADDENTRY(LDPT_OUTPUT_NAME),
@@ -104,6 +105,7 @@ static ld_plugin_get_symbols tv_get_symbols_v2 = 0;
static ld_plugin_add_input_file tv_add_input_file = 0;
static ld_plugin_message tv_message = 0;
static ld_plugin_get_input_file tv_get_input_file = 0;
+static ld_plugin_get_view tv_get_view = 0;
static ld_plugin_release_input_file tv_release_input_file = 0;
static ld_plugin_add_input_library tv_add_input_library = 0;
static ld_plugin_set_extra_library_path tv_set_extra_library_path = 0;
@@ -367,6 +369,7 @@ dump_tv_tag (size_t n, struct ld_plugin_tv *tv)
case LDPT_ADD_INPUT_FILE:
case LDPT_MESSAGE:
case LDPT_GET_INPUT_FILE:
+ case LDPT_GET_VIEW:
case LDPT_RELEASE_INPUT_FILE:
case LDPT_ADD_INPUT_LIBRARY:
case LDPT_SET_EXTRA_LIBRARY_PATH:
@@ -433,6 +436,9 @@ parse_tv_tag (struct ld_plugin_tv *tv)
case LDPT_GET_INPUT_FILE:
SETVAR(tv_get_input_file);
break;
+ case LDPT_GET_VIEW:
+ SETVAR(tv_get_view);
+ break;
case LDPT_RELEASE_INPUT_FILE:
SETVAR(tv_release_input_file);
break;