Setting expect_step_exception should be thread-specific, because the step command modifies the context of a particular thread, and expects that thread to trap after running the instruction. Setting expect_step_exception to true and then ignoring an exception from a different thread is a debugger bug, unless I'm missing something.