mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
bak
This commit is contained in:
@@ -36,10 +36,11 @@ for line in readelf_header.decode().split('\n'):
|
||||
addr = line.split()[-1]
|
||||
break
|
||||
print(addr)
|
||||
args.before = '-ex \"add-symbol-file {} {}\"'.format(args.executable, addr)
|
||||
extra_args = {}
|
||||
extra_args['before'] = '-ex \"add-symbol-file {} {}\"'.format(args.executable, addr)
|
||||
# Or else lx-symbols throws for arm:
|
||||
# gdb.MemoryError: Cannot access memory at address 0xbf0040cc
|
||||
# TODO understand better.
|
||||
# Also, lx-symbols overrides the add-symbol-file commands.
|
||||
args.no_lxsymbols = True
|
||||
rungdb.main(args)
|
||||
extra_args['no_lxsymbols'] = True
|
||||
rungdb.main(args, extra_args)
|
||||
|
||||
Reference in New Issue
Block a user