From 19f18ce06a97c1601754f81b6b2c24133b879a1b Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Thu, 22 Oct 2015 16:08:13 -0700 Subject: [PATCH] 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 --- scripts/gdbclient.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/gdbclient.py b/scripts/gdbclient.py index 9d029efa7..4ed5c59cd 100755 --- a/scripts/gdbclient.py +++ b/scripts/gdbclient.py @@ -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)