Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Tapping into the Memory View

Hi, there is an MI event "memory-changed" introduced in GDB 7.6,  DSF-GDB supports it, it updates the cache and propagates/notify the updates to the UI  (see GDBMemory_7_6.java), 
  May be you could experiment with this and see if this would be feasible in your system


/Alvaro 


On Wed, Apr 9, 2014 at 12:23 PM, Antony Burton <aburton@xxxxxxxxxxx> wrote:
Thanks for the reply Marc,

    I did what you said and have been following the different classes such as DsfMemoryBlock. It is in this class that the method getBytesFromAddress is called which reads blocks of memory from the target.
It seems to me that it would be a lot of work to override all the different classes in a similar way to how it's done in the article "Inside the Memory View", so maybe there's an easier way.

All I want to do is periodically update the Memory view, I don't want to change the presentation. Do you think it would be possible to create a thread which loops and calls the method DsfMemoryBlock.getBytesFromAddress() every 2 seconds for example? Would this be enough to update the view? (and could I have access to this method?)

Thanks for you help,

Antony


On 08/04/2014 19:18, Marc Khouzam wrote:
I believe that article is general to the platform.  The Memory View is provided by platform and filled in by CDT.
It is used differently by DSF, but it is used nonetheless.
You can have a look at how DSF uses the MemoryView, by looking at classes like:

IMemoryBlock and its DSF extension
IMemoryBlockRetrieval and its DSF extension

Marc


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@eclipse.org] On Behalf Of Antony Burton
Sent: Tuesday, April 08, 2014 11:39 AM
To: CDT General developers list.
Subject: [cdt-dev] Tapping into the Memory View

Hi,
   I have created a plug-in which extends DSF-GDB and created a custom launch delegate. I use this to send commands to a custom GDBServer such as ones to upload the executable to the target, set thread dependant breakpoints etc. Now I would like to display memory while the target is running and periodically update it.

  I found the eclipse article " Inside the Memory View: A Guide for Debug Providers" (link<http://www.eclipse.org/articles/article.php?file=Article-MemoryView/index.html>). This is just what I want but it seems this is written for a CDI debugger. Could someone please explain how I could adapt this example for DSF?

Thanks,

Antony


_______________________________________________
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