* bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from

parse_and_eval_address to u_long before converting it to a pointer
type.
* i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
ps_strings from int to u_long.
* i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
u_long instead of CORE_ADDR.
This commit is contained in:
Mark Kettenis
2004-11-19 21:55:24 +00:00
parent 6b3221b47a
commit 57ac95b8fc
4 changed files with 14 additions and 4 deletions

View File

@@ -52,8 +52,8 @@ _initialize_i386obsd_nat (void)
len = sizeof (_ps);
if (sysctl (mib, 2, &_ps, &len, NULL, 0) == 0)
{
i386obsd_sigtramp_start_addr = (CORE_ADDR)_ps.val - 128;
i386obsd_sigtramp_end_addr = (CORE_ADDR)_ps.val;
i386obsd_sigtramp_start_addr = (u_long) _ps.val - 128;
i386obsd_sigtramp_end_addr = (u_long) _ps.val;
}
}
#endif