diff options
author | jhb <jhb@FreeBSD.org> | 2000-12-12 23:21:24 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-12-12 23:21:24 +0000 |
commit | 43e413488ae006321da5014d529f25dfec4f15ea (patch) | |
tree | 98e0cdcd4098ba00fa9441f9615ab51c2a831f8a /gnu | |
parent | 36e782e2e6f7c0ef9208ccdae2bf70b0baaebdef (diff) | |
download | FreeBSD-src-43e413488ae006321da5014d529f25dfec4f15ea.zip FreeBSD-src-43e413488ae006321da5014d529f25dfec4f15ea.tar.gz |
Catch up to the new kinfo_proc.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c | 2 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c | 4 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/kvm-fbsd.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c b/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c index 75824d3..6d6cd7a 100644 --- a/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c +++ b/gnu/usr.bin/binutils/gdb/i386/freebsd-nat.c @@ -109,7 +109,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr) * First get virtual address of user structure. Then calculate offset. */ memcpy(&tmp_uaddr, - &((struct user *) core_reg_sect)->u_kproc.kp_proc.p_addr, + &((struct user *) core_reg_sect)->u_kproc.ki_addr, sizeof(tmp_uaddr)); offset = -reg_addr - (int) tmp_uaddr; diff --git a/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c b/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c index a08254d..b2e8edf 100644 --- a/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c +++ b/gnu/usr.bin/binutils/gdb/i386/kvm-fbsd.c @@ -471,7 +471,7 @@ set_proc_cmd (arg, from_tty) kp = kvm_getprocs(core_kd, KERN_PROC_PID, paddr, &cnt); if (!cnt) error("invalid pid"); - if (set_proc_context((CORE_ADDR)kp->kp_eproc.e_paddr)) + if (set_proc_context((CORE_ADDR)kp->ki_paddr)) error("invalid proc address"); } } @@ -707,7 +707,7 @@ struct proc *p; return (0); if (lp.p_pid != pid) continue; - kp.kp_eproc.e_paddr = p; + kp.ki_paddr = p; *cnt = 1; return (1); } diff --git a/gnu/usr.bin/binutils/gdb/kvm-fbsd.c b/gnu/usr.bin/binutils/gdb/kvm-fbsd.c index a08254d..b2e8edf 100644 --- a/gnu/usr.bin/binutils/gdb/kvm-fbsd.c +++ b/gnu/usr.bin/binutils/gdb/kvm-fbsd.c @@ -471,7 +471,7 @@ set_proc_cmd (arg, from_tty) kp = kvm_getprocs(core_kd, KERN_PROC_PID, paddr, &cnt); if (!cnt) error("invalid pid"); - if (set_proc_context((CORE_ADDR)kp->kp_eproc.e_paddr)) + if (set_proc_context((CORE_ADDR)kp->ki_paddr)) error("invalid proc address"); } } @@ -707,7 +707,7 @@ struct proc *p; return (0); if (lp.p_pid != pid) continue; - kp.kp_eproc.e_paddr = p; + kp.ki_paddr = p; *cnt = 1; return (1); } |