• Alexander Ivchenko's avatar
    Fix ndk-gdb for debugging applications on x86_64 · f91d44c1
    Alexander Ivchenko authored
    
    
    This patch fixes several issues:
    
    1) Use ro.product.cpu.abilist64 and ro.product.cpu.abilist32
    instead of ro.product.cpu.abi and ro.product.cpu.abi2. The latter
    ones for x86_64 do not contain x86 abi.
    
    2) Pull app_process32 instead pf app_process when debugging 32-bit
    app on 64-bit device.
    
    3) Pull linker64 for 64-bit.
    
    4) Pull lib64/libc.so for 64-bit.
    
    5) We have to push the gdbserver that matches the ABI of the app AND
    the ABI of the device, not just the one that matches the ABI of the device.
    
    Change-Id: Ibb0f264fdd007cb2a84aad87bcb396d24e2092e7
    Signed-off-by: default avatarAlexander Ivchenko <alexander.ivchenko@intel.com>
    f91d44c1
ndk-gdb 27.1 KB