mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41:35 +01:00
build-linux and build-gem5 seem to work
This commit is contained in:
@@ -5,7 +5,7 @@ import os
|
||||
import sys
|
||||
|
||||
import common
|
||||
rungdb = imp.load_source('rungdb', os.path.join(common.root_dir, 'run-gdb'))
|
||||
rungdb = imp.load_source('rungdb', os.path.join(kwargs['root_dir'], 'run-gdb'))
|
||||
|
||||
parser = common.get_argparse(argparse_args={
|
||||
'description': '''GDB step debug guest userland processes without gdbserver.
|
||||
@@ -25,7 +25,7 @@ parser.add_argument(
|
||||
)
|
||||
args = common.setup(parser)
|
||||
executable = common.resolve_userland(kwargs['executable'])
|
||||
addr = common.get_elf_entry(os.path.join(common.buildroot_build_build_dir, executable))
|
||||
addr = common.get_elf_entry(os.path.join(kwargs['buildroot_build_build_dir'], executable))
|
||||
extra_args = {}
|
||||
extra_args['before'] = '-ex \"add-symbol-file {} {}\"'.format(executable, hex(addr))
|
||||
# Or else lx-symbols throws for arm:
|
||||
|
||||
Reference in New Issue
Block a user