testsuite: note on use_gdb_stub usage

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
This commit is contained in:
Markus Metzger
2020-12-21 08:14:55 +01:00
parent bfece7562d
commit cb51b708fd
2 changed files with 7 additions and 0 deletions

View 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

View 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