Lines Matching refs:location
37 bool GetAbortLocation(llvm::Triple::OSType os, SymbolLocation &location) { in GetAbortLocation() argument
41 location.module_spec = FileSpec("libsystem_kernel.dylib"); in GetAbortLocation()
42 location.symbols.push_back(ConstString("__pthread_kill")); in GetAbortLocation()
45 location.module_spec = FileSpec("libc.so.6"); in GetAbortLocation()
46 location.symbols.push_back(ConstString("raise")); in GetAbortLocation()
47 location.symbols.push_back(ConstString("__GI_raise")); in GetAbortLocation()
48 location.symbols.push_back(ConstString("gsignal")); in GetAbortLocation()
49 location.symbols.push_back(ConstString("pthread_kill")); in GetAbortLocation()
50 location.symbols_are_regex = true; in GetAbortLocation()
70 bool GetAssertLocation(llvm::Triple::OSType os, SymbolLocation &location) { in GetAssertLocation() argument
74 location.module_spec = FileSpec("libsystem_c.dylib"); in GetAssertLocation()
75 location.symbols.push_back(ConstString("__assert_rtn")); in GetAssertLocation()
78 location.module_spec = FileSpec("libc.so.6"); in GetAssertLocation()
79 location.symbols.push_back(ConstString("__assert_fail")); in GetAssertLocation()
80 location.symbols.push_back(ConstString("__GI___assert_fail")); in GetAssertLocation()
94 SymbolLocation location; in RegisterAssertFrameRecognizer() local
96 if (!GetAbortLocation(os, location)) in RegisterAssertFrameRecognizer()
99 if (!location.symbols_are_regex) { in RegisterAssertFrameRecognizer()
102 location.module_spec.GetFilename(), location.symbols, in RegisterAssertFrameRecognizer()
107 for (char c : location.module_spec.GetFilename().GetStringRef()) { in RegisterAssertFrameRecognizer()
114 for (auto it = location.symbols.cbegin(); it != location.symbols.cend(); in RegisterAssertFrameRecognizer()
116 if (it != location.symbols.cbegin()) in RegisterAssertFrameRecognizer()
137 SymbolLocation location; in RecognizeFrame() local
139 if (!GetAssertLocation(os, location)) in RecognizeFrame()
161 !sym_ctx.module_sp->GetFileSpec().FileEquals(location.module_spec)) in RecognizeFrame()
166 if (llvm::is_contained(location.symbols, func_name)) { in RecognizeFrame()