Regarding gcov using arm-eabi toolchain

by Manish Sharma » Wed, 08 Dec 2010 16:28:03 GMT


Sponsored Links
 Dear All,

We have developed an application for which we would like to check the code
coverage.
We have used gcov available in android toolchain.

In our Android.mk file we have added the following LOCAL_FLAGS and included
the libgcov static library.

LOCAL_CFLAGS:= -fprofile-arcs -ftest-coverage

LOCAL_STATIC_LIBRARIES := libgcov

We got some compilation issues which was resolved by copying the libgcov
library from
prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/android/libgcov.a
using BUILD_PREBUILT make rules.

The output executable size is also increased with this and in out folder was
can see *.gcno files getting created.

When we execute the test *.gcda files are generated on target but when we
try to take the code coverage using lcov it is not generating the code
coverage report.

lcov --directory code_coverage/ --capture --output-file ./code_coverage.info
genhtml -o code_coverage/ ./code_coverage.info

We have tested the same setup with arm-linux toolchain and it works fine.

Please provide some pointer which we can look into.

Regards,
Manish

-- 



Other Threads

1. Showing ellipsis in a TextView?

Hi,

I have a normal TextView which has multiple lines. I set its max
number of lines to 3. I'd like it to show an ellipsis at the end if
the text is too long:

  TextView tv = new TextView(context);
  tv.setLines(tv);
  tv.setText("some really long text...");

I tried the set ellipsis calls but it doesn't seem to do anything -
the text appears the same way. How do we get this to work?

Thanks

--~--~---------~--~----~------------~-------~--~----~

2. 绛斿: hiding a forcibly o pened soft keyboard...

InputMethodManager m_inputManager = null;
//show input
                m_inputManager = (InputMethodManager) 
getSystemService(Context.INPUT_METHOD_SERVICE);
                m_inputManager.showSoftInput( 
this.getCurrentFocus(),InputMethodManager.SHOW_FORCED );

//hide input
        private boolean hideInputMethod( )
        {
                boolean bHideIM = 
m_inputManager.hideSoftInputFromWindow(name.getWindowToken(), 0); //hide Input 
Method
                if( false == bHideIM )
                {
                        Log.e( TAG, "hide InputMethod is error!" ); 
                }
                return bHideIM;
        }

----------
 sdphil [mailto:phil.pellouch...@gmail.com] 
€ 20091210:43
 Android Developers
: [android-developers] Re: hiding a forcibly opened soft keyboard...

What flag is that?  All I see documented are --

int     HIDE_IMPLICIT_ONLY      Flag for hideSoftInputFromWindow(IBinder,
int) to indicate that the soft input window should only be hidden if
it was not explicitly shown by the user.
int     HIDE_NOT_ALWAYS         Flag for hideSoftInputFromWindow(IBinder, int)
to indicate that the soft input window should normally be hidden,
unless it was originally shown with SHOW_FORCED.

http://developer.android.com/intl/fr/reference/android/view/inputmethod/InputMethodManager.html

tia.





> > 

3. hiding a forcibly opened soft keyboard...

4. Picture say a thousand word

5. question on scanObject()

6. The loosers got notice :)

7. LG Eve emulator skin now available for Android 2.0 SDK