I am using GDB to debug a remote target: I start GDB then type target remote foo:1234
. I also communicate with the target via a serial port (note: GDB is not connected over this serial port, but over a separate JTAG interface via OpenOCD). So I have two terminals open: one with Minicom and one with GDB.
When you debug a "normal" inferior in GDB, its stdin
and stdout
are on the same TTY as GDB (more info here).
Does anyone know if it's possible to achieve that for a remote target - that is have GDB connect to the serial port (as well as the GDB server) so I can do I/O with the target from within the GDB serssion?