Lines Matching full:location

17 /// Fetches the abort frame location depending on the current platform.
21 /// \param[in,out] location
26 bool GetAbortLocation(llvm::Triple::OSType os, SymbolLocation &location) {
30 location.module_spec = FileSpec("libsystem_kernel.dylib");
31 location.symbols.push_back(ConstString("__pthread_kill"));
34 location.module_spec = FileSpec("libc.so.6");
35 location.symbols.push_back(ConstString("raise"));
36 location.symbols.push_back(ConstString("__GI_raise"));
37 location.symbols.push_back(ConstString("gsignal"));
38 location.symbols.push_back(ConstString("pthread_kill"));
39 location.symbols_are_regex = true;
50 /// Fetches the assert frame location depending on the current platform.
54 /// \param[in,out] location
59 bool GetAssertLocation(llvm::Triple::OSType os, SymbolLocation &location) {
63 location.module_spec = FileSpec("libsystem_c.dylib");
64 location.symbols.push_back(ConstString("__assert_rtn"));
67 location.module_spec = FileSpec("libc.so.6");
68 location.symbols.push_back(ConstString("__assert_fail"));
69 location.symbols.push_back(ConstString("__GI___assert_fail"));
83 SymbolLocation location;
85 if (!GetAbortLocation(os, location))
88 if (!location.symbols_are_regex) {
91 location.module_spec.GetFilename(), location.symbols,
96 for (char c : location.module_spec.GetFilename().GetStringRef()) {
103 for (auto it = location.symbols.cbegin(); it != location.symbols.cend();
105 if (it != location.symbols.cbegin())
126 SymbolLocation location;
128 if (!GetAssertLocation(os, location))
150 !sym_ctx.module_sp->GetFileSpec().FileEquals(location.module_spec))
155 if (llvm::is_contained(location.symbols, func_name)) {
156 // We go a frame beyond the assert location because the most relevant
158 // If the assert location is the last frame fetched, then it is set as
164 // Pass assert location to AbortRecognizedStackFrame to set as most