[binutils-gdb] Windows gdb: Enable "set scheduler-locking on"
Pedro Alves via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8e108dfcd594556c34125bf2a6b712300a5e875a commit 8e108dfcd594556c34125bf2a6b712300a5e875a Author: Pedro Alves <[email protected]> Date: Thu May 11 23:07:33 2023 +0100 Windows gdb: Enable "set scheduler-locking on" Surprisingly (to me), enabling scheduler locking on Windows currently fails: (gdb) set scheduler-locking on Target 'native' cannot support this command. The backend itself does support scheduler-locking. This patch implements windows_nat_target::get_thread_control_capabilities so that the core knows schedlocking works for this target. Approved-By: Tom Tromey <[email protected]> Change-Id: Ie762d3768fd70e4ac398c8bcc03c3213bfa26a6a Diff: --- gdb/windows-nat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/windows-nat.h b/gdb/windows-nat.h index 221ce58a887..0f586cd195e 100644 --- a/gdb/windows-nat.h +++ b/gdb/windows-nat.h @@ -115,6 +115,9 @@ struct windows_nat_target : public inf_child_target void close () override; + thread_control_capabilities get_thread_control_capabilities () override + { return tc_schedlock; } + void attach (const char *, int) override; bool attach_no_wait () override