Community
Participate
Working Groups
From the C/C++ Project view, if you double-click an object file or executable, it naively loads the binary file into the text editor. It appears as garbage.
In case any of the "Cygwin *" binary parser is selected, the expected output is the one from the objdump utility. Even if the corresponding Cygwin*BinaryObject.getContents() returns the correct text input, the text is again lost on the way to the editor!
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=62064. This had been fixed already once.
Targetting to 4.0.
I have fixed the regression of bug 62064, but this does not solve the issue in the general case. E.g. if the binary file is not opened from the Navigator view, the editor will still show garbage. A better solution would be to create a specialized editor associated with binary files which can be opened with the usual FileEditorInput.
Anton, I've just tried a recent nightly build of CDT (200702050601) with Eclipse 3.3M4, but I'm still not able to see anything else than garbage when double-clicking on an object file. I've tried opening a gcc object file both from the Navigator and the C/C++ views. I also confirm that our users are annoyed by this behavior and we'd be interested in a customizable object editor (our tool-chain supports both ELF and a proprietary object format).
(In reply to comment #5) > Anton, I've just tried a recent nightly build of CDT (200702050601) with > Eclipse 3.3M4, but I'm still not able to see anything else than garbage when > double-clicking on an object file. I've tried opening a gcc object file both > from the Navigator and the C/C++ views. From the (Resource) Navigator view, it will always show garbage. This is in contrast to comment 4, where I stated the opposite. Sorry about the confusion. Furthermore, the objdump output is (and was) only implemented for the Cygwin PE binary parser, ie. for ELF and other formats, the binary content is displayed. Implementing this properly needs community help.
Future means you commit to fix it in the Future. Inboxes can't make committments. Moving to '--'.