diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-02-11 15:22:10 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-02-11 15:30:03 -0800 |
commit | 58002c640995105459cd2c84343a430679e57eac (patch) | |
tree | d87e0f63d152b7f2d4328decda5573681adb367f /gdb/testsuite/gdb.dwarf2/dw2-noloc.S | |
parent | 88b9e2eb547b002431ae7e4b7799f1a06241da3c (diff) | |
download | gdb-58002c640995105459cd2c84343a430679e57eac.zip gdb-58002c640995105459cd2c84343a430679e57eac.tar.gz gdb-58002c640995105459cd2c84343a430679e57eac.tar.bz2 |
Support -plugin-opt=disable-outputusers/hjl/pr17878
LLVM plugin uses --plugin-opt=disable-output to disable output.
all_symbols_read_hook() calls exit() to disable output when
--plugin-opt=disable-output is passed to LLVM plugin. This patch
registers plugin_cleanup() with atexit(), which removes output file
if --plugin-opt=disable-output is used.
PR ld/17878
* configure.ac: Check if atexit exists.
* config.in: Regenerated.
* configure: Likewise.
* plugin.c (plugin_t): Add disable_output.
(plugin_opt_plugin_arg): Set disable_output for disable-output.
(plugin_cleanup): New.
(plugin_load_plugins): Register plugin_cleanup() with atexit().
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-noloc.S')
0 files changed, 0 insertions, 0 deletions