Allow override of default symbol location for native heap library resolution

Default location of the symbols is $ANDROID_PRODUCT_OUT/symbols.
Setting the env variable ANDROID_SYMBOLS allows you to override this location
so that DDMS goes look for the symbol in a different location when
resolving native heap addresses.
This commit is contained in:
Xavier Ducrohet
2009-07-24 13:19:24 -07:00
parent f74c1d2fb7
commit bf29a5e611

View File

@@ -133,7 +133,10 @@ public class Addr2Line {
// to synchronize this code.
// get the output directory.
String symbols = DdmUiPreferences.getSymbolDirectory();
String symbols = System.getenv("ANDROID_SYMBOLS");
if (symbols == null) {
symbols = DdmUiPreferences.getSymbolDirectory();
}
// build the command line
String[] command = new String[5];