common: fix absolute path runs

--gdb: allow running from arbitrary directory
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-05 00:00:00 +00:00
parent 0e84c413e4
commit 73db3a4952
2 changed files with 2 additions and 2 deletions

View File

@@ -1242,7 +1242,7 @@ lunch aosp_{}-eng
out += executable_ext
return out
else:
return in_path_abs
return in_path
def resolve_targets(self, source_dir, targets):
if not targets:

2
run
View File

@@ -718,7 +718,7 @@ Extra options to append at the end of the emulator command line.
else:
raise Exception('--tmux-program is only supported in gem5 currently.')
elif self.env['tmux_program'] == 'gdb':
tmux_cmd = './run-gdb'
tmux_cmd = os.path.join(self.env['root_dir'], 'run-gdb')
# TODO find a nicer way to forward all those args automatically.
# Part of me wants to: https://github.com/jonathanslenders/pymux
# but it cannot be used as a library properly it seems, and it is