mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
run kind of runs
This commit is contained in:
@@ -7,7 +7,7 @@ import sys
|
||||
import common
|
||||
rungdb = imp.load_source('rungdb', os.path.join(kwargs['root_dir'], 'run-gdb'))
|
||||
|
||||
parser = common.get_argparse(argparse_args={
|
||||
parser = self.get_argparse(argparse_args={
|
||||
'description': '''GDB step debug guest userland processes without gdbserver.
|
||||
|
||||
More information at: https://github.com/cirosantilli/linux-kernel-module-cheat#gdb-step-debug-userland-processes
|
||||
@@ -23,9 +23,9 @@ parser.add_argument(
|
||||
help='Break at this point, e.g. main.',
|
||||
nargs='?'
|
||||
)
|
||||
args = common.setup(parser)
|
||||
executable = common.resolve_userland(kwargs['executable'])
|
||||
addr = common.get_elf_entry(os.path.join(kwargs['buildroot_build_build_dir'], executable))
|
||||
args = self.setup(parser)
|
||||
executable = self.resolve_userland(kwargs['executable'])
|
||||
addr = self.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