Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] MemoryRendering. Get memory content for custom View

Thanks Samantha,
 
I just need my custom view to have the memory renderings for later representation of images in memory- there is such a need for debuging the specific embedded target. I got the feeling that I can either do it in higher level, namely in debug.ui, or in lower GDB CLI, I dont know which is better, memory rendering will be my first try.
 
I found your tutorial very helpful, yet I am still missing the exercise plugin example.debug.filebrowser, and maybe some more further docs, would you be so kind to provide me that?
 
Thanks for the help, maybe someone has highly experienced in converting a memory renderings to images can point me to the right direction?

Best,
On 11/8/06, Samantha Chan <chanskw@xxxxxxxxxx> wrote:
Hi,

There is no code sample available to do that,

But you can also find more information on the Memory View and its framework
in this tutorial.
http://www.eclipse.org/eclipse/debug/documents/debugger_Advanced-Debug-Tutorial.pdf


You can fetch memory content by using the IMemoryBlock or
IMemoryBlockExtension interfaces.  To re-use the renderings provided by the
platform and show them in your custom view, you will have to do the
following:
  Your view needs to implement IMemoryRenderingSite
  Your view will have to have a container to host the renderings.  The
  container must implement IMemoryRenderingContainer
  Your view can find out about memory blocks by listening to events from
  the memory block manager.
  Your view can find out what renderings are available by querying that
  information from the memory rendering manager.

You can show a memory renderings in a custom view.  However, I am curious
why you needed the custom view.  Is there something lacking in the Memory
View that forces you to go down this path?

To show your view under "Windows->Show View->Your View", you need to extend
from the "org.eclipse.ui.perspectiveExtensions" extension point and create
a view shortcut.

Thanks...
Samantha





            "Haoquan JIANG"
            <haoquan.jiang@gm
            ail.com>                                                   To
            Sent by:                  platform-debug-dev@xxxxxxxxxxx
            platform-debug-de                                          cc
            v-bounces@eclipse
            .org                                                  Subject
                                      [platform-debug-dev]
                                      MemoryRendering. Get memory content
            11/08/2006 09:32          for custom     View
            AM


            Please respond to
            "Eclipse Platform
             Debug component
            developers list."
            <platform-debug-d
             ev@xxxxxxxxxxx>






Hi, all

I am working on embedded target debug in Eclipse.
I am looking for answer to: creating my own action and creating a memory
rendering when the action is invoked.
I have seen the following thread:
http://dev.eclipse.org/mhonarc/lists/platform-debug-dev/msg00972.html, but
it is not completely helpful, since it uses MemoryView for display. I would
like to generate the memory rendering in my own View and thereafter convert
the memory block into image data.

Is there any sample code snippets available?

So can I fetch the memory contents by querying on specific memory
locations, show them in my custom view other than the debug views?

Btw, how can I pack my own view into the category of  debug views so that
user can see it directly Window->Show View->MyView?

Thanks for your help.

--
Jiang,Haoquan

NIT
21073 Hamburg _______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-debug-dev


_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-debug-dev



--
Jiang,Haoquan

 NIT
21073 Hamburg

Back to the top