Lines Matching refs:location

28 /// Fetches the abort frame location depending on the current platform.
32 /// \param[in,out] location
37 bool GetAbortLocation(llvm::Triple::OSType os, SymbolLocation &location) {
41 location.module_spec = FileSpec("libsystem_kernel.dylib");
42 location.symbols.push_back(ConstString("__pthread_kill"));
45 location.module_spec = FileSpec("libc.so.6");
46 location.symbols.push_back(ConstString("raise"));
47 location.symbols.push_back(ConstString("__GI_raise"));
48 location.symbols.push_back(ConstString("gsignal"));
49 location.symbols.push_back(ConstString("pthread_kill"));
50 location.symbols_are_regex = true;
61 /// Fetches the assert frame location depending on the current platform.
65 /// \param[in,out] location
70 bool GetAssertLocation(llvm::Triple::OSType os, SymbolLocation &location) {
74 location.module_spec = FileSpec("libsystem_c.dylib");
75 location.symbols.push_back(ConstString("__assert_rtn"));
78 location.module_spec = FileSpec("libc.so.6");
79 location.symbols.push_back(ConstString("__assert_fail"));
80 location.symbols.push_back(ConstString("__GI___assert_fail"));
94 SymbolLocation location;
96 if (!GetAbortLocation(os, location))
99 if (!location.symbols_are_regex) {
102 location.module_spec.GetFilename(), location.symbols,
107 for (char c : location.module_spec.GetFilename().GetStringRef()) {
114 for (auto it = location.symbols.cbegin(); it != location.symbols.cend();
116 if (it != location.symbols.cbegin())
137 SymbolLocation location;
139 if (!GetAssertLocation(os, location))
161 !sym_ctx.module_sp->GetFileSpec().FileEquals(location.module_spec))
166 if (llvm::is_contained(location.symbols, func_name)) {
167 // We go a frame beyond the assert location because the most relevant
169 // If the assert location is the last frame fetched, then it is set as
175 // Pass assert location to AbortRecognizedStackFrame to set as most