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

ndk-stack command doesn't understand android target directory #23311

Open
jdm opened this issue May 2, 2019 · 2 comments
Open

ndk-stack command doesn't understand android target directory #23311

jdm opened this issue May 2, 2019 · 2 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented May 2, 2019

When I have a build done with --android, I have target/android/armv7-linux-androideabi/debug/.... The ndk-stack command looks for target/armv7-linux-androideabi/..., so that it can support x86 android builds done with --target i686-linux-android.

@highfive
Copy link

@highfive highfive commented May 2, 2019

@jdm
Copy link
Member Author

@jdm jdm commented May 2, 2019

@Command('ndk-stack',
description='Invoke the ndk-stack tool with the expected symbol paths',
category='devenv')
@CommandArgument('--release', action='store_true', help="Use release build symbols")
@CommandArgument('--target', action='store', default="armv7-linux-androideabi",
help="Build target")
@CommandArgument('logfile', action='store', help="Path to logcat output with crash report")
def stack(self, release, target, logfile):
if not path.isfile(logfile):
print(logfile + " doesn't exist")
return -1
env = self.build_env(target=target)
ndk_stack = path.join(env["ANDROID_NDK"], "ndk-stack")
self.handle_android_target(target)
sym_path = path.join(
"target",
target,
"release" if release else "debug",
"apk",
"obj",
"local",
self.config["android"]["lib"])
print(subprocess.check_output([ndk_stack, "-sym", sym_path, "-dump", logfile]))

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.