1/* 2 * Copyright (c) 2007 Juniper Networks, Inc. 3 * Copyright (c) 2004 Marcel Moolenaar 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * 27 * from: src/gnu/usr.bin/gdb/kgdb/trgt_alpha.c,v 1.2.2.1 2005/09/15 05:32:10 marcel 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/gnu/usr.bin/gdb/kgdb/trgt_mips.c 246893 2013-02-17 02:15:19Z marcel $"); |
32 33#include <sys/types.h> 34#include <machine/asm.h> 35#include <machine/pcb.h> 36#include <machine/frame.h> 37#include <err.h> 38#include <kvm.h> 39#include <string.h> --- 7 unchanged lines hidden (view full) --- 47#include <mips-tdep.h> 48 49#ifndef CROSS_DEBUGGER 50#include <machine/pcb.h> 51#endif 52 53#include "kgdb.h" 54 |
55CORE_ADDR 56kgdb_trgt_core_pcb(u_int cpuid) 57{ 58 return (kgdb_trgt_stop_pcb(cpuid, sizeof(struct pcb))); 59} 60 |
61void 62kgdb_trgt_fetch_registers(int regno __unused) 63{ 64#ifndef CROSS_DEBUGGER 65 struct kthr *kt; 66 struct pcb pcb; 67 68 kt = kgdb_thr_lookup_tid(ptid_get_pid(inferior_ptid)); --- 161 unchanged lines hidden --- |