From 161fbfda70700c593dc4ce9952a572ae914c7398 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Thu, 7 Apr 2016 12:49:17 +0200 Subject: Improve gdb backtrace handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Long backtraces would get cut off in the terminal, this is especially bothersome when having lots of threads. Make sure that the output is complet by setting height=0 for gdb. The gdb manual states: "If you specify a height of either unlimited or zero lines, gdb does not pause during output no matter how long the output is. This is useful if output is to a file or to an editor buffer." Change-Id: I282054bc9e205d67d3076e37d5c928475803b22d Reviewed-by: Simon Hausmann Reviewed-by: Friedemann Kleint Reviewed-by: Jędrzej Nowacki --- src/testlib/qtestcase.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/testlib') diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index 339db2246e..8de631094d 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -114,6 +114,7 @@ static void stackTrace() char cmd[512]; qsnprintf(cmd, 512, "gdb --pid %d 2>/dev/null <