Index: tests/pybin/tools.py
===================================================================
--- tests/pybin/tools.py	(revision cc9b520ea1443ba102cee9a58e98d29db995b7b9)
+++ tests/pybin/tools.py	(revision b05308311d934d0d8b5bd3010e77f9240dc4ca24)
@@ -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"
