From 85da529909adac7ed00861d259001b124cd5b54f Mon Sep 17 00:00:00 2001 From: John Ousterhout Date: Tue, 12 Jan 2021 15:28:24 -0800 Subject: [PATCH] Small bug fixes in gdb macros Fix contributed by Thierry Sans. --- doc/debug.texi | 4 ++-- src/misc/gdb-macros | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/debug.texi b/doc/debug.texi index 529ed00..a5836b0 100644 --- a/doc/debug.texi +++ b/doc/debug.texi @@ -376,14 +376,14 @@ which the threads are kept. Specify @var{element} as the @struct{list_elem} field used inside @struct{thread} to link the threads together. -Example: @code{btthreadlist all_list allelem} shows the backtraces of +Example: @code{btthreadlist &all_list allelem} shows the backtraces of all threads contained in @code{struct list all_list}, linked together by @code{allelem}. This command is useful to determine where your threads are stuck when a deadlock occurs. Please see the example scenario below. @end deffn @deffn {GDB Macro} btthreadall -Short-hand for @code{btthreadlist all_list allelem}. +Short-hand for @code{btthreadlist &all_list allelem}. @end deffn @deffn {GDB Macro} btpagefault diff --git a/src/misc/gdb-macros b/src/misc/gdb-macros index a0b68c3..3babb52 100644 --- a/src/misc/gdb-macros +++ b/src/misc/gdb-macros @@ -84,7 +84,7 @@ end # print backtraces of all threads (based on 'all_list' all threads list) define btthreadall - btthreadlist all_list allelem + btthreadlist &all_list allelem end document btthreadall Print backtraces of all threads -- 2.30.2