aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-04-21 21:45:15 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2017-04-21 21:45:15 -0400
commit9be21bb4d4f30975766dfaa7d40b53ba10dcc3a0 (patch)
tree73ed837da7e6f10565e37cc8454ee2c4e0084c00 /gdb/doc
parentb8ac4fa43d5d37e4028ba2a7cc2d9b100ee85418 (diff)
downloadgdb-9be21bb4d4f30975766dfaa7d40b53ba10dcc3a0.zip
gdb-9be21bb4d4f30975766dfaa7d40b53ba10dcc3a0.tar.gz
gdb-9be21bb4d4f30975766dfaa7d40b53ba10dcc3a0.tar.bz2
Remove dead code and "current" field from MI thread output doc
The MI documentation says that -thread-info output contains a "current" field in the current thread tuple, with the value "*". Current GDB master does not do this, and I couldn't find any GDB version that did. I suspect that it was never the case. The code that would correspond to this in print_thread_info_1 is essentially dead code. The calls to uiout->text end up in mi_out::do_text, which is empty. This patch removes the documentation bit and the dead code. This "current" field is not necessary, since -thread-info outputs a "current-thread-id" field. gdb/ChangeLog: * thread.c (print_thread_info_1): Remove dead code. gdb/doc/ChangeLog: * gdb.texinfo (GDB/MI Thread Commands): Remove "current" field from -thread-info output.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo3
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index c542c0b..efce1c0 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb.texinfo (GDB/MI Thread Commands): Remove "current" field
+ from -thread-info output.
+
2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
* gdb.texinfo (Synopsys ARC): Document "set debug arc 2".
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 300d78e..9e87276 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -28088,9 +28088,6 @@ The result is a list of threads. The following attributes are
defined for a given thread:
@table @samp
-@item current
-This field exists only for the current thread. It has the value @samp{*}.
-
@item id
The global identifier that @value{GDBN} uses to refer to the thread.