Deleted Added
full compact
subr_kdb.c (218825) subr_kdb.c (222531)
1/*-
2 * Copyright (c) 2004 The FreeBSD Project
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2004 The FreeBSD Project
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 11 unchanged lines hidden (view full) ---

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/kern/subr_kdb.c 218825 2011-02-18 22:25:11Z mdf $");
28__FBSDID("$FreeBSD: head/sys/kern/subr_kdb.c 222531 2011-05-31 15:11:43Z nwhitehorn $");
29
30#include "opt_kdb.h"
31#include "opt_stack.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kdb.h>
36#include <sys/kernel.h>

--- 370 unchanged lines hidden (view full) ---

407#if defined(SMP) && defined(KDB_STOPPEDPCB)
408 struct pcpu *pc;
409#endif
410
411 if (thr == curthread)
412 return (&kdb_pcb);
413
414#if defined(SMP) && defined(KDB_STOPPEDPCB)
29
30#include "opt_kdb.h"
31#include "opt_stack.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kdb.h>
36#include <sys/kernel.h>

--- 370 unchanged lines hidden (view full) ---

407#if defined(SMP) && defined(KDB_STOPPEDPCB)
408 struct pcpu *pc;
409#endif
410
411 if (thr == curthread)
412 return (&kdb_pcb);
413
414#if defined(SMP) && defined(KDB_STOPPEDPCB)
415 SLIST_FOREACH(pc, &cpuhead, pc_allcpu) {
415 STAILQ_FOREACH(pc, &cpuhead, pc_allcpu) {
416 if (pc->pc_curthread == thr && (stopped_cpus & pc->pc_cpumask))
417 return (KDB_STOPPEDPCB(pc));
418 }
419#endif
420 return (thr->td_pcb);
421}
422
423struct thread *

--- 129 unchanged lines hidden ---
416 if (pc->pc_curthread == thr && (stopped_cpus & pc->pc_cpumask))
417 return (KDB_STOPPEDPCB(pc));
418 }
419#endif
420 return (thr->td_pcb);
421}
422
423struct thread *

--- 129 unchanged lines hidden ---