From: John Ousterhout Date: Tue, 12 Jan 2021 23:28:24 +0000 (-0800) Subject: Small bug fixes in gdb macros X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=commitdiff_plain;h=85da529909adac7ed00861d259001b124cd5b54f Small bug fixes in gdb macros Fix contributed by Thierry Sans. --- 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