Add $_gthread convenience variable
[deliverable/binutils-gdb.git] / gdb / doc / gdb.texinfo
index 654efa425fe84648dbaffd66796d10b272345273..7da31c84c535a687c738419c9c92e169a429f10c 100644 (file)
@@ -2937,8 +2937,10 @@ thread.  In other words, @value{GDBN} assigns a thread number to the
 program's ``main thread'' even if the program is not multi-threaded.
 
 @vindex $_thread@r{, convenience variable}
-The debugger convenience variable @samp{$_thread} contains the
-per-inferior thread number of the current thread.  You may find this
+@vindex $_gthread@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
 useful in writing breakpoint conditional expressions, command scripts,
 and so forth.  @xref{Convenience Vars,, Convenience Variables}, for
 general information on convenience variables.
@@ -10459,6 +10461,9 @@ Programs, ,Debugging Multiple Inferiors and Programs}.
 @item $_thread
 The thread number of the current thread.  @xref{thread numbers}.
 
+@item $_gthread
+The global number of the current thread.  @xref{global thread numbers}.
+
 @end table
 
 @node Convenience Funs
This page took 0.037309 seconds and 4 git commands to generate.