]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/doc/gdb.texinfo
Fix PR threads/19422 - show which thread caused stop
[thirdparty/binutils-gdb.git] / gdb / doc / gdb.texinfo
index a08a196409dad0e044b282652a660d0615485650..f996c8d1915be8a181bafbb4c3572e6e6d5cc0f4 100644 (file)
@@ -2964,6 +2964,20 @@ useful in writing breakpoint conditional expressions, command scripts,
 and so forth.  @xref{Convenience Vars,, Convenience Variables}, for
 general information on convenience variables.
 
+If @value{GDBN} detects the program is multi-threaded, it augments the
+usual message about stopping at a breakpoint with the ID and name of
+the thread that hit the breakpoint.
+
+@smallexample
+Thread 2 "client" hit Breakpoint 1, send_message () at client.c:68
+@end smallexample
+
+Likewise when the program receives a signal:
+
+@smallexample
+Thread 1 "main" received signal SIGINT, Interrupt.
+@end smallexample
+
 @table @code
 @kindex info threads
 @item info threads @r{[}@var{thread-id-list}@r{]}