mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 22:52:09 +01:00
Small improvements to g_on_error_stack_trace
Make the gdb commands match what /usr/bin/gstack uses, and produce a stacktrace including all threads.
This commit is contained in:
parent
95cdd0f06f
commit
f6e71c25ed
@ -453,8 +453,10 @@ stack_trace (const char * const *args)
|
||||
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], "set width 0\n", 12);
|
||||
checked_write (in_fd[1], "set height 0\n", 13);
|
||||
checked_write (in_fd[1], "set pagination no\n", 18);
|
||||
checked_write (in_fd[1], "thread apply all backtrace\n", 27);
|
||||
checked_write (in_fd[1], "p x = 0\n", 8);
|
||||
checked_write (in_fd[1], "quit\n", 5);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user