sandbox: Remove the old memory file later
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 17:55:12 +0000 (11:55 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:26 +0000 (04:40 -0600)
commit1c5a81d8036966875dd96c5700f8c9a7121c237d
tree5f551fa6129b6a8dd576a51cbd3ca0aca1dce47e
parent2b1dc29a12e7a5256577c30a2389a6807d6d2bb6
sandbox: Remove the old memory file later

When debugging sandbox it is sometimes annoying that the memory file is
deleted early on. If sandbox later crashes or we quit (using the
debugger), it is not possible to run it again with the same state since
the memory file is gone.

Remove the old memory file when sandbox exits, instead. Also add debugging
showing the memory filename.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/start.c
arch/sandbox/cpu/state.c