qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v10 12/24] replay: introduce breakpoint at the s


From: Pavel Dovgalyuk
Subject: Re: [Qemu-devel] [PATCH v10 12/24] replay: introduce breakpoint at the specified step
Date: Fri, 18 Jan 2019 08:34:59 +0300

> From: Markus Armbruster [mailto:address@hidden
> Pavel Dovgalyuk <address@hidden> writes:
> 
> > This patch introduces replay_break, replay_delete_break
> > qmp and hmp commands.
> > These commands allow stopping at the specified instruction.
> > It may be useful for debugging when there are some known
> > events that should be investigated.
> > replay_break command has one argument - number of instructions
> > executed since the start of the replay.
> > replay_delete_break removes previously set breakpoint.
> >
> > Signed-off-by: Pavel Dovgalyuk <address@hidden>
> >
> > --
> > +
> > +static void replay_break(uint64_t icount, QEMUTimerCB callback, void 
> > *opaque)
> > +{
> > +    assert(replay_mode == REPLAY_MODE_PLAY);
> > +    assert(replay_mutex_locked());
> > +    assert(replay_break_icount >= replay_get_current_step());
> 
> The identifier replay_get_current_step() is one of the few remaining
> instances of "step" terminology.  Whether to normalize them to "icount"
> is entirely up to you.

This is already done with the last patch in the series.

Pavel Dovgalyuk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]