fixed gdb error reporting (Paul Brook)