kgdb: agent-proxy: Initial version of kdmx.c

Initial version of kdmx.c

kdmx is a program designed to split GDB packets and other trafic coming
from a target on a serial line into 2 separate pseudo-ttys.

Author: Tom Rini <trini@mvista.com>
Significant update by: Frank Rowand <frank.rowand@sonymobile.com>

Updates include:
   - Fix issues that prevented use of serial USB port.
   - Detect and handle I/O errors.
   - Add additional error checking.
   - Detect and handle disconnect by gdb and terminal emulator.
   - Add ability to send BREAK to serial port.
   - Replace do_read() and do_write() debug mode.
   - Expand usage text.
   - Allow terminal emulator to send the null character to the serial port.
   - Restructure and change to Linux kernel coding style.
   - General clean up.

Signed-off-by: Frank Rowand <frank.rowand@sonymobile.com>
Acked-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
1 file changed