Skip to content
  • Max Filippov's avatar
    target-xtensa: avoid double-stopping at breakpoints · a00817cc
    Max Filippov authored
    
    
    env->exception_taken is set every time an exception is taken. It is used
    to allow single-stepping to stop at the first exception handler
    instruction. This however must exclude debug exceptions, as otherwise
    first step from the instruction where breakpoint was hit stops at that
    same instruction.
    Also don't check env->exception_taken directly from the
    gen_intermediate_code_internal, instead allocate and use TB flag
    XTENSA_TBFLAG_EXCEPTION.
    
    Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
    a00817cc