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/rs6000-aix-tdep.h | |
parent | 88b9e2eb547b002431ae7e4b7799f1a06241da3c (diff) | |
download | gdb-users/hjl/pr17878.zip gdb-users/hjl/pr17878.tar.gz gdb-users/hjl/pr17878.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/rs6000-aix-tdep.h')
0 files changed, 0 insertions, 0 deletions