intel: tools: dump: protect against multiple calls on destructor
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 20 Jul 2018 10:20:41 +0000 (11:20 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 20 Jul 2018 16:36:56 +0000 (17:36 +0100)
commitfeb43ef674593ad94e962be194cb67dfc97c4e2e
tree2e61db3b66afcca94f4004f7e2668336cbeae812
parent2a9069eb97f636b427430ffc49813dfbfa96d56f
intel: tools: dump: protect against multiple calls on destructor

When running gdb, make sure to pass the LD_PRELOAD variable only to
the executed program, not the debugger. Otherwise the debugger will
run the preloaded constructor/destructor too and bad things will
happen.

Suggested-by: Rafael Antognolli <rafael.antognolli@intel.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/tools/intel_dump_gpu.in