(oops, let me reply again; there are *three* ways :) )<br><br><div class="gmail_quote">On Wed, Feb 15, 2012 at 4:40 AM, Javier Pimás <span dir="ltr">&lt;<a href="mailto:elpochodelagente@gmail.com">elpochodelagente@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>I want to debug asm instruction per instruction with gdb, but the heartbeat keeps interrupting. Is there a way to disable it or make gdb ignore it in some way?</blockquote>
<div><br></div><span class="Apple-style-span" style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><div>Yes, at three levels.  First, signals, via</div><div><br></div><div><div>handle SIGUSR1 nostop noprint noignore</div>
<div>handle SIGUSR2 nostop noprint noignore</div><div>handle SIGALRM nostop noprint noignore</div><div>handle SIGPOLL nostop noprint noignore</div><div>handle SIGPIPE nostop noprint noignore</div></div><div><br></div><div>
etc.  This can and should be put in ~/.gdbinit (find mine attached; note its called gdbinit only because I can&#39;t attach .gdbinit; you need to rename it when you install it; pbreg prints my Bochs instance in the JIT simulator; feel free to delete that :) )</div>
<div><br></div><div><br></div><div>Second, to avoid the effect that the heartbeat has on control flow (e.g. causing a process switch) you can set suppressHeartbeatFlag to 1, while running via</div><div><br></div><div>(gdb) set var suppressHeartbeatFlag = 1</div>
<div><br></div><div>or from start-up via the -noheartbeat flag, e.g.</div><div><br></div><div>(gdb) run -noheartbeat myimage.image</div><div><br></div><div>HTH</div><div>Eliot</div></span><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Cheers,</div><div>Javier<br clear="all"><div>

<br></div>-- <br>Lic. Javier Pimás<br>Ciudad de Buenos Aires</div></blockquote></div>