Index: tests/pybin/tools.py
===================================================================
--- tests/pybin/tools.py	(revision cc9b520ea1443ba102cee9a58e98d29db995b7b9)
+++ tests/pybin/tools.py	(revision 4f6dda063e7b3a906904ff494b7cf4bb41f5a5c5)
@@ -486,5 +486,9 @@
 
 	try:
-		return sh('gdb', '-n', path, core, '-batch', '-x', cmd, output_file=subprocess.PIPE)
+		ret, out, err = sh('gdb', '-n', path, core, '-batch', '-x', cmd, output_file=subprocess.PIPE)
+		if ret == 0:
+			return 0, out
+		else:
+			return 1, err
 	except:
 		return 1, "ERR Could not read core with gdb"
