[PATCH v4 11/13] fbsd-nat: Return nullptr rather than failing ::thread_name.
Tom Tromey
tom@tromey.com
Fri Jan 14 16:41:21 GMT 2022
>>>>> "John" == John Baldwin <jhb@FreeBSD.org> writes:
John> ptrace on FreeBSD cannot be used against running processes and instead
John> fails with EBUSY. This meant that 'info threads' would fail if any of
John> the threads were running (for example when using schedule-multiple=on
John> in gdb.base/fork-running-state.exp). Instead of throwing errors, just
John> return nullptr as no thread name is better than causing info threads to
John> fail completely.
Seems reasonable to me.
Tom
More information about the Gdb-patches
mailing list