]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
linux: handle split resume requests with target-async off users/mmetzger/pr19340
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 10 Jan 2025 07:44:22 +0000 (07:44 +0000)
committerMarkus Metzger <markus.t.metzger@intel.com>
Mon, 26 May 2025 07:01:15 +0000 (07:01 +0000)
commit13403511a110cd7dcf667484dfd2166af339dbfe
treeee18b5cfb6edb33a4dddcfa71a79fd74224a298b
parent57531a5fa408243cb4443f64aa8380edc5cfccba
linux: handle split resume requests with target-async off

With

    target-async off
    scheduler-locking off
    schedule-multiple on

and

    record btrace

the record-btrace target splits resume and stop requests when there are
multiple inferiors and some are replaying while others are recording.

Since wait would be blocking in this configuration, we cannot afford to
split wait requests, as well, or risk a hang.

This leads to scenarios where the target beneath record-btrace received

    resume requests for inferiors other than the current inferior, since
    that would be handled by the record target above.

    stop requests, but has not gotten the chance to wait for the
    corresponding event before receiving another resume request.

Handle those cases for the linux native target.
gdb/linux-nat.c