Improve gdb backtrace handling
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 <simon.hausmann@theqtcompany.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
This commit is contained in:
parent
24914b1acb
commit
161fbfda70
@ -114,6 +114,7 @@ static void stackTrace()
|
||||
char cmd[512];
|
||||
qsnprintf(cmd, 512, "gdb --pid %d 2>/dev/null <<EOF\n"
|
||||
"set prompt\n"
|
||||
"set height 0\n"
|
||||
"thread apply all where full\n"
|
||||
"detach\n"
|
||||
"quit\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user