testsuite: note on use_gdb_stub usage
authorMarkus Metzger <markus.t.metzger@intel.com>
Mon, 21 Dec 2020 07:14:55 +0000 (08:14 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Fri, 26 Feb 2021 08:08:07 +0000 (09:08 +0100)
Add a note to the comment on use_gdb_stub explaining the use of this check
for skipping tests that spawn new inferiors as discussed here:

    https://sourceware.org/pipermail/gdb-patches/2020-December/174186.html

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index f2c142e6b941524df775f2468809a9b10ffb4d6d..c64ad978e4ab7538297629761f41fcb431b32a2f 100644 (file)
@@ -1,3 +1,7 @@
+2021-02-26  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * lib/gdb.exp (use_gdb_stub): Extend comment.
+
 2021-02-25  Jan Matyas  <jmatyas@codasip.com>
 
        PR gdb/26819
index 60f84d22aadea2756d5d8f5eff662cc828d4b760..142051296cbf9e9349d8bf1106d8f058fbf3af99 100644 (file)
@@ -3646,6 +3646,9 @@ proc gdb_is_target_native { } {
 # This is the preferred way of checking use_gdb_stub, since it allows to check
 # the value before the gdb has been spawned and it will return the correct value
 # even when it was overriden by the test.
+#
+# Note that stub targets are not able to spawn new inferiors.  Use this
+# check for skipping respective tests.
 
 proc use_gdb_stub {} {
   global use_gdb_stub
This page took 0.0352 seconds and 4 git commands to generate.