gdbclient.py: set directory for gdb.

Make sure gdb knows where the source files are, even when gdbclient.py
isn't being run from the root directory.

Change-Id: I8f604ba58f4c06b26f2a1f8e917e2a1c1c137ccd
This commit is contained in:
Josh Gao
2015-10-22 16:08:13 -07:00
parent d427f1e5f5
commit 19f18ce06a

View File

@@ -161,6 +161,7 @@ def generate_gdb_script(sysroot, binary_file, is64bit, port, connect_timeout=5):
gdb_commands = ""
gdb_commands += "file '{}'\n".format(binary_file.name)
gdb_commands += "directory '{}'\n".format(root)
gdb_commands += "set solib-absolute-prefix {}\n".format(sysroot)
gdb_commands += "set solib-search-path {}\n".format(solib_search_path)