Show HN: GdbShellPipe – Pipe output of gdb commands to shell
1–7 of 7 posts
Re: Show HN: GdbShellPipe – Pipe output of gdb commands to shell
#2Similar thing is available within radare2 [1] too, it is available as a small library for different languages and called r2pipe [2].
Re: Show HN: GdbShellPipe – Pipe output of gdb commands to shell
#3I 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
#4I didn't understand the example in the README. There is no "main" in those lines, so why did grep output them?
I think they meant to type
(gdb) shell-pipe disas | grep movRe: Show HN: GdbShellPipe – Pipe output of gdb commands to shell
#5Re: Show HN: GdbShellPipe – Pipe output of gdb commands to shell
#6Re: Show HN: GdbShellPipe – Pipe output of gdb commands to shell
#7nice 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