[linux-sh:03389] serial port conflicts

Min ZOU <[email protected]> Wed, 26 Jan 2005 17:25:05 +0800
Newsgroups gmane.linux.ports.sh.general,gmane.linux.ports.sh.devel
Message-ID <[email protected]>
Hi,

I have implemented a gdb stub for a SH2 target based on "sh-stub.c" from 
GDB-v3.6 source. Now some basic features like step, break, cont, memory 
read/write, etc. are tested successfully.

The gdb stub and gdb on host communicate via remote serial protocol. 
However I have a problem to debug an application program, which accesses 
the same serial port used by gdb, e.g. I/O functions like "putstring()", 
"getchar()", etc. In my case, "putstring()" cannot display any message 
in gdb console, and "getchar()" cannot receive any input.

I guess there is a conflict between gdb and application program to 
access the same serial port. I'd like to hear any advice on solving this 
problem.

Thanks in advance!

-- 
Best Regards,
Min