This commit is contained in:
Ciro Santilli
2018-09-04 07:39:27 +01:00
parent a6a712acef
commit 6ae0c43cf5
2 changed files with 30 additions and 6 deletions

View File

@@ -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)