redirecting bochs serial port to gdb
Posted: Sun Nov 13, 2011 10:45 am
I've spend the past hour trying to find a way to create some kind of named bidirectional pipe to bind the serial port of bochs to gdb. I have so far been unsuccesfull.
I'm using a machine with ubuntu 11.04 (Natty Narwhal) that is by default configured to use unix98 style pseudoterminals (ie. open /dev/ptmx as master and the pseudoterminal is created in /dev/pts/). I've been unsuccesfull at using these in bochs, letting bochs open /dev/ptmx for the serial port fails somewhere because the other end doesn't show up. My understanding of mkfifo indicates that it creates a unidirectional pipe, making it too unsuited for my purposes.
Does anyone have any suggestions as to what the correct way might be to solve this.
I'm using a machine with ubuntu 11.04 (Natty Narwhal) that is by default configured to use unix98 style pseudoterminals (ie. open /dev/ptmx as master and the pseudoterminal is created in /dev/pts/). I've been unsuccesfull at using these in bochs, letting bochs open /dev/ptmx for the serial port fails somewhere because the other end doesn't show up. My understanding of mkfifo indicates that it creates a unidirectional pipe, making it too unsuited for my purposes.
Does anyone have any suggestions as to what the correct way might be to solve this.