Reputation: 2401
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?
Upvotes: 2
Views: 446
Reputation: 2401
It doesn't look like there is currently a general solution to this problem. There was some discussion on the mailing list. Chris Stratton has suggested it might be a fundamentally bad idea anyway! I'll be sure to update here if I come up with anything that might be useful to others.
Upvotes: 0