Jan Kiszka schrieb: > As the same requirement came up here, I worked out the following patch. > I feel a bit uneasy about it because > > o I'm unsure if breaking out of the exception loop is OK this way. > > o including necessary headers fails, mostly due to stdio redefinitions > in dyngen-exec.h. > > This patch behaves as it should, but only in one specific test case. > Feedback is welcome. This is exactly the behaviour I'd like to have. I still needed a small change to your patch, though: You shouldn't return 0 from check_exception, after all it's not a divide error. I'm not sure if EXCP_HLT is the right thing to return here, but the attached patch works for me. Without this change it kept hanging in a loop forever writing more dumps than I ever wanted. ;-) Signed-off-by: Kevin Wolf