Add testcase with debuginfo and trap for gdb