[PATCH 1/3] sandbox: add handler for exceptions
Simon Glass
sjg at chromium.org
Wed Nov 11 15:32:13 CET 2020
Hi Heinrich,
On Tue, 10 Nov 2020 at 16:09, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> Add a handler for SIGILL, SIGBUS, SIGSEGV.
>
> When an exception occurs print the program counter and the loaded
> UEFI binaries and reset the system.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> arch/sandbox/cpu/os.c | 31 +++++++++++++++++++++++++++++++
> arch/sandbox/cpu/start.c | 4 ++++
> arch/sandbox/lib/interrupts.c | 30 ++++++++++++++++++++++++++++++
> include/os.h | 17 +++++++++++++++++
> 4 files changed, 82 insertions(+)
Generally we want to stop execution, because it indicates a bug. Then
we might want to run it again with gdb to debug it.
So I think this feature should be enabled by a flag.
Regards,
Simon
More information about the U-Boot
mailing list