aboutsummaryrefslogtreecommitdiff
path: root/dejagnu
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2013-10-02 09:37:49 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-02 18:31:23 +0000
commitde98d63638b36e9d2cfd264d82492438f8641fbb (patch)
tree8cf4da705d5d1168dc1a890f58db3b7d5c7fecf6 /dejagnu
parentf8b3a5ada4ae7c60d459fc843b1809acd7726613 (diff)
downloadtoolchain-utils-de98d63638b36e9d2cfd264d82492438f8641fbb.tar.gz
gdb_dejiagnu: use machine.name instead of machine.
BUG=None TEST=It can run now. Change-Id: I53b4596c46341b600097f7cd4154b6945e970492 Reviewed-on: https://chrome-internal-review.googlesource.com/145895 Reviewed-by: Yunlian Jiang <yunlian@google.com> Commit-Queue: Yunlian Jiang <yunlian@google.com> Tested-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'dejagnu')
-rwxr-xr-xdejagnu/gdb_dejagnu.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dejagnu/gdb_dejagnu.py b/dejagnu/gdb_dejagnu.py
index 842e5f54..c10f86d0 100755
--- a/dejagnu/gdb_dejagnu.py
+++ b/dejagnu/gdb_dejagnu.py
@@ -125,6 +125,7 @@ class DejagnuExecuter(object):
# Generate the chromeos.exp file.
with open('%s/boards/gdb.exp.in' % self._base_dir, 'r') as template_file:
content = template_file.read()
+
substitutions = dict({
'__boardname__': self._board,
'__board_hostname__': self._remote,
@@ -319,7 +320,7 @@ def Main(argv):
available_machine = TryAcquireMachine(opts.remote)
executer = DejagnuExecuter(misc.GetRoot(argv[0])[0],
opts.mount, opts.chromeos_root,
- available_machine,
+ available_machine._name,
opts.board,
opts.cleanup)
# Return value is a 3- or 4-element tuple