summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2014-12-09 14:21:43 +0000
committerdchagin <dchagin@FreeBSD.org>2014-12-09 14:21:43 +0000
commit5895f3a1618c7a037255b5684f7501a26d00a1b9 (patch)
treec20f38d3eabc62b321e9151d15d816be4f185074 /gnu
parentba7194c81a49360c039496bc654a83ce2233c419 (diff)
downloadFreeBSD-src-5895f3a1618c7a037255b5684f7501a26d00a1b9.zip
FreeBSD-src-5895f3a1618c7a037255b5684f7501a26d00a1b9.tar.gz
Skip calling CPU_ISSET for NOCPU as a short period of time we can have
td_oncpu is NOCPU for thread in TDS_RUNNING state. Differential Revision: https://reviews.freebsd.org/D1283 Reviewed by: jhb MFC after: 1 Month
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gdb/kgdb/kthr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/kthr.c b/gnu/usr.bin/gdb/kgdb/kthr.c
index 713b93b..1bc95cb 100644
--- a/gnu/usr.bin/gdb/kgdb/kthr.c
+++ b/gnu/usr.bin/gdb/kgdb/kthr.c
@@ -96,7 +96,7 @@ kgdb_thr_add_procs(uintptr_t paddr)
kt->kaddr = addr;
if (td.td_tid == dumptid)
kt->pcb = dumppcb;
- else if (td.td_state == TDS_RUNNING &&
+ else if (td.td_oncpu != NOCPU &&
CPU_ISSET(td.td_oncpu, &stopped_cpus))
kt->pcb = kgdb_trgt_core_pcb(td.td_oncpu);
else
OpenPOWER on IntegriCloud