# If we are debugging 64-bit app, then we need to pull linker64,
# app_process64 and libc.so from lib64 directory.
linker_name = 'linker'
libdir_name = 'lib'
app_process_name = 'app_process32'
if (app_bits == 64):
linker_name = 'linker64'
libdir_name = 'lib64'
app_process_name = 'app_process64'
else:
retcode,_ = adb_cmd(False, ['shell', 'test -e /system/bin/%s' % (app_process_name)])
if retcode:
# Old 32-bit devices do not have app_process32. Pull
# app_process in this case
app_process_name = 'app_process'