[glib/wip/sadiq/fix-bt-lines-cut] gbacktrace: Don't truncate gdb output
- From: Mohammed Sadiq <pksadiq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/sadiq/fix-bt-lines-cut] gbacktrace: Don't truncate gdb output
- Date: Thu, 8 Sep 2022 03:16:12 +0000 (UTC)
commit 3999badc1ef2c8081a9822f9061571cbf7650441
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Thu Sep 8 08:45:21 2022 +0530
gbacktrace: Don't truncate gdb output
glib/gbacktrace.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/glib/gbacktrace.c b/glib/gbacktrace.c
index 6f4604e1fd..9c52a7d295 100644
--- a/glib/gbacktrace.c
+++ b/glib/gbacktrace.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]