aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2018-02-22 13:56:46 -0800
committerSriraman Tallam <tmsriram@google.com>2018-02-22 13:56:46 -0800
commit0b65c07b97c43e8891c2e14061270878a85222c8 (patch)
treea9c9e130a0045291605c400a0d086d99b1c515b0 /gold/options.h
parent0bccfb2994d307601ceba5c3a6223b7ca7cf5338 (diff)
downloadgdb-0b65c07b97c43e8891c2e14061270878a85222c8.zip
gdb-0b65c07b97c43e8891c2e14061270878a85222c8.tar.gz
gdb-0b65c07b97c43e8891c2e14061270878a85222c8.tar.bz2
New plugin interface to get list of symbols wrapped with --wrap option.
2018-02-22 Sriraman Tallam <tmsriram@google.com> * plugin.cc (get_wrap_symbols): New plugin interface. (load): Add get_wrap_symbols to transfer vector. * plugin-api.h (ld_plugin_get_wrap_symbols): New plugin interface. * testsuite/plugin_test.c (onload): Call and check get_wrap_symbols interface. * testsuite/plugin_test_wrap_symbols.sh: New test script. * testsuite/plugin_test_wrap_symbols_1.cc: New file. * testsuite/plugin_test_wrap_symbols_2.cc: New file. * testsuite/Makefile.am (plugin_test_wrap_symbols): New test. * testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gold/options.h b/gold/options.h
index b39d5ff..152b0c1 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -471,7 +471,11 @@ struct Struct_special : public Struct_var
\
options::String_set::const_iterator \
varname__##_end() const \
- { return this->varname__##_.value.end(); }
+ { return this->varname__##_.value.end(); } \
+ \
+ options::String_set::size_type \
+ varname__##_size() const \
+ { return this->varname__##_.value.size(); } \
// When you have a list of possible values (expressed as string)
// After helparg__ should come an initializer list, like