Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Question about change events on CMemoryBlockExtension

Derek,

Yes, that's what you would expect. A CHANGE event is always fired before
SUSPEND to reset the memory view and another CHANGE event is fired after the
target is suspended if the content of the memory block has changed.

Mikhail
----- Original Message ----- 
From: "Derek Morris" <dmsubs@xxxxxxxxxxxxx>
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Sent: Wednesday, July 19, 2006 6:59 AM
Subject: Re: [cdt-dev] Question about change events on CMemoryBlockExtension


> Mikhail,
>
> Thanks for the reply - sorry for the delay in replying, as I have been
> on vacation.
>
> I have traced the events that are being received by my plugin. It seems
> that I *always* receive a CHANGE before the SUSPEND. Is this what you
> would expect? If not, any suggestions on what I am doing wrong?
>
> Thanks!
> ---
> Derek
>
> Mikhail Khodjaiants wrote:
> > Derek,
> >
> > The CHANGE event fired after RESUME but before SUSPEND is used to reset
> > the memory view. Another CHANGE event is fired after SUSPEND to notify
> > the memory view that memory has changed.
> >
> > Mikhail
> > ----- Original Message ----- From: "Derek Morris" <dmsubs@xxxxxxxxxxxxx>
> > To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
> > Sent: Wednesday, July 05, 2006 1:34 PM
> > Subject: [cdt-dev] Question about change events on CMemoryBlockExtension
> >
> >
> >> Hi,
> >>
> >> I am writing a plugin that displays some data out of a (debug target's)
> >> memory. I have allocated a CMemoryBlockExtension and am able to get
data
> >> out correctly.
> >>
> >> I have a DebugEventHandler which is monitoring for DebugEvent.CHANGE
> >> events on the CMemoryBlockExtension, which I am seeing OK. So, while
the
> >> program is supended on a breakpoint, I can use the Memory monitor to
> >> change the memory I am displaying. I see the change, and am able to
> >> update my display.
> >>
> >> When I step the program, I see the CHANGE event, so try to update my
> >> display. However, if I try to getBytesFromAddress on seeing the CHANGE
> >> event, I get an exception that 'The target is not suspended'.
> >>
> >> So, I decided to monitor for DebugEvent.SUSPEND and DebugEvent.RESUME
> >> messages. It seems that I am seeing the CHANGE event after the RESUME,
> >> but before the SUSPEND...
> >>
> >> What is the correct protocol for using the CHANGE event and to then
read
> >> the memory that has changed?
> >>
> >> BTW: If it makes any difference, I am using GDB to a remote (embedded)
> >> debug target.
> >>
> >> Thanks in advance for any help you can provide.
> >>
> >> ---
> >> Derek
> >> _______________________________________________
> >> cdt-dev mailing list
> >> cdt-dev@xxxxxxxxxxx
> >> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top