TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: GdbShellPipe – Pipe output of gdb commands to shell

36 pointsby hq6almost 7 years ago

3 comments

xvilkaalmost 7 years ago
Similar thing is available within radare2 [1] too, it is available as a small library for different languages and called r2pipe [2].<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;radareorg&#x2F;radare2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;radareorg&#x2F;radare2</a><p>[2] <a href="https:&#x2F;&#x2F;radare.gitbooks.io&#x2F;radare2book&#x2F;content&#x2F;" rel="nofollow">https:&#x2F;&#x2F;radare.gitbooks.io&#x2F;radare2book&#x2F;content&#x2F;</a>
jolmgalmost 7 years ago
I didn&#x27;t understand the example in the README. There is no &quot;main&quot; in those lines, so why did grep output them?
评论 #17563503 未加载
wazari972almost 7 years 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!<p>it would have allowed writing<p><pre><code> (gdb) disas | grep mov </code></pre> instead of<p><pre><code> (gdb) shell-pipe disas | grep mov</code></pre>