gdb, doc: add index entry for the $_inferior_thread_count convenience var

Message ID 20230427114053.3397739-1-tankut.baris.aktemur@intel.com
State New
Headers
Series gdb, doc: add index entry for the $_inferior_thread_count convenience var |

Commit Message

Tankut Baris Aktemur April 27, 2023, 11:40 a.m. UTC
  Add a marker in the documentation for indexing the $_inferior_thread_count
variable.
---
 gdb/doc/gdb.texinfo | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Eli Zaretskii April 27, 2023, 12:27 p.m. UTC | #1
> Date: Thu, 27 Apr 2023 13:40:53 +0200
> From: Tankut Baris Aktemur via Gdb-patches <gdb-patches@sourceware.org>
> 
> Add a marker in the documentation for indexing the $_inferior_thread_count
> variable.
> ---
>  gdb/doc/gdb.texinfo | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
> index eadcde412f2..d8f7413dc48 100644
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -3654,6 +3654,7 @@ program's ``main thread'' even if the program is not multi-threaded.
>  
>  @vindex $_thread@r{, convenience variable}
>  @vindex $_gthread@r{, convenience variable}
> +@vindex $_inferior_thread_count@r{, convenience variable}
>  The debugger convenience variables @samp{$_thread} and
>  @samp{$_gthread} contain, respectively, the per-inferior thread number
>  and the global thread number of the current thread.  You may find this

Thanks, this is OK.

Approved-By: Eli Zaretskii <eliz@gnu.org>
  

Patch

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index eadcde412f2..d8f7413dc48 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -3654,6 +3654,7 @@  program's ``main thread'' even if the program is not multi-threaded.
 
 @vindex $_thread@r{, convenience variable}
 @vindex $_gthread@r{, convenience variable}
+@vindex $_inferior_thread_count@r{, convenience variable}
 The debugger convenience variables @samp{$_thread} and
 @samp{$_gthread} contain, respectively, the per-inferior thread number
 and the global thread number of the current thread.  You may find this