summaryrefslogtreecommitdiff
path: root/gdb/bsd-kvm.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-11-19 21:55:24 +0000
committerMark Kettenis <kettenis@gnu.org>2004-11-19 21:55:24 +0000
commit57ac95b8fc8d0d7de2809cdf56ea17777eba2942 (patch)
tree012a5fc6ddc2461cdc7ae46978c1df4de260762f /gdb/bsd-kvm.c
parent6b3221b47a7e47dc7d84cdb855b1e5328bc91a92 (diff)
downloadbinutils-gdb-57ac95b8fc8d0d7de2809cdf56ea17777eba2942.tar.gz
* 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/bsd-kvm.c')
-rw-r--r--gdb/bsd-kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c
index 818a588892a..e561b24cf0d 100644
--- a/gdb/bsd-kvm.c
+++ b/gdb/bsd-kvm.c
@@ -259,7 +259,7 @@ bsd_kvm_pcb_cmd (char *arg, int fromtty)
if (core_kd == NULL)
error ("No kernel memory image.");
- bsd_kvm_paddr = (struct pcb *) parse_and_eval_address (arg);
+ bsd_kvm_paddr = (struct pcb *)(u_long) parse_and_eval_address (arg);
target_fetch_registers (-1);