Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337555 - [disassembly][breakpoints] Method breakpoints cannot be created from the disassembly view
Summary: [disassembly][breakpoints] Method breakpoints cannot be created from the disa...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-18 06:33 EST by Marc Khouzam CLA
Modified: 2020-09-04 15:19 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.