The attached patch fixes gdb.base/bang.exp so that it accepts sim's output. The current test always fails with sim. (gdb) run Starting program: /project/m32r-tools/insight-20030703/build/gdb/testsuite/gdb.base/bang! 0 *** EXIT code 0 Program exited normally. [Switching to process 0] (gdb) FAIL: gdb.base/bang.exp: run program (the program exited)