diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-02-22 11:22:14 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-02-22 11:22:14 -0800 |
commit | d0bbe64c5a3f9608ae5987f1267de7a734ee8151 (patch) | |
tree | 0960d288fdfed3bcd112876bed7889028b1fa41d /gdb/infcmd.c | |
parent | 1188bfcfa981fd0f5007d667f9caefc24b8c7718 (diff) | |
download | gdb-d0bbe64c5a3f9608ae5987f1267de7a734ee8151.zip gdb-d0bbe64c5a3f9608ae5987f1267de7a734ee8151.tar.gz gdb-d0bbe64c5a3f9608ae5987f1267de7a734ee8151.tar.bz2 |
fbsd-nat: Return nullptr rather than failing ::thread_name.
ptrace on FreeBSD cannot be used against running processes and instead
fails with EBUSY. This meant that 'info threads' would fail if any of
the threads were running (for example when using schedule-multiple=on
in gdb.base/fork-running-state.exp). Instead of throwing errors, just
return nullptr as no thread name is better than causing info threads to
fail completely.
Diffstat (limited to 'gdb/infcmd.c')
0 files changed, 0 insertions, 0 deletions