Community
Participate
Working Groups
DsfSourceDisplayAdapter.openEditor(SourceLookupResult result, IWorkbenchPage page) sets editor id from source lookup result and delegates execution to openEditor(final IWorkbenchPage page, final IEditorInput input, final String id), where last parameter is editor id, but this id is ignored and editor is selected based on input because editor[0] = page.openEditor(input, id, false) is used which matches editor by input. In order to fix this openEditor(input, id, false, IWorkbenchPage.MATCH_ID) should be used. Again (as https://bugs.eclipse.org/bugs/show_bug.cgi?id=460757) this bug is raised by trying to show debug steps in custom editor other than source file editor. Proposed patch in Gerrit: https://git.eclipse.org/r/42594
This change (2af7d6d5926acc33f6faa6ccdf72863920eb54d0) has broken the behaviour of the DsfSourceDisplayAdapter. If any other C Editor is open, (i.e. with other input) the file contents are not updated, but the IP is painted on the editor. To reproduce: 1- Start a C debug session, stopping at main 2- Open another C file that does not have the correct main in it 3- Click on the frame in the stack trace 4- Observe how the IP is drawn on the wrong file Tested with Eclipse Mars and CDT master.
New Gerrit change created: https://git.eclipse.org/r/52106
(In reply to Eclipse Genie from comment #2) > New Gerrit change created: https://git.eclipse.org/r/52106 Not sure of correct process here, so based on my Comment 1 issue I created a revert commit gerrit for review.
I experienced this at our branch and will port fix after I return from vacation in mid Aug.
A revert of the patch was proposed here in the meantime: https://git.eclipse.org/r/#/c/52106/
Gerrit change https://git.eclipse.org/r/52106 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ad52facf4e3c3aa6ee5222475c75ff53363f2bf9