Show HN: GdbShellPipe – Pipe output of gdb commands to shell (github.com) 36 points by hq6 7y ago ↗ HN
[–] xvilka 7y ago ↗ 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/
[–] jolmg 7y ago ↗ I didn't understand the example in the README. There is no "main" in those lines, so why did grep output them? [–] monocasa 7y ago ↗ I think they meant to type (gdb) shell-pipe disas | grep mov [–] as-j 7y ago ↗ Must be because it doesn’t make sense otherwise...I submitted a PR to fix it. [–] hq6 7y ago ↗ Thank you for the PR! That error was the result of copy-pasting output and typing the command manually.
[–] monocasa 7y ago ↗ I think they meant to type (gdb) shell-pipe disas | grep mov [–] as-j 7y ago ↗ Must be because it doesn’t make sense otherwise...I submitted a PR to fix it. [–] hq6 7y ago ↗ Thank you for the PR! That error was the result of copy-pasting output and typing the command manually.
[–] as-j 7y ago ↗ Must be because it doesn’t make sense otherwise...I submitted a PR to fix it. [–] hq6 7y ago ↗ Thank you for the PR! That error was the result of copy-pasting output and typing the command manually.
[–] hq6 7y ago ↗ Thank you for the PR! That error was the result of copy-pasting output and typing the command manually.
[–] wazari972 7y ago ↗ 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
6 comments
[ 3.9 ms ] story [ 25.9 ms ] thread[1] https://github.com/radareorg/radare2
[2] https://radare.gitbooks.io/radare2book/content/
it would have allowed writing
instead of