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
commita0bec98cff8db9b98efb565a53e20592515c4325 (patch)
tree84569890913471cbaa37051db29dea8c537b5485 /gdb/bsd-kvm.c
parenta6b6fb7b821d8e572d2be41cb6a50073c928fb24 (diff)
downloadgdb-a0bec98cff8db9b98efb565a53e20592515c4325.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);