Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Antwort: Re: Add Monitor Button of Model Vew is disabled -- Impossible to view memory in debug view

Hello,

Here are the key parts:

  • The memory view is org.eclipse.debug.internal.ui.views.memory.MemoryView, and the classes in the same package
  • The interfaces representing the data model include org.eclipse.debug.core.model.IMemoryBlockRetrieval and org.eclipse.debug.core.model.IMemoryBlock
  • The interface that connects the platform memory model to the DSF memory model is org.eclipse.cdt.dsf.debug.internal.provisional.model.IMemoryBlockRetrievalManager
  • The interface for the memory service in DSF is org.eclipse.cdt.dsf.debug.service.IMemory

For those interface listed above you can use "Type Hierarchy" in Eclipse to explore the different implementations, depending on which versions of GDB. In the same order as above, the concrete classes are:
  • org.eclipse.cdt.dsf.gdb.internal.memory.GdbMemoryBlockRetrieval and org.eclipse.cdt.dsf.gdb.internal.memory.GdbMemoryBlock
  • org.eclipse.cdt.dsf.gdb.internal.memory.GdbMemoryBlockRetrievalManager
  • org.eclipse.cdt.dsf.gdb.service.GDBMemory (with some of the subclasses providing specialization for specific versions of GDB)

The above is the overview, you probably want breakpoints on:
  • AddMemoryBlockAction line: 395: "setEnabled(MemoryViewUtil.isValidContext(debugContext));"
  • RetargetAddMemoryBlockAction line: 67: updateAction(Object) method
to identify why/when the add memory action is not being enabled properly. 

I hope that helps.

Jonah


~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


On Thu, 8 Nov 2018 at 08:44, Bewoayia Kebianyor <Bewoayia.Kebianyor@xxxxxxxx> wrote:
Hello Jonah,

thanks for the quick reply. I had selected the thread/frame from the "Debug" View but it didn't work. Did the same when I received your reply, but there is no change. Can you please let me know in which package this is implemented. I would like to debug the code is possible (When the Memory View is selected from the MenuItem Window -> Show view -> Memory.

Thanks and Regards,

Bewoayia

-------------
Dipl.- Ing. Bewoayia Kebianyor
Researcher - Hardware/Software Design Methodology Group

OFFIS e.V. - Institut für Informatik
FuE Bereich Verkehr | R&D Division Transportation
Escherweg 2 - 26121 Oldenburg - Germany
Phone/Fax.: +49 441 9722 237/-278
E-Mail: bewoayia.kebianyor@xxxxxxxx
URL: http://www.offis.de

Registergericht: Amtsgericht Oldenburg VR 1956
Vorstand: Prof. Dr.-Ing. Wolfgang H. Nebel (Vorsitzender), Prof. Dr. techn. Susanne Boll-Westermann, Prof. Dr.-Ing. Axel Hahn, Prof. Dr.-Ing. Andreas Hein, Prof. Dr. Sebastian Lehnhoff

-----cdt-dev-bounces@xxxxxxxxxxx schrieb: -----
An: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Von: "Jonah Graham"
Gesendet von: cdt-dev-bounces@xxxxxxxxxxx
Datum: 07.11.2018 15:32
Betreff: Re: [cdt-dev] Add Monitor Button of Model Vew is disabled -- Impossible to view memory in debug view

Hi Bewoayia,

The issue AFAICT is that your selection in the "Debug" view is gdb rather than a thread/frame for which you can examine memory on. Try selecting (in the Debug view) the Thread, that should make it work.

HTH
Jonah

~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


On Wed, 7 Nov 2018 at 14:01, Bewoayia Kebianyor <Bewoayia.Kebianyor@xxxxxxxx> wrote:
Hello,

 I am debugging a Hardware Simulation using eclipse and would like to read out some memory sections, but unfornately the button to add Monitors to the Memory View of the debug perspective is disabled. I built the Eclipse IDE from eclipse SDK/CDT (C/C++ Development Tools   9.5.3.20180803190).

 Can any one please let me know how to enable this? In which package or plugin is the Model View implemented.

 Attached is a screen shot or the issue.

 Thanks and Regards,

 Bewoayia

 -------------
 Dipl.- Ing. Bewoayia Kebianyor
 Researcher - Hardware/Software Design Methodology Group

 OFFIS e.V. - Institut für Informatik
 FuE Bereich Verkehr | R&D Division Transportation
 Escherweg 2 - 26121 Oldenburg - Germany
 Phone/Fax.: +49 441 9722 237/-278
 E-Mail: bewoayia.kebianyor@xxxxxxxx
 URL: http://www.offis.de

 Registergericht: Amtsgericht Oldenburg VR 1956
 Vorstand: Prof. Dr.-Ing. Wolfgang H. Nebel (Vorsitzender), Prof. Dr. techn. Susanne Boll-Westermann, Prof. Dr.-Ing. Axel Hahn, Prof. Dr.-Ing. Andreas Hein, Prof. Dr. Sebastian Lehnhoff_______________________________________________
 cdt-dev mailing list
 cdt-dev@xxxxxxxxxxx
 To change your delivery options, retrieve your password, or unsubscribe from this list, visit
 https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top