mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 04:54:27 +01:00
common: fix absolute path runs
--gdb: allow running from arbitrary directory
This commit is contained in:
@@ -1242,7 +1242,7 @@ lunch aosp_{}-eng
|
|||||||
out += executable_ext
|
out += executable_ext
|
||||||
return out
|
return out
|
||||||
else:
|
else:
|
||||||
return in_path_abs
|
return in_path
|
||||||
|
|
||||||
def resolve_targets(self, source_dir, targets):
|
def resolve_targets(self, source_dir, targets):
|
||||||
if not targets:
|
if not targets:
|
||||||
|
|||||||
2
run
2
run
@@ -718,7 +718,7 @@ Extra options to append at the end of the emulator command line.
|
|||||||
else:
|
else:
|
||||||
raise Exception('--tmux-program is only supported in gem5 currently.')
|
raise Exception('--tmux-program is only supported in gem5 currently.')
|
||||||
elif self.env['tmux_program'] == 'gdb':
|
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.
|
# TODO find a nicer way to forward all those args automatically.
|
||||||
# Part of me wants to: https://github.com/jonathanslenders/pymux
|
# Part of me wants to: https://github.com/jonathanslenders/pymux
|
||||||
# but it cannot be used as a library properly it seems, and it is
|
# but it cannot be used as a library properly it seems, and it is
|
||||||
|
|||||||
Reference in New Issue
Block a user