Merge branch 'wip/sadiq/fix-bt-lines-cut' into 'main'

gbacktrace: Don't truncate gdb output

See merge request GNOME/glib!2880
This commit is contained in:
Marco Trevisan 2022-09-19 14:33:14 +00:00
commit 13776b4942

View File

@ -449,6 +449,8 @@ stack_trace (const char * const *args)
checked_write (in_fd[1], "process detach\n", 15);
checked_write (in_fd[1], "quit\n", 5);
#else
/* Don't wrap so that lines are not truncated */
checked_write (in_fd[1], "set width unlimited\n", 20);
checked_write (in_fd[1], "backtrace\n", 10);
checked_write (in_fd[1], "p x = 0\n", 8);
checked_write (in_fd[1], "quit\n", 5);