Home | History | Annotate | Download | only in ndk-stack

Lines Matching full:line

67 /* Regular expression for the process ID information line. */
70 /* Regular expression for the signal information line. */
73 /* Regular expression for the frame information line. */
80 /* Parses a line representing a crash frame.
81 * This routine will try to obtain source file / line information for the
86 * frame - Line containing crash frame.
95 * line - String to matches against the regular expression.
103 static int MatchRegex(const char* line, const regex_t* regex, regmatch_t* match);
170 ParseLine(NdkCrashParser* parser, const char* line)
174 if (line == NULL || *line == '\0') {
180 if (strstr(line, _crash_dump_header) != NULL) {
195 if (strstr(line, _build_fingerprint_header) != NULL) {
197 strstr(line, _build_fingerprint_header));
203 if (MatchRegex(line, &parser->re_pid_header, &match)) {
204 fprintf(parser->out_handle, "%s\n", line + match.rm_so);
212 if (MatchRegex(line, &parser->re_sig_header, &match)) {
213 fprintf(parser->out_handle, "%s\n", line + match.rm_so);
219 if (MatchRegex(line, &parser->re_frame_header, &match)) {
221 return ParseFrame(parser, line + match.rm_so);
232 MatchRegex(const char* line, const regex_t* regex, regmatch_t* match)
234 int err = regexec(regex, line, 1, match, 0x00400/*REG_TRACE*/);
239 fprintf(stderr, "regexec(%s, %s) has failed: %s\n", line, regex, rerr);