[Vm-dev] How to debug vm without heartbeat interrupting

Igor Stasenko siguctua at gmail.com
Wed Feb 15 18:24:32 UTC 2012


yeah, i remember i was also missing that when debugging..
i found stuff about signals myself, but not the other parts.

Thanks.

On 15 February 2012 19:13, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>
>
>
> On Wed, Feb 15, 2012 at 4:40 AM, Javier Pimás <elpochodelagente at gmail.com> wrote:
>>
>>
>> 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?
>
>
> Yes, at two levels.  First, signals, via
>
> handle SIGUSR1 nostop noprint noignore
> handle SIGUSR2 nostop noprint noignore
> handle SIGALRM nostop noprint noignore
> handle SIGPOLL nostop noprint noignore
> handle SIGPIPE nostop noprint noignore
>
> etc.  This can and should be put in ~/.gdbinit (find mine attached; note its called gdbinit only because I can'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 :) )
>
>
> Second, to avoid the effect that the heartbeat has on control flow (e.g. causing a process switch) you can set suppressHeartbeatFlag to 1 via
>
> (gdb) set var suppressHeartbeatFlag = 1
>
> HTH
> Eliot
>
>>
>> Cheers,
>> Javier
>>
>> --
>> Lic. Javier Pimás
>> Ciudad de Buenos Aires
>
>
>



-- 
Best regards,
Igor Stasenko.


More information about the Vm-dev mailing list