Testcase for attaching in non-stop mode
authorPedro Alves <pedro@palves.net>
Wed, 23 Dec 2020 13:39:18 +0000 (13:39 +0000)
committerPedro Alves <pedro@palves.net>
Wed, 3 Feb 2021 01:14:42 +0000 (01:14 +0000)
commit92234eb192f11b1981acb46a3a5e725360b89d6f
treeb3d33211e8b2f53d97ca6def0f65ea84d6b32c54
parent621cc310717334b330e6301759dad62e641486f6
Testcase for attaching in non-stop mode

This adds a testcase exercising attaching to a multi-threaded process,
in all combinations of:

  - set non-stop on/off
  - maint target non-stop off/on
  - "attach" vs "attach &"

This exercises the bugs fixed in the two previous patches.

gdb/testsuite/ChangeLog:

* gdb.threads/attach-non-stop.c: New file.
* gdb.threads/attach-non-stop.exp: New file.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/attach-non-stop.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/attach-non-stop.exp [new file with mode: 0644]