[Android] Fixed incorrect toolchain used in adb_gdb if GYP_DEFINES not set.

adb_gdb determine arch by reading GYP_DEFINES. While this env is not
required to be set, src/../chromium.gyp_env is alternative to use.
In that case, arch will fall back as arm. Thus adb_gdb will use
incorrect toolchain for non-arm target devices.

Changes:
* build/gyp_helper.py: Add main to allow to get value by given key.
* build/android/envsetup.sh: Call gyp_helper.py if GYP_DEFINES is not set.

BUG=None
TEST=run adb_gdb_content_shell on x86 and arm target
[email protected]

Review URL: https://codereview.chromium.org/829913002

Cr-Commit-Position: refs/heads/master@{#311237}
1 file changed