Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AndroidNdkGdb debugging macros broken #41

Open
ngaloppo opened this issue Apr 16, 2015 · 3 comments
Open

AndroidNdkGdb debugging macros broken #41

ngaloppo opened this issue Apr 16, 2015 · 3 comments

Comments

@ngaloppo
Copy link

I can't seem to get the debugging macros in AndroidNdkGdb working anymore. For one, it uses LIBRARY_OUTPUT_PATH, but that isn't being defined by the toolchain anymore (or I couldn't figure out how).

Also, when hardcoding the LIBRARY_OUTPUT_PATH, I ran into linking issues for executable targets depend on libraries that I have added with android_ndk_gdb_debuggable(libFoo). The linking stage fails due to missing symbols. It's almost like the stripping phase in AndroidNdkGdb has stripped the symbols out.

@ngaloppo
Copy link
Author

Possibly related to #37

@ngaloppo
Copy link
Author

The problem seems to be that AndroidNdkGdb copies the original lib to obj/local, and then strips the symbols in the lib in libs/local. When making a change to a source file that is unrelated to the lib, the linking phase obviously fails because it's trying to link to a stripped version in libs/local.

Instead, the LIBRARY_OUTPUT_PATH should be set to obj/local (like ndk-build does) and then the install phase should copy / strip libs/local.

@taka-no-me
Copy link
Owner

Please contribute if you are able to make a fix for AndroidNdkGdb. I personally have no plans for AndroidNdkGdb in any observable feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants