Better detection of extended-remote types

pull/409/head
Zach Riggle 8 years ago
parent 06bb87bd56
commit 7bff516515

@ -17,5 +17,17 @@ def is_remote():
# https://sourceware.org/bugzilla/show_bug.cgi?id=18335
#
# return 'serial line' in gdb.execute('info program',to_string=True,)
info_file = gdb.execute('info file',to_string=True,from_tty=False)
return 'Remote serial target' in gdb.execute('info file',to_string=True,from_tty=False)
# target remote
if 'Remote serial target' in info_file:
return True
# target extended-remote
if 'Extended remote serial target' in info_file:
return True
if 'Debugging a target over a serial line.' in info_file:
return True
return False

Loading…
Cancel
Save