trgt_ia64.c (132624) | trgt_ia64.c (142151) |
---|---|
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/trgt_ia64.c 132624 2004-07-25 05:29:15Z marcel $"); | 28__FBSDID("$FreeBSD: head/gnu/usr.bin/gdb/kgdb/trgt_ia64.c 142151 2005-02-20 22:55:07Z kan $"); |
29 30#include <sys/types.h> 31#include <machine/md_var.h> 32#include <machine/pcb.h> 33#include <err.h> 34#include <kvm.h> 35#include <string.h> 36 --- 7 unchanged lines hidden (view full) --- 44 45void 46kgdb_trgt_fetch_registers(int regno __unused) 47{ 48 struct kthr *kt; 49 struct pcb pcb; 50 uint64_t r; 51 | 29 30#include <sys/types.h> 31#include <machine/md_var.h> 32#include <machine/pcb.h> 33#include <err.h> 34#include <kvm.h> 35#include <string.h> 36 --- 7 unchanged lines hidden (view full) --- 44 45void 46kgdb_trgt_fetch_registers(int regno __unused) 47{ 48 struct kthr *kt; 49 struct pcb pcb; 50 uint64_t r; 51 |
52 kt = kgdb_thr_lookup(ptid_get_pid(inferior_ptid)); | 52 kt = kgdb_thr_lookup_tid(ptid_get_tid(inferior_ptid)); |
53 if (kt == NULL) 54 return; 55 if (kvm_read(kvm, kt->pcb, &pcb, sizeof(pcb)) != sizeof(pcb)) { 56 warnx("kvm_read: %s", kvm_geterr(kvm)); 57 memset(&pcb, 0, sizeof(pcb)); 58 } 59 60 /* Registers 0-127: general registers. */ --- 73 unchanged lines hidden --- | 53 if (kt == NULL) 54 return; 55 if (kvm_read(kvm, kt->pcb, &pcb, sizeof(pcb)) != sizeof(pcb)) { 56 warnx("kvm_read: %s", kvm_geterr(kvm)); 57 memset(&pcb, 0, sizeof(pcb)); 58 } 59 60 /* Registers 0-127: general registers. */ --- 73 unchanged lines hidden --- |