Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to override disassembly view's BreakpointsAnnotationModel?

Hi All,

 

I will be adding the debug context to the org.eclipse.cdt.dsf.debug.internal.ui.disassembly.provisional.IBreakpointLocationProvider API to address breakpoint/pinning issue that Norman brought up, please let me know if you have any concern.

 

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=369998 for the discussion and proposed changes.

 

Thanks,

Patrick

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Chuong, Patrick
Sent: Friday, January 27, 2012 1:55 PM
To: Norman Yee; CDT General developers list.
Subject: Re: [cdt-dev] How to override disassembly view's BreakpointsAnnotationModel?

 

The target or the viewSite (or id) should be passed to the adapter to handle the pinned view case. Can you open a bug for this issue?

 

From: Norman Yee [mailto:normankyee@xxxxxxxxx]
Sent: Friday, January 27, 2012 1:26 PM
To: Chuong, Patrick; CDT General developers list.
Subject: Re: [cdt-dev] How to override disassembly view's BreakpointsAnnotationModel?

 

Hi Patrick,

 

I store the core id of the breakpoint in the breakpoint's marker attributes so I know which core the breakpoint is set on.  When my adapter is called with the getXYZ() method, it is passed the breakpoint so the adapter can look up the breakpoint's core id but it doesn't know the current context for the disassembly view, right?  e.g., if the breakpoint is set on core 0 and the disassembly view is pinned to core 1, how does the adapter know that the view is pinned to core 1?

 


From: "Chuong, Patrick" <pchuong@xxxxxx>
To: Norman Yee <normankyee@xxxxxxxxx>; CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Sent: Friday, January 27, 2012 1:02 PM
Subject: RE: [cdt-dev] How to override disassembly view's BreakpointsAnnotationModel?

 

Hi Norman,

 

You can provide an adapter for the breakpoint object and implement the IBreakpointLocationProvider interface. Within each of the getXYX() methods, return null for breakpoint that doesn’t belong to the core that is requested by the getXYZ() method. You need a way to figure out which breakpoint belongs to which core.

 

Patrick

 

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Norman Yee
Sent: Friday, January 27, 2012 11:13 AM
To: CDT General developers list.
Subject: [cdt-dev] How to override disassembly view's BreakpointsAnnotationModel?

 

In a multi-core session, the diassembly view shows breakpoints from all cores, but I want it to show only the breakpoints for the current core context.  I looked at the disassembly view's source code and noticed that the BreakpointsAnnotationModel class shows all breakpoints that it gets from the breakpoint manager.   I think the right way to customize it is to override the BreakpointsAnnotationModel class from my custom DSF debugger plugin.  Is it possible to override it?  If so, how do I do it?

 


Back to the top