Open luser-dr00g opened 8 years ago
It would also be convenient to have an option to delete these automatically when exiting. Perhaps this should also be the default behavior.
It would make an extra step to get these files for debugging if a user has a strange bug, but OTOH I never did write the tool to help debug these.
To actually perform this, we need to replace calls to mkstemp()
and separate its two behaviors into different functions. One function to just generate the unique sequence for the XXXXXX
portion of the template. Then we can generate it once and concatenate the various prefixes gmem
, lmem
, xdump
.
Maybe there should be 2 separate options: preserve log dump, preserve memory files.
If we need someone to include these files to debug their issue, it would be convenient if the related trio of files had related names.