Do not use shell to launch new programs in debug mode

Authored by mwolff on Apr 22 2018, 8:13 AM.

Description

Do not use shell to launch new programs in debug mode

When we want to debug heaptrack we use GDB to launch the new
process. By default, that actually first starts a shell and then
eventually the debuggee. But both processes would get heaptrack
injected and will then write to the same heaptrack_interpret
process, thereby corrupting the data file.

By using set startup-with-shell off in GDB, we can eliminate the
shell and prevent this issue from occurring.

BUG: 392085

Details

Committed
mwolffApr 22 2018, 8:13 AM
Parents
R45:0a3c45c904e1: Start GDB in quiet mode to reduce amount of console output
Branches
Unknown
Tags
Unknown