Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bad2250a authored by David Srbecky's avatar David Srbecky Committed by android-build-merger
Browse files

Merge "Fix mini-debug-info generation for apps with wrap.sh script." am: 5c3521d5 am: 5a0a33a8

am: fe6b24fe

Change-Id: I9a97cdf7748d964f0f87b95495f7d456af13b839
parents b8e9a153 fe6b24fe
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -115,6 +115,14 @@ public class WrapperInit {
        command.append(' ');
        command.append(appProcess);

        // Generate bare minimum of debug information to be able to backtrace through JITed code.
        // We assume that if the invoke wrapper is used, backtraces are desirable:
        //  * The wrap.sh script can only be used by debuggable apps, which would enable this flag
        //    without the script anyway (the fork-zygote path).  So this makes the two consistent.
        //  * The wrap.* property can only be used on userdebug builds and is likely to be used by
        //    developers (e.g. enable debug-malloc), in which case backtraces are also useful.
        command.append(" -Xcompiler-option --generate-mini-debug-info");

        command.append(" /system/bin --application");
        if (niceName != null) {
            command.append(" '--nice-name=").append(niceName).append("'");