Hello Filip,
I see what your patch should achieve. But pipetunnel doesn't work although I defined out the serial port detection code according to your patch.
I will post if I'm successful in getting pipetunnel to work on virtual pc.
Thanks, Theo
From: Filip Navara xnavara@volny.cz Reply-To: ReactOS Development List ros-dev@reactos.com To: ReactOS Development List ros-dev@reactos.com Subject: Re: [ros-dev] connect gdb to named pipe in ms virtual pc session Date: Wed, 03 Nov 2004 19:37:21 +0100
Theodor Willax wrote:
a) Do I need to compile the cvs snapshot with special make options to debug trough serial ports?
Generally no, but for Virtual PC you need to get do a CVS build of HAL with hacked serial port detection. The standard detection approach doesn't work in VPC because of "bug" in the emulated hardware. (Yes, it's really broken. It works in Linux because it assumes that two ports always exist and skips the detection. See the Linux source for details.) I don't have the original patch I used while debugging the S3 driver under VPC anymore, but the attached one should work (I hope)...
BTW, I'm not able to answer your other questions, sorry.
Regards, Filip
Index: hal/halx86/kdbg.c
RCS file: /CVS/ReactOS/reactos/hal/halx86/kdbg.c,v retrieving revision 1.8 diff -u -r1.8 kdbg.c --- hal/halx86/kdbg.c 29 Apr 2004 17:06:21 -0000 1.8 +++ hal/halx86/kdbg.c 3 Nov 2004 18:32:30 -0000 @@ -102,6 +102,7 @@ /* clear all modem output bits */ WRITE_PORT_UCHAR (SER_MCR(BaseAddress), 0x10);
+#if 0 /* read the Modem Status Register */ msr = READ_PORT_UCHAR (SER_MSR(BaseAddress));
@@ -123,6 +124,7 @@ */ if ((msr & 0xF0) == 0xF0) { +#endif /* * setup a resonable state for the port: * enable fifo and clear recieve/transmit buffers @@ -133,8 +135,10 @@ READ_PORT_UCHAR (SER_RBR(BaseAddress)); WRITE_PORT_UCHAR (SER_IER(BaseAddress), 0); found = TRUE; +#if 0 } } +#endif
/* restore MCR */ WRITE_PORT_UCHAR (SER_MCR(BaseAddress), mcr);
Ros-dev mailing list Ros-dev@reactos.com http://reactos.com:8080/mailman/listinfo/ros-dev
_________________________________________________________________ Ungestört surfen. MSN Toolbar mit Pop-up-Blocker. http://toolbar.msn.de/ Jetzt kostenlos downloaden!