Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337555

Summary: [disassembly][breakpoints] Method breakpoints cannot be created from the disassembly view
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debug-dsfAssignee: Project Inbox <cdt-debug-dsf-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 CC: aleherb+eclipse, cdtdoug, nobody, pchuong
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Marc Khouzam CLA 2011-02-18 06:33:51 EST
We can create method breakpoints when the selection is in the editor but not when the selection is in the disassembly view.
Comment 1 Marc Khouzam CLA 2011-02-18 06:35:07 EST
Toni, would you know if there is a fundamental reason why this is not done?
Comment 2 Anton Leherbauer CLA 2011-02-18 07:10:48 EST
I think it is doable.  We need to get access to the CModel of the underlying file which should be possible using the information from the IDisassemblySelection.
Comment 3 Patrick Chuong CLA 2011-02-18 11:32:33 EST
I have implemented method breakpoint for my debugger using the toggle breakpoint factory. If the toggle action is on a label line, than insert a method breakpoint from the label. You should be able to get the label from the disassembly selection, there is a new API that I put in the IDisassemblySelection to return the label. Will this work for you?
Comment 4 Marc Khouzam CLA 2011-02-18 11:54:47 EST
(In reply to comment #3)
> I have implemented method breakpoint for my debugger using the toggle
> breakpoint factory. If the toggle action is on a label line, than insert a
> method breakpoint from the label. You should be able to get the label from the
> disassembly selection, there is a new API that I put in the
> IDisassemblySelection to return the label. Will this work for you?

Looks promising.
I don't have time to look at it myself, right now though, but I wanted to have the bug written to keep track.