Fix a segmenation fault when python evironment changes.

This is a follow up CL for commit:
e24220e: disable python when python is not available.

BUG: None
TEST: Build gdb inside ChromeOS chroot and run gdb outside it. There
      is no crash.

Change-Id: I922c5dbac51b1e2808775f7b24edca63fc19d013
1 file changed
tree: d6884c07935d293a51b7b9049cfebef9b7228de9
  1. gdb-7.11/
  2. gdb-8.0.1/
  3. build-gdb.sh
  4. build.py