News for hackers. Stuff that matters.
Re:Show HN: GdbShellPipe – Pipe output of gdb commands to shell by xvilka on Wednesday July 18, 2018 @09:53PM (#17563437)
Similar thing is available within radare2 [1] too, it is available as a small library for different languages and called r2pipe [2].

[1] https://github.com/radareorg/radare2

[2] https://radare.gitbooks.io/radare2book/content/

Re:Show HN: GdbShellPipe – Pipe output of gdb commands to shell by jolmg on Wednesday July 18, 2018 @09:55PM (#17563444)
I didn't understand the example in the README. There is no "main" in those lines, so why did grep output them?
Re:Show HN: GdbShellPipe – Pipe output of gdb commands to shell by monocasa on Wednesday July 18, 2018 @10:12PM (#17563503)
I think they meant to type

  (gdb) shell-pipe disas | grep mov
Re:Show HN: GdbShellPipe – Pipe output of gdb commands to shell by as-j on Thursday July 19, 2018 @12:26AM (#17563933)
Must be because it doesn’t make sense otherwise...I submitted a PR to fix it.
Re:Show HN: GdbShellPipe – Pipe output of gdb commands to shell by hq6 on Thursday July 19, 2018 @02:39AM (#17564325)
Thank you for the PR! That error was the result of copy-pasting output and typing the command manually.
Re:Show HN: GdbShellPipe – Pipe output of gdb commands to shell by wazari972 on Thursday July 19, 2018 @09:27AM (#17566025)
nice and easy ! I remember that the piping functionality was discussed in GDB mailing list long ago, but I guess it never got accepted!

it would have allowed writing

    (gdb) disas | grep mov
instead of

    (gdb) shell-pipe disas | grep mov