1/*- 2 * Copyright (c) 2000 David O'Brien 3 * Copyright (c) 1995-1996 S�ren Schmidt 4 * Copyright (c) 1996 Peter Wemm 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/kern/imgact_elf.c 133464 2004-08-11 02:35:06Z marcel $"); |
33 34#include <sys/param.h> 35#include <sys/exec.h> 36#include <sys/fcntl.h> 37#include <sys/imgact.h> 38#include <sys/imgact_elf.h> 39#include <sys/kernel.h> 40#include <sys/lock.h> --- 1158 unchanged lines hidden (view full) --- 1199 status->pr_pid = thr->td_tid; 1200 fill_regs(thr, &status->pr_reg); 1201 fill_fpregs(thr, fpregset); 1202 } 1203 __elfN(putnote)(dst, off, "FreeBSD", NT_PRSTATUS, status, 1204 sizeof *status); 1205 __elfN(putnote)(dst, off, "FreeBSD", NT_FPREGSET, fpregset, 1206 sizeof *fpregset); |
1207 /* 1208 * Allow for MD specific notes, as well as any MD 1209 * specific preparations for writing MI notes. 1210 */ 1211 __elfN(dump_thread)(thr, dst, off); |
1212 |
1213 thr = (thr == td) ? TAILQ_FIRST(&p->p_threads) : 1214 TAILQ_NEXT(thr, td_plist); 1215 if (thr == td) 1216 thr = TAILQ_NEXT(thr, td_plist); 1217 } 1218 1219 notesz = *off - noteoff; 1220 --- 89 unchanged lines hidden --- |