Lines Matching +full:- +full:- +full:strip +full:- +full:components

9 #      http://www.apache.org/licenses/LICENSE-2.0
42 return ANDROID_BUILD_TOP + "/prebuilts/clang/host/linux-x86/" + version_output.strip()
52 cmd = "build/soong/soong_ui.bash --dumpvar-mode --abs TARGET_OUT_UNSTRIPPED"
54 return str(stream.read().strip())
149 """Return a fully-qualified path to the specified tool, or just the tool if it's on PATH """
164 llvm_binutils_dir = ANDROID_BUILD_TOP + "/prebuilts/clang/host/linux-x86/llvm-binutils-stable/";
187 always non-empty, even if no information is available.
206 associated symbols and locations. The list is always non-empty.
211 always non-empty, even if no information is available.
245 """Fix up bizarre formatting of llvm-symbolizer output
268 """ Find symbol file for lib, and return a llvm-symbolizer instance for it.
272 args: (optional) list of arguments to pass to llvm-symbolizer
289 cmd = [ToolPath("llvm-symbolizer"), "--output-style=JSON"] + args + ["--obj=" + symbols]
313 json_result = json.loads(child.stdout.readline().strip())
357 # Re-add, needs to be symbolized.
368 lib, ["--functions", "--inlines", "--demangle"])
376 json_result = json.loads(child.stdout.readline().strip())
416 # Re-add, needs to be symbolized.
433 stop_addr_dec = str(int(addrs[-1], 16) + 8)
434 cmd = [ToolPath("llvm-objdump"),
435 "--section=.text",
436 "--demangle",
437 "--disassemble",
438 "--start-address=" + start_addr_dec,
439 "--stop-address=" + stop_addr_dec,
446 func_regexp = re.compile("(^[a-f0-9]*) \<(.*)\>:$")
447 offset_regexp = re.compile("(.*)\+0x([a-f0-9]*)")
451 asm_regexp = re.compile("(^[ a-f0-9]*):[ a-f0-0]*.*$")
461 components = func_regexp.match(line)
462 if components:
464 current_symbol_addr = int(components.group(1), 16)
465 current_symbol = components.group(2)
468 components = offset_regexp.match(current_symbol)
469 if components:
470 current_symbol = components.group(1)
471 offset = components.group(2)
473 current_symbol_addr -= int(offset, 16)
477 components = asm_regexp.match(line)
478 if components:
479 addr = components.group(1)
484 result[target_addr] = (current_symbol, i_target - current_symbol_addr)
503 if os.path.exists(clang_dir + "/bin/llvm-cxxfilt"):
504 toolchains = [clang_dir + "/bin/llvm-cxxfilt"]
506 raise Exception("bin/llvm-cxxfilt missing from " + clang_dir)
509 # llvm-cxxfilt should be available in the following relative path.
510 toolchains = glob.glob("./clang-r*/bin/llvm-cxxfilt")
512 raise Exception("Expected one llvm-cxxfilt but found many: " + \
515 raise Exception("Could not find llvm-cxxfilt tool")
516 _CACHED_CXX_FILT = sorted(toolchains)[-1]
524 demangled_symbol = process.stdout.readline().strip()
546 result = result.replace(") const", ")") # Strip const keyword.
549 result = result.replace("operator->", "operator\u2192") # Avoid unmatched '>'.
556 end = i + 1 # Mark the end of top-level pair.
561 if len(nested) == 0 and c == '(' and (end - i) > 2:
566 return result.strip()
571 trace_line = re.compile("\#[0-9]+[ \t]+..[ \t]+([0-9a-f]{8}|[0-9a-f]{16})([ \t]+|$)")
572 asan_trace_line = re.compile("\#[0-9]+[ \t]+0x([0-9a-f]+)[ \t]+")
623 SetBitness(["#12 0x5d33bf (/system/lib/libclang_rt.asan-arm-android.so+0x823bf)",
624 "#12 0x11b35d33bf (/system/lib/libclang_rt.asan-arm-android.so+0x823bf)"])