Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Linux Tools Project » gcov plugin on windows(some problems with gcov on windows with V0.6)
gcov plugin on windows [message #847414] Tue, 17 April 2012 09:23 Go to next message
Jochen Krauss is currently offline Jochen KraussFriend
Messages: 2
Registered: April 2012
Junior Member
I'm using Helios on Win7/64 an GCov together with CodeSourcery toolchain for a embedded ARM platform (STM32). I'm dumping the gcda files via serial RS232 interface.
Selecting a gcno/gcda file and showing the coverage for a single c/cpp-file works perfect. Showing the coverage for the whole binary file (by selecting the elf-file) only shows the empty gcov-tab with program runs = 0 but the correct program file.

Updating to the Linux Tools V0.6 results in an exception when showing the coverage of a single file (s.below).
My question is now, what have I to do to get the complete coverage, is it a problem of the elf-file or Windows paths ? How is the link between the elf-file and the gcda/gcno file spread over several directories? Can I do some test on the console by direct invoking gcov?

!ENTRY org.eclipse.linuxtools.gcov 4 4 2012-04-17 09:43:52.185
!MESSAGE An error occured during analysis: unable to retrieve gcov data
at org.eclipse.linuxtools.gcov.parser.CovManager.getGCDALocations(
at org.eclipse.linuxtools.gcov.view.CovView.displayCovResults(
at org.eclipse.ui.internal.EditorManager$
at org.eclipse.swt.custom.BusyIndicator.showWhile(
at org.eclipse.ui.internal.EditorManager.openExternalEditor(
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(
at org.eclipse.ui.internal.EditorManager.openEditor(
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(
at org.eclipse.ui.internal.WorkbenchPage.access$11(
at org.eclipse.ui.internal.WorkbenchPage$
at org.eclipse.swt.custom.BusyIndicator.showWhile(
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
at org.eclipse.ui.ide.IDE.openEditor(
at org.python.pydev.navigator.actions.PyOpenResourceAction.openFiles(
at org.eclipse.ui.navigator.CommonNavigatorManager$
at org.eclipse.ui.OpenAndLinkWithEditorHelper$
at org.eclipse.jface.viewers.StructuredViewer$
at org.eclipse.ui.internal.JFaceUtil$
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(
at org.eclipse.ui.navigator.CommonViewer.handleOpen(
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(
at org.eclipse.jface.util.OpenStrategy.access$2(
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.ui.internal.Workbench.runEventLoop(
at org.eclipse.ui.internal.Workbench.runUI(
at org.eclipse.ui.internal.Workbench.access$4(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
Re: gcov plugin on windows [message #847552 is a reply to message #847414] Tue, 17 April 2012 12:20 Go to previous messageGo to next message
Xavier Raynaud is currently offline Xavier RaynaudFriend
Messages: 19
Registered: February 2012
Junior Member

Gcov plugins depends on binutils.

It should work with cygwin binutils, as long as they are present in PATH.
If you have cross-compiled binutils for ARM available on your host, it's possible to use them instead... but requires some engineering Smile

Xavier Raynaud
Re: gcov plugin on windows [message #849493 is a reply to message #847552] Thu, 19 April 2012 07:40 Go to previous message
Jochen Krauss is currently offline Jochen KraussFriend
Messages: 2
Registered: April 2012
Junior Member
some remarks...
I've got now a running combination, only after a update to Indigo SR2 and gcov 0.6
If you use CodeSourcery toolchain you to not need cygwin with binutils because they are already in the compiler directory - but with the "wrong name".
You just have to copy/link the required binutils and rename them e.g arm-none-eabi-addr2line.exe to addr2line.exe.
gcov depends also one "strings" not only on "addr2line, c++filt and nm" as mentioned in the
Previous Topic:Valgrid issues on Ubuntu
Next Topic:"Hello World C++ Project" on Mac OS X
Goto Forum:

Current Time: Mon Oct 18 02:40:46 GMT 2021

Powered by FUDForum. Page generated in 0.02239 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top