head	1.3;
access;
symbols
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2
	RELEASE_5_3_0:1.2
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1
	RELEASE_4_1_1:1.1
	RELEASE_4_1_0:1.1
	RELEASE_3_5_0:1.1
	RELEASE_4_0_0:1.1
	RELEASE_3_4_0:1.1
	RELEASE_3_3_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2006.02.03.17.27.41;	author vs;	state dead;
branches;
next	1.2;

1.2
date	2004.09.21.17.18.56;	author leeym;	state Exp;
branches;
next	1.1;

1.1
date	99.09.08.18.02.33;	author jdp;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Remove expired port
@
text
@--- kvm-fbsd.c.orig	Sun Feb  7 20:36:10 1999
+++ kvm-fbsd.c	Sat Sep 18 11:23:31 2004
@@@@ -22,6 +22,7 @@@@
 #include <errno.h>
 #include <signal.h>
 #include <fcntl.h>
+#include <sys/types.h>
 #include <sys/sysctl.h>
 #include <sys/param.h>
 #include <sys/time.h>
@@@@ -361,10 +362,19 @@@@
   struct user *uaddr;
 
   /* find the pcb for the current process */
+#if defined(__FreeBSD__) && __FreeBSD__ >= 5
+  if (cur_proc == NULL || kvread (&cur_proc->p_uarea, &uaddr))
+#else
   if (cur_proc == NULL || kvread (&cur_proc->p_addr, &uaddr))
+#endif
     error ("cannot read u area ptr for proc at %#x", cur_proc);
+#if defined(__FreeBSD__) && __FreeBSD__ >= 5
+  if (read_pcb (core_kd, (CORE_ADDR)&uaddr->u_kproc.ki_pcb) < 0)
+    error ("cannot read pcb at %#x", &uaddr->u_kproc.ki_pcb);
+#else
   if (read_pcb (core_kd, (CORE_ADDR)&uaddr->u_pcb) < 0)
     error ("cannot read pcb at %#x", &uaddr->u_pcb);
+#endif
 }
 
 static void
@@@@ -450,7 +451,11 @@@@
       kp = kvm_getprocs(core_kd, KERN_PROC_PID, paddr, &cnt);
       if (!cnt)
         error("invalid pid");
+#if defined(__FreeBSD__) && __FreeBSD__ >= 5
+      if (set_proc_context((CORE_ADDR)kp->ki_paddr))
+#else
       if (set_proc_context((CORE_ADDR)kp->kp_eproc.e_paddr))
+#endif
         error("invalid proc address");
   }
 }
@@@@ -643,7 +644,11 @@@@
             return (0);
        if (lp.p_pid != pid)
            continue;
+#if defined(__FreeBSD__) && __FreeBSD__ >= 5
+       kp.ki_paddr = p;
+#else
        kp.kp_eproc.e_paddr = p;
+#endif
        *cnt = 1;
        return (1);
   }
@@@@ -835,9 +836,8 @@@@
   supply_register (6, (char *)&pcb.pcb_esi);
   supply_register (7, (char *)&pcb.pcb_edi);
   supply_register (PC_REGNUM, (char *)&pcb.pcb_eip);
-  for (i = 9; i < 13; ++i)		/* eflags, cs, ss, ds, es */
+  for (i = 9; i < 14; ++i)		/* eflags, cs, ss, ds, es, fs */
     supply_register (i, (char *)&noreg);
-  supply_register (14, (char *)&pcb.pcb_fs);
   supply_register (15, (char *)&pcb.pcb_gs);
 
   /* XXX 80387 registers? */
@@@@ -919,7 +919,7 @@@@
 #if 0
   kcore_stratum,		/* to_stratum */
 #else
-  NULL,				/* haven't yet found this one... */
+  0,				/* haven't yet found this one... */
 #endif
   NULL,				/* to_next */
   0,				/* to_has_all_memory */
@


1.2
log
@- unbreak this port on 5.x
- utilize PORTNAME and PORTVERSION

PR:		71839
Submitted by:	leeym
Approved by:	portmgr (marcus), jdp (maintainer)
@
text
@@


1.1
log
@Make this port build again under both 3.x-stable and 4.x-current.
It used to depend on a bunch of files from the FreeBSD source tree.
But the import of gdb-4.18 and the restructuring connected with
that broke the port.  I have created a second distfile containing
the needed files, and this port now gets them from there.

Also mark this port broken for everything except i386/elf.  I don't
have time to fix the other platforms before the 3.3-RELEASE ports
freeze.
@
text
@d1 55
a55 3
--- kvm-fbsd.c.orig	Sun Feb  7 04:36:10 1999
+++ kvm-fbsd.c	Wed Sep  8 10:38:14 1999
@@@@ -835,9 +835,8 @@@@
d66 9
@

