Community
Participate
Working Groups
Build Identifier: 201005241228 You can set a breakpoint by double clicks on the label line in the disassembly view, but it is not possible to remove the breakpoint by double clicks on the same line. To remove the breakpoint, you need to move to the next line where the breakpoint is shifted. Ideally, the breakpoint should be set at the label line. You can double clicks on the source line to set a breakpoint, and the breakpoint is not shifted. Label should have the same behavior as source line breakpoint. Reproducible: Always
Created attachment 185466 [details] Patch for disassembly selection Anton, can you please review this patch? I added one additional API to the IDisassemblySelection, this will enable debugger to retrives label from the selection and plant label (symbolic) breakpoint.
(In reply to comment #1) > Anton, can you please review this patch? I added one additional API to the > IDisassemblySelection, this will enable debugger to retrives label from the > selection and plant label (symbolic) breakpoint. Seems fine, except for a few minor issues: - unused constant CATEGORY_LABELS in DisassemblySelection - missing @since tag for IDisassemblySelection.getLabel() and its implementation
Reviewed by Anton and made the suggested fix and committed to HEAD.
*** cdt cvs genie on behalf of pchuong *** Bug 315443 - [disassembly] Not possible to remove breakpoint in disassembly view with double clicks [*] IDisassemblySelection.java 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/provisional/IDisassemblySelection.java?root=Tools_Project&r1=1.2&r2=1.3 [*] DisassemblySelection.java 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/provisional/DisassemblySelection.java?root=Tools_Project&r1=1.3&r2=1.4 [*] DisassemblyDocument.java 1.12 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/model/DisassemblyDocument.java?root=Tools_Project&r1=1.11&r2=1.12
this looks like it could be useful to us in 7.0.2 , which our next delivery is relying on. would it be possible to get this patch committed to CDT_7_0 as well? the diff makes it appear that it should be straightforward to do so.
I think it is safe to port it back to 7.0.2. Anton, do you have any concern about Kirk's request?
(In reply to comment #6) > I think it is safe to port it back to 7.0.2. > > Anton, do you have any concern about Kirk's request? we would need this pretty quickly if it's going to happen. we have a delivery coming up very soon.
I can do the merge. There are few things that I am not sure and would need clarification from some one that has experience. 1. 7_0 branch is the next 7.x release, right? 2. Is new API allow for 7_0 branch (CDT 7.0.2)? This is an internal provisional API. 3. I'll need to increment the minor version for org.eclipse.cdt.dsf.ui, what will the version be?
(In reply to comment #8) Sorry for the delay, I was out on vacation. I am OK with backporting this fix to 7.0.2. > I can do the merge. There are few things that I am not sure and would need > clarification from some one that has experience. > > 1. 7_0 branch is the next 7.x release, right? Branch cdt_7_0 is for the next 7.0.x release, ie. 7.0.2. > 2. Is new API allow for 7_0 branch (CDT 7.0.2)? This is an internal provisional > API. IDisassemblySelection is marked as @noimplement and the change is backwards compatible, so I don't see a problem with it. > 3. I'll need to increment the minor version for org.eclipse.cdt.dsf.ui, what > will the version be? You don't need to increment the minor version and the micro version was already incremented for 7.0.2.
(In reply to comment #9) Hi Anton, > You don't need to increment the minor version and the micro version was > already incremented for 7.0.2. I am referring to org.eclipse.cdt.dsf.ui plugin's manifest file, tt is giving me an error for the new API. Should the manifest file be incremented? Perhaps I am doing something wrong, I have my API tooling pointed to CDT7.0 master and have @since 2.1 tag for the new API in IDisassemblySelection.
(In reply to comment #10) > I am referring to org.eclipse.cdt.dsf.ui plugin's manifest file, tt is giving > me an error for the new API. Should the manifest file be incremented? Perhaps I > am doing something wrong, I have my API tooling pointed to CDT7.0 master and > have @since 2.1 tag for the new API in IDisassemblySelection. I see. The internal.provisional package is marked as public API. It should be internal, though. Correcting this creates an API error as well, but I think it is the proper thing to do. I have created bug 333946 for that.
I have committed the patch back to the 7_0 branch.
*** cdt cvs genie on behalf of pchuong *** Bug 315443 - [disassembly] Not possible to remove breakpoint in disassembly view with double clicks Port changes from HEAD. [*] DisassemblyDocument.java 1.8.2.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/model/DisassemblyDocument.java?root=Tools_Project&r1=1.8.2.3&r2=1.8.2.4 [*] IDisassemblySelection.java 1.2.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/provisional/IDisassemblySelection.java?root=Tools_Project&r1=1.2&r2=1.2.2.1 [*] DisassemblySelection.java 1.3.2.1 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/provisional/DisassemblySelection.java?root=Tools_Project&r1=1.3&r2=1.3.2.1