Disassembly Editor [message #1724410] |
Tue, 23 February 2016 13:10  |
Eclipse User |
|
|
|
When attaching to a process without having any source code, it shows the "No source available" editor.
This can lead to a situation where only the "View Disassembly" button is visible:

In that case, it seems it would make more sense to use the Disassembly Editor instead of the Disassembly View. Also, if there is only one option for the user "View Disassembly", why not show directly the disassembly editor without clicking on a button first?
That way, if the user clicks on a method in the debug view, the disassembly editor is shown directly.
I wanted to implement this by myself, but I am not very deep into the CDT code.
I figured out that it probably would be best to implement it in the DsfSourceDisplayAdapter class, which can set the editor to the disassembly editor.
I am not sure how I to construct the DisassemblyEditorInput.
But I think I'd need a ICDebugElement for this. But aren't these only available when I have a normal C(++) debug target, which is not the case here?
How can I use a DisassemblyEditor with an attached process?
Thank you very much in advance
[Updated on: Tue, 23 February 2016 13:12] by Moderator
|
|
|
|
|
|
Re: Disassembly Editor [message #1724431 is a reply to message #1724421] |
Tue, 23 February 2016 17:03  |
Eclipse User |
|
|
|
Marc,
Can you repost this last question on cdt-dev mailing list https://dev.eclipse.org/mailman/listinfo/cdt-dev . The forum is primarily user support and cdt-dev is developing CDT itself as you are now doing!
I am not too sure about what the default should be. There are two use cases, each of which needs a different default, or other dealing with:
1) User is doing (typically) embedded development with their source code in an editor (on the left) and the disassembly view (on the right). In this case if I stepped into some code that did not have source lookup option (i.e. your above screenshot case) I wouldn't want or expect the location of my disassembly stepping to change.
2) User is doing (typically) host development where they would rarely or ever use the disassembly view because it is too low level. In this case having the disassembly editor used in your above case makes perfect sense.
That said, you can mitigate against option 1 by having the disassembly in both the editor and the view for your use case.
Jonah
|
|
|
Powered by
FUDForum. Page generated in 0.03026 seconds