[ros-dev] connect gdb to named pipe in ms virtual pc session

Filip Navara xnavara at volny.cz
Wed Nov 3 19:37:21 CET 2004


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

-------------- next part --------------
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);


More information about the Ros-dev mailing list