diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-11-19 21:55:24 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-11-19 21:55:24 +0000 |
commit | 57ac95b8fc8d0d7de2809cdf56ea17777eba2942 (patch) | |
tree | 012a5fc6ddc2461cdc7ae46978c1df4de260762f /gdb/i386obsd-nat.c | |
parent | 6b3221b47a7e47dc7d84cdb855b1e5328bc91a92 (diff) | |
download | gdb-57ac95b8fc8d0d7de2809cdf56ea17777eba2942.zip gdb-57ac95b8fc8d0d7de2809cdf56ea17777eba2942.tar.gz gdb-57ac95b8fc8d0d7de2809cdf56ea17777eba2942.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/i386obsd-nat.c')
-rw-r--r-- | gdb/i386obsd-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386obsd-nat.c b/gdb/i386obsd-nat.c index 68cc790..cb4bfcf 100644 --- a/gdb/i386obsd-nat.c +++ b/gdb/i386obsd-nat.c @@ -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 |