Make lldb default for gdbclient.py
Adds a symlink lldbclient.py that pointing to gdbclient.py
Bug: 168187078
Change-Id: I1831875812d22bb6a264b8396bc9d3b8ed7712e3
diff --git a/scripts/gdbclient.py b/scripts/gdbclient.py
index 2d2dfcb..d7c8ecb 100755
--- a/scripts/gdbclient.py
+++ b/scripts/gdbclient.py
@@ -437,7 +437,10 @@
linker_search_dir = ensure_linker(device, sysroot, interp)
tracer_pid = get_tracer_pid(device, pid)
- use_lldb = args.lldb
+ if os.path.basename(__file__) == 'gdbclient.py' and not args.lldb:
+ print("gdb is deprecated in favor of lldb. "
+ "If you can't use lldb, please set --no-lldb and file a bug asap.")
+ use_lldb = not args.no_lldb
if tracer_pid == 0:
cmd_prefix = args.su_cmd
if args.env: