Catch up to the new kinfo_proc.

This commit is contained in:
John Baldwin 2000-12-12 23:21:24 +00:00
parent eb1fc88909
commit 65e26c5e18
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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);
}

View File

@ -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);
}