kthr.c (167142) | kthr.c (173681) |
---|---|
1/* 2 * Copyright (c) 2004 Marcel Moolenaar 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 Marcel Moolenaar 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/gnu/usr.bin/gdb/kgdb/kthr.c 167142 2007-03-01 13:55:15Z kib $"); | 28__FBSDID("$FreeBSD: head/gnu/usr.bin/gdb/kgdb/kthr.c 173681 2007-11-16 22:17:37Z jhb $"); |
29 30#include <sys/param.h> 31#include <sys/proc.h> 32#include <sys/types.h> 33#include <sys/signal.h> 34#include <err.h> 35#include <inttypes.h> 36#include <kvm.h> --- 87 unchanged lines hidden (view full) --- 124 && stoppcbs != 0) 125 kt->pcb = (uintptr_t) stoppcbs + sizeof(struct pcb) * td.td_oncpu; 126 else 127 kt->pcb = (uintptr_t)td.td_pcb; 128 kt->kstack = td.td_kstack; 129 kt->tid = td.td_tid; 130 kt->pid = p.p_pid; 131 kt->paddr = paddr; | 29 30#include <sys/param.h> 31#include <sys/proc.h> 32#include <sys/types.h> 33#include <sys/signal.h> 34#include <err.h> 35#include <inttypes.h> 36#include <kvm.h> --- 87 unchanged lines hidden (view full) --- 124 && stoppcbs != 0) 125 kt->pcb = (uintptr_t) stoppcbs + sizeof(struct pcb) * td.td_oncpu; 126 else 127 kt->pcb = (uintptr_t)td.td_pcb; 128 kt->kstack = td.td_kstack; 129 kt->tid = td.td_tid; 130 kt->pid = p.p_pid; 131 kt->paddr = paddr; |
132 kt->cpu = td.td_oncpu; |
|
132 first = kt; 133 addr = (uintptr_t)TAILQ_NEXT(&td, td_plist); 134 } 135 paddr = (uintptr_t)LIST_NEXT(&p, p_list); 136 } 137 curkthr = kgdb_thr_lookup_tid(dumptid); 138 if (curkthr == NULL) 139 curkthr = first; --- 80 unchanged lines hidden --- | 133 first = kt; 134 addr = (uintptr_t)TAILQ_NEXT(&td, td_plist); 135 } 136 paddr = (uintptr_t)LIST_NEXT(&p, p_list); 137 } 138 curkthr = kgdb_thr_lookup_tid(dumptid); 139 if (curkthr == NULL) 140 curkthr = first; --- 80 unchanged lines hidden --- |