[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Tue Jul 6 21:26:51 2004 -->
- <!--x-from-r13: wbuazvyyf ng fcrnxrnfl.arg (Xbua [vyyf) -->
- <!--x-message-id: Pine.LNX.4.44.0407062017110.3527-[email protected] -->
- <!--x-subject: [ale] Q: How can I capture a binary block with emacs/gdb? -->
- <li><em>date</em>: Tue Jul 6 21:26:51 2004</li>
- <li><em>from</em>: johnmills at speakeasy.net (John Mills)</li>
- <li><em>subject</em>: [ale] Q: How can I capture a binary block with emacs/gdb?</li>
I'm debugging a Linux application with gdb running under emacs. My
application receives JPEG images that it caches in dynamically allocated
storage, telling me what it got, as in:
Breakpoint 2, CINet::PostImg(int, int, lbuf) (this=0x805fa00, i=7,
type=2, lBuf=
{len = 9685, buf = 0x80d1a08 "????"}) at INet.cpp:435
I would like to write that 9685-byte block at 0x80d1a0a to a file and look
at it with a JPEG viewer. I haven't been able to find a promising command
combination for emacs and/or gbd to write off a binary block like that,
although it seems a reasonable thing to need sometimes.
Any help from you gurus to a grunt?
TIA.
- John Mills
john.m.mills at alum.mit.edu
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00275" href="msg00275.html">[ale] Q: How can I capture a binary block with emacs/gdb?</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00178.html">[ale] OT: Win98 + Infections</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00180.html">[ale] Sound problems in Debian 2.6 kernel</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00175.html">[ale] Testing. Ignore. Right, I know you won't. I just want to know, can I post?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00275.html">[ale] Q: How can I capture a binary block with emacs/gdb?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00179"><strong>Date</strong></a></li>
<li><a href="threads.html#00179"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>