def symbol_resolver(args): if args.no_resolve: return debug.DummyResolver() if args.exe: elf_path = args.exe elif args.debug: elf_path = 'build/debug/loader.elf' else: elf_path = 'build/release/loader.elf' return BeautifyingResolver(debug.SymbolResolver(elf_path, show_inline=not args.no_inlined_by))
def symbol_resolver(args): if args.no_resolve: return debug.DummyResolver() if args.exe: elf_path = args.exe elif args.debug: elf_path = 'build/debug/loader.elf' else: elf_path = 'build/release/loader.elf' base = debug.DummyResolver() try: base = trace.TraceDumpSymbols(args.tracefile, base) except trace.NotATraceDumpFile: # not a trace dump file. Assume trace buffer file, continue as usual pass return BeautifyingResolver(debug.SymbolResolver(elf_path, base, show_inline=not args.no_inlined_by))