Does logging work with fifo?
Peng Yu <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CABrM6wm-R87+SWvqys6QBQNaF1D0OXtDfoRrTgRzQNW3N0D4pw@mail.gmail.com> |
I use the following command in the batch mode to print out the backtrace information. /tmp/tmp.TNLBr685Zp is a fifo. ### set logging redirect set logging file /tmp/tmp.TNLBr685Zp set logging on commands 1-2644 backtrace 2 continue end run ### While the gdb process runs in the background (via & in shell), the fifo is catted (via the command cat) and piped (via pipeline '|' in shell) to a following process for reading and processing the logging output. However, it seems that sometimes it finishes prematurely. I have no clue what the problem is. Could it be that logging does not work well with fifo? Thanks. -- Regards, Peng