This patch changes the way we generate the ObjectFileJSON files
containing the inlined symbols from the crash report to remove the
tempfile prefix from the object file name.
To do so, instead of creating a new tempfile for each module, we create a
temporary directory that contains each module object file with the same
name as the module.
This makes the backtraces only contain the module name without the
temfile prefix which makes it look like a regular stackframe.
Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
Can you call obj_dir.cleanup(), or better, can you wrap this in a with tempfile.TemporaryDirectory() as obj_dir:?