gbacktrace: Don't truncate gdb output

This commit is contained in:
Mohammed Sadiq 2022-09-08 08:45:21 +05:30
parent 07a08d5cf5
commit 3999badc1e

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);