Small bug fixes in gdb macros
authorJohn Ousterhout <ouster@cs.stanford.edu>
Tue, 12 Jan 2021 23:28:24 +0000 (15:28 -0800)
committerJohn Ousterhout <ouster@cs.stanford.edu>
Tue, 12 Jan 2021 23:28:24 +0000 (15:28 -0800)
Fix contributed by Thierry Sans.

doc/debug.texi
src/misc/gdb-macros

index 529ed0034b2607d2e26a5bc8b6ffc029eb31c1fc..a5836b01b06a2b836a00e5acf40fba4844a2b680 100644 (file)
@@ -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.
 
 @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
 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
 @end deffn
 
 @deffn {GDB Macro} btpagefault
index a0b68c304ff595b13ab3f07c1d5939bf292a2f86..3babb52747f7689333aee64ffac75adb06471a66 100644 (file)
@@ -84,7 +84,7 @@ end
 
 # print backtraces of all threads (based on 'all_list' all threads list)
 define btthreadall
 
 # 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
 end
 document btthreadall
     Print backtraces of all threads