• David 'Digit' Turner's avatar
    ndk-gdb: Fixes for Darwin and --project option · b2e3ee77
    David 'Digit' Turner authored
    This patch contains several fixes for ndk-gdb:
    
    - Allow it to run properly on Darwin, where 'mktemp' will return an
      error if used without parameters. Note that 'mktemp -t <pattern>'
      does not work the same on Linux and Darwin, so use an invocation
      that is supported by all host platforms (Cygwin included).
    
    - Ensure that ANDROID_NDK_ROOT is defined as an absolute path,
      to avoid problems when the script is invoked as in:
    
          cd $NDKROOT
          ./ndk-gdb --project=/path/to/project/
    
    - The _adb_var_shell redirection was buggy and created files named
      "&1" and "&2" in the current directory for no good reason.
    
    Fix for bug 4156117
    
    Change-Id: I8dbd29bd33db808289755055a6ff5c9ccd181bfc
    b2e3ee77
ndk-gdb 20.5 KB